<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/kernel/module.c, branch linux-5.12.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.12.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2021-07-20T14:02:17Z</updated>
<entry>
<title>module: correctly exit module_kallsyms_on_each_symbol when fn() != 0</title>
<updated>2021-07-20T14:02:17Z</updated>
<author>
<name>Jon Mediero</name>
</author>
<published>2021-05-20T12:23:26Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9f6ffb15d64d2e59f7be6de3c6071e806ef9ea14'/>
<id>urn:sha1:9f6ffb15d64d2e59f7be6de3c6071e806ef9ea14</id>
<content type='text'>
[ Upstream commit 2c0f0f3639562d6e38ee9705303c6457c4936eac ]

Commit 013c1667cf78 ("kallsyms: refactor
{,module_}kallsyms_on_each_symbol") replaced the return inside the
nested loop with a break, changing the semantics of the function: the
break only exits the innermost loop, so the code continues iterating the
symbols of the next module instead of exiting.

Fixes: 013c1667cf78 ("kallsyms: refactor {,module_}kallsyms_on_each_symbol")
Reviewed-by: Petr Mladek &lt;pmladek@suse.com&gt;
Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Signed-off-by: Jon Mediero &lt;jmdr@disroot.org&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: limit enabling module.sig_enforce</title>
<updated>2021-06-30T12:46:52Z</updated>
<author>
<name>Mimi Zohar</name>
</author>
<published>2021-06-22T11:36:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=404dd3af590ac67740eeb9c027879945bd2a3c13'/>
<id>urn:sha1:404dd3af590ac67740eeb9c027879945bd2a3c13</id>
<content type='text'>
[ Upstream commit 0c18f29aae7ce3dadd26d8ee3505d07cc982df75 ]

Irrespective as to whether CONFIG_MODULE_SIG is configured, specifying
"module.sig_enforce=1" on the boot command line sets "sig_enforce".
Only allow "sig_enforce" to be set when CONFIG_MODULE_SIG is configured.

This patch makes the presence of /sys/module/module/parameters/sig_enforce
dependent on CONFIG_MODULE_SIG=y.

Fixes: fda784e50aac ("module: export module signature enforcement status")
Reported-by: Nayna Jain &lt;nayna@linux.ibm.com&gt;
Tested-by: Mimi Zohar &lt;zohar@linux.ibm.com&gt;
Tested-by: Jessica Yu &lt;jeyu@kernel.org&gt;
Signed-off-by: Mimi Zohar &lt;zohar@linux.ibm.com&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Sasha Levin &lt;sashal@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: potential uninitialized return in module_kallsyms_on_each_symbol()</title>
<updated>2021-02-10T15:57:04Z</updated>
<author>
<name>Dan Carpenter</name>
</author>
<published>2021-02-10T10:57:07Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1e80d9cb579ed7edd121753eeccce82ff82521b4'/>
<id>urn:sha1:1e80d9cb579ed7edd121753eeccce82ff82521b4</id>
<content type='text'>
Smatch complains that:

	kernel/module.c:4472 module_kallsyms_on_each_symbol()
        error: uninitialized symbol 'ret'.

This warning looks like it could be correct if the &amp;modules list is
empty.

Fixes: 013c1667cf78 ("kallsyms: refactor {,module_}kallsyms_on_each_symbol")
Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Reviewed-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Dan Carpenter &lt;dan.carpenter@oracle.com&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: remove EXPORT_UNUSED_SYMBOL*</title>
<updated>2021-02-08T11:28:07Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2021-02-02T12:13:34Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=367948220fcefcad1bf0d3d595a06efe0694acae'/>
<id>urn:sha1:367948220fcefcad1bf0d3d595a06efe0694acae</id>
<content type='text'>
EXPORT_UNUSED_SYMBOL* is not actually used anywhere.  Remove the
unused functionality as we generally just remove unused code anyway.

Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Reviewed-by: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: remove EXPORT_SYMBOL_GPL_FUTURE</title>
<updated>2021-02-08T11:28:02Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2021-02-02T12:13:33Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=f1c3d73e973cfad85ff5d3d86086503e742d8c62'/>
<id>urn:sha1:f1c3d73e973cfad85ff5d3d86086503e742d8c62</id>
<content type='text'>
As far as I can tell this has never been used at all, and certainly
not any time recently.

Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Reviewed-by: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: move struct symsearch to module.c</title>
<updated>2021-02-08T11:27:43Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2021-02-02T12:13:32Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=00cc2c1cd34f81f777085cb2d65267edcd403fd0'/>
<id>urn:sha1:00cc2c1cd34f81f777085cb2d65267edcd403fd0</id>
<content type='text'>
struct symsearch is only used inside of module.h, so move the definition
out of module.h.

Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Reviewed-by: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: pass struct find_symbol_args to find_symbol</title>
<updated>2021-02-08T11:25:19Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2021-01-20T13:58:27Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=0b96615cdc091bcef9a48daa455b93631f196dea'/>
<id>urn:sha1:0b96615cdc091bcef9a48daa455b93631f196dea</id>
<content type='text'>
Simplify the calling convention by passing the find_symbol_args structure
to find_symbol instead of initializing it inside the function.

Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: merge each_symbol_section into find_symbol</title>
<updated>2021-02-08T11:25:07Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2021-02-02T12:13:30Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=71e4b309dc4238cba84d144b19004543c76c37e9'/>
<id>urn:sha1:71e4b309dc4238cba84d144b19004543c76c37e9</id>
<content type='text'>
each_symbol_section is only called by find_symbol, so merge the two
functions.

Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: remove each_symbol_in_section</title>
<updated>2021-02-08T11:24:54Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2021-02-02T12:13:29Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a7c38f2cd36be54ddae6dab7a5bd192c8d2c0d80'/>
<id>urn:sha1:a7c38f2cd36be54ddae6dab7a5bd192c8d2c0d80</id>
<content type='text'>
each_symbol_in_section just contains a trivial loop over its arguments.
Just open code the loop in the two callers.

Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
</content>
</entry>
<entry>
<title>module: mark module_mutex static</title>
<updated>2021-02-08T11:24:26Z</updated>
<author>
<name>Christoph Hellwig</name>
</author>
<published>2021-02-02T12:13:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=922f2a7c822bf76dffb218331bd95b1eea3cf637'/>
<id>urn:sha1:922f2a7c822bf76dffb218331bd95b1eea3cf637</id>
<content type='text'>
Except for two lockdep asserts module_mutex is only used in module.c.
Remove the two asserts given that the functions they are in are not
exported and just called from the module code, and mark module_mutex
static.

Reviewed-by: Miroslav Benes &lt;mbenes@suse.cz&gt;
Signed-off-by: Christoph Hellwig &lt;hch@lst.de&gt;
Signed-off-by: Jessica Yu &lt;jeyu@kernel.org&gt;
</content>
</entry>
</feed>
