From: Jon Masters <jcm@jonmasters.org>
To: Kees Cook <keescook@chromium.org>, Jessica Yu <jeyu@redhat.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>,
"Peter Zijlstra (Intel)" <peterz@infradead.org>,
Josh Poimboeuf <jpoimboe@redhat.com>,
Ard Biesheuvel <ard.biesheuvel@linaro.org>,
Heinrich Schuchardt <xypron.glpk@gmx.de>,
Nicholas Piggin <npiggin@gmail.com>,
Chris Metcalf <cmetcalf@mellanox.com>,
linux-kernel@vger.kernel.org,
Lucas De Marchi <lucas.demarchi@intel.com>
Subject: Re: [PATCH v2 2/2] module: Add module name to modinfo
Date: Tue, 25 Apr 2017 03:00:42 -0400 [thread overview]
Message-ID: <161cb1b4-ccdc-fba1-c272-45b8ed261cb2@jonmasters.org> (raw)
In-Reply-To: <1492814127-66318-3-git-send-email-keescook@chromium.org>
On 04/21/2017 06:35 PM, Kees Cook wrote:
> Accessing the mod structure (e.g. for mod->name) prior to having completed
> check_modstruct_version() can result in writing garbage to the error logs
> if the layout of the mod structure loaded from disk doesn't match the
> running kernel's mod structure layout. This kind of mismatch will become
> much more likely if a kernel is built with different randomization seed
> for the struct layout randomization plugin.
>
> Instead, add and use a new modinfo string for logging the module name.
+Lucas - probably something that the modinfo kmod utility should track.
Jon.
next prev parent reply other threads:[~2017-04-25 7:00 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-21 22:35 [PATCH v2 0/2] " Kees Cook
2017-04-21 22:35 ` [PATCH v2 1/2] module: Pass struct load_info into symbol checks Kees Cook
2017-04-21 22:35 ` [PATCH v2 2/2] module: Add module name to modinfo Kees Cook
2017-04-25 7:00 ` Jon Masters [this message]
2017-04-25 7:04 ` Jon Masters
2017-04-26 2:58 ` Jessica Yu
2017-04-26 2:32 ` [PATCH v2 0/2] " Jessica Yu
2017-04-26 4:43 ` Kees Cook
2017-05-24 3:26 ` Jessica Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=161cb1b4-ccdc-fba1-c272-45b8ed261cb2@jonmasters.org \
--to=jcm@jonmasters.org \
--cc=ard.biesheuvel@linaro.org \
--cc=cmetcalf@mellanox.com \
--cc=jeyu@redhat.com \
--cc=jpoimboe@redhat.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lucas.demarchi@intel.com \
--cc=npiggin@gmail.com \
--cc=peterz@infradead.org \
--cc=rusty@rustcorp.com.au \
--cc=xypron.glpk@gmx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®