Linux kernel -stable discussions
 help / color / mirror / Atom feed
* Bug 219269 - v6.10.10 kernel fails to build when CONFIG_MODULES is disabled
@ 2024-09-14  5:02 Thorsten Leemhuis
  2024-09-14  7:09 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten Leemhuis @ 2024-09-14  5:02 UTC (permalink / raw)
  To: Greg KH
  Cc: stable@vger.kernel.org, Linux kernel regressions list,
	Sasha Levin, LKML

Hi Greg! I noticed a bug report in bz:
https://bugzilla.kernel.org/show_bug.cgi?id=219269

> Fair enough, you get a compiler warning:
> 
> kernel/trace/trace_kprobe.c: In function ‘validate_probe_symbol’:
> kernel/trace/trace_kprobe.c:810:23: error: implicit declaration of function ‘find_module’; did you mean init_module’? [-Wimplicit-function-declaration]
>   810 |                 mod = find_module(modname);
>       |                       ^~~~~~~~~~~
>       |                       init_module
> kernel/trace/trace_kprobe.c:810:21: error: assignment to ‘struct module *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
>   810 |                 mod = find_module(modname);
>       |    
> 
> but there is no find_module symbol when CONFIG_MODULES is disabled.

I *very briefly* looked into this. I might be wrong, but looked a bit
like "tracing/kprobes: Add symbol counting check when module loads"
caused this and backporting b10545b6b86b7a ("tracing/kprobes: Fix build
error when find_module() is not available") [v6.11-rc1] would fix this
(which applies cleanly).

Shall I ask the reporter to confirm or is that already enough for you?

Ciao, Thorsten

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-09-14  7:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-14  5:02 Bug 219269 - v6.10.10 kernel fails to build when CONFIG_MODULES is disabled Thorsten Leemhuis
2024-09-14  7:09 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox