* linux-next: manual merge of the sysctl tree with the modules tree
@ 2025-07-14 7:59 Stephen Rothwell
2025-07-21 10:49 ` Joel Granados
2025-07-31 1:02 ` Stephen Rothwell
0 siblings, 2 replies; 5+ messages in thread
From: Stephen Rothwell @ 2025-07-14 7:59 UTC (permalink / raw)
To: Luis Chamberlain, Kees Cook, Joel Granados, Petr Pavlu,
Sami Tolvanen, Daniel Gomez
Cc: Linux Kernel Mailing List, Linux Next Mailing List,
Thomas Weißschuh
[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]
Hi all,
Today's linux-next merge of the sysctl tree got a conflict in:
include/linux/module.h
between commits:
6633d3a45a8c ("module: move 'struct module_use' to internal.h")
a55842991352 ("module: make structure definitions always visible")
from the modules tree and commit:
6bb37af62634 ("module: Move modprobe_path and modules_disabled ctl_tables into the module subsys")
from the sysctl tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
--
Cheers,
Stephen Rothwell
diff --cc include/linux/module.h
index 3b665cb0cabe,e93cdb92ad92..000000000000
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@@ -584,17 -608,6 +584,16 @@@ struct module
#define MODULE_ARCH_INIT {}
#endif
+#ifdef CONFIG_MODULES
+
- extern int modules_disabled; /* for sysctl */
+/* Get/put a kernel symbol (calls must be symmetric) */
+void *__symbol_get(const char *symbol);
+void *__symbol_get_gpl(const char *symbol);
+#define symbol_get(x) ({ \
+ static const char __notrim[] \
+ __used __section(".no_trim_symbol") = __stringify(x); \
+ (typeof(&x))(__symbol_get(__stringify(x))); })
+
#ifndef HAVE_ARCH_KALLSYMS_SYMBOL_VALUE
static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym)
{
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: manual merge of the sysctl tree with the modules tree
2025-07-14 7:59 linux-next: manual merge of the sysctl tree with the modules tree Stephen Rothwell
@ 2025-07-21 10:49 ` Joel Granados
2025-07-31 1:02 ` Stephen Rothwell
1 sibling, 0 replies; 5+ messages in thread
From: Joel Granados @ 2025-07-21 10:49 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Luis Chamberlain, Kees Cook, Petr Pavlu, Sami Tolvanen,
Daniel Gomez, Linux Kernel Mailing List, Linux Next Mailing List,
Thomas Weißschuh
[-- Attachment #1: Type: text/plain, Size: 1944 bytes --]
On Mon, Jul 14, 2025 at 05:59:16PM +1000, Stephen Rothwell wrote:
> Hi all,
>
> Today's linux-next merge of the sysctl tree got a conflict in:
>
> include/linux/module.h
>
> between commits:
>
> 6633d3a45a8c ("module: move 'struct module_use' to internal.h")
> a55842991352 ("module: make structure definitions always visible")
>
> from the modules tree and commit:
>
> 6bb37af62634 ("module: Move modprobe_path and modules_disabled ctl_tables into the module subsys")
>
> from the sysctl tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
Quickly reviewed this with Daniel Gomez <da.gomez@samsung.com> one of
the modules maintainers and this solution is the correct one.
Best
>
> --
> Cheers,
> Stephen Rothwell
>
> diff --cc include/linux/module.h
> index 3b665cb0cabe,e93cdb92ad92..000000000000
> --- a/include/linux/module.h
> +++ b/include/linux/module.h
> @@@ -584,17 -608,6 +584,16 @@@ struct module
> #define MODULE_ARCH_INIT {}
> #endif
>
> +#ifdef CONFIG_MODULES
> +
> - extern int modules_disabled; /* for sysctl */
> +/* Get/put a kernel symbol (calls must be symmetric) */
> +void *__symbol_get(const char *symbol);
> +void *__symbol_get_gpl(const char *symbol);
> +#define symbol_get(x) ({ \
> + static const char __notrim[] \
> + __used __section(".no_trim_symbol") = __stringify(x); \
> + (typeof(&x))(__symbol_get(__stringify(x))); })
> +
> #ifndef HAVE_ARCH_KALLSYMS_SYMBOL_VALUE
> static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym)
> {
--
Joel Granados
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: manual merge of the sysctl tree with the modules tree
2025-07-14 7:59 linux-next: manual merge of the sysctl tree with the modules tree Stephen Rothwell
2025-07-21 10:49 ` Joel Granados
@ 2025-07-31 1:02 ` Stephen Rothwell
2025-07-31 12:05 ` Daniel Gomez
2025-08-04 7:49 ` Joel Granados
1 sibling, 2 replies; 5+ messages in thread
From: Stephen Rothwell @ 2025-07-31 1:02 UTC (permalink / raw)
To: Luis Chamberlain, Petr Pavlu, Sami Tolvanen, Daniel Gomez
Cc: Kees Cook, Joel Granados, Linux Kernel Mailing List,
Linux Next Mailing List, Thomas Weißschuh
[-- Attachment #1: Type: text/plain, Size: 1849 bytes --]
Hi all,
On Mon, 14 Jul 2025 17:59:16 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> Today's linux-next merge of the sysctl tree got a conflict in:
>
> include/linux/module.h
>
> between commits:
>
> 6633d3a45a8c ("module: move 'struct module_use' to internal.h")
> a55842991352 ("module: make structure definitions always visible")
>
> from the modules tree and commit:
>
> 6bb37af62634 ("module: Move modprobe_path and modules_disabled ctl_tables into the module subsys")
>
> from the sysctl tree.
>
> I fixed it up (see below) and can carry the fix as necessary. This
> is now fixed as far as linux-next is concerned, but any non trivial
> conflicts should be mentioned to your upstream maintainer when your tree
> is submitted for merging. You may also want to consider cooperating
> with the maintainer of the conflicting tree to minimise any particularly
> complex conflicts.
>
>
> diff --cc include/linux/module.h
> index 3b665cb0cabe,e93cdb92ad92..000000000000
> --- a/include/linux/module.h
> +++ b/include/linux/module.h
> @@@ -584,17 -608,6 +584,16 @@@ struct module
> #define MODULE_ARCH_INIT {}
> #endif
>
> +#ifdef CONFIG_MODULES
> +
> - extern int modules_disabled; /* for sysctl */
> +/* Get/put a kernel symbol (calls must be symmetric) */
> +void *__symbol_get(const char *symbol);
> +void *__symbol_get_gpl(const char *symbol);
> +#define symbol_get(x) ({ \
> + static const char __notrim[] \
> + __used __section(".no_trim_symbol") = __stringify(x); \
> + (typeof(&x))(__symbol_get(__stringify(x))); })
> +
> #ifndef HAVE_ARCH_KALLSYMS_SYMBOL_VALUE
> static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym)
> {
This is now a conflict between the modules tree and Linus' tree.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: manual merge of the sysctl tree with the modules tree
2025-07-31 1:02 ` Stephen Rothwell
@ 2025-07-31 12:05 ` Daniel Gomez
2025-08-04 7:49 ` Joel Granados
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Gomez @ 2025-07-31 12:05 UTC (permalink / raw)
To: Stephen Rothwell, Luis Chamberlain, Petr Pavlu, Sami Tolvanen
Cc: Kees Cook, Joel Granados, Linux Kernel Mailing List,
Linux Next Mailing List, Thomas Weißschuh
On 7/31/2025 3:02 AM, Stephen Rothwell wrote:
> Hi all,
>
> On Mon, 14 Jul 2025 17:59:16 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>>
>> Today's linux-next merge of the sysctl tree got a conflict in:
>>
>> include/linux/module.h
>>
>> between commits:
>>
>> 6633d3a45a8c ("module: move 'struct module_use' to internal.h")
>> a55842991352 ("module: make structure definitions always visible")
>>
>> from the modules tree and commit:
>>
>> 6bb37af62634 ("module: Move modprobe_path and modules_disabled ctl_tables into the module subsys")
>>
>> from the sysctl tree.
>>
>> I fixed it up (see below) and can carry the fix as necessary. This
>> is now fixed as far as linux-next is concerned, but any non trivial
>> conflicts should be mentioned to your upstream maintainer when your tree
>> is submitted for merging. You may also want to consider cooperating
>> with the maintainer of the conflicting tree to minimise any particularly
>> complex conflicts.
>>
>>
>> diff --cc include/linux/module.h
>> index 3b665cb0cabe,e93cdb92ad92..000000000000
>> --- a/include/linux/module.h
>> +++ b/include/linux/module.h
>> @@@ -584,17 -608,6 +584,16 @@@ struct module
>> #define MODULE_ARCH_INIT {}
>> #endif
>>
>> +#ifdef CONFIG_MODULES
>> +
>> - extern int modules_disabled; /* for sysctl */
>> +/* Get/put a kernel symbol (calls must be symmetric) */
>> +void *__symbol_get(const char *symbol);
>> +void *__symbol_get_gpl(const char *symbol);
>> +#define symbol_get(x) ({ \
>> + static const char __notrim[] \
>> + __used __section(".no_trim_symbol") = __stringify(x); \
>> + (typeof(&x))(__symbol_get(__stringify(x))); })
>> +
>> #ifndef HAVE_ARCH_KALLSYMS_SYMBOL_VALUE
>> static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym)
>> {
>
> This is now a conflict between the modules tree and Linus' tree.
Thanks for the heads-up.
modules tree is now rebased on top of Linus's tree with the conflict
solved.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: linux-next: manual merge of the sysctl tree with the modules tree
2025-07-31 1:02 ` Stephen Rothwell
2025-07-31 12:05 ` Daniel Gomez
@ 2025-08-04 7:49 ` Joel Granados
1 sibling, 0 replies; 5+ messages in thread
From: Joel Granados @ 2025-08-04 7:49 UTC (permalink / raw)
To: Stephen Rothwell
Cc: Luis Chamberlain, Petr Pavlu, Sami Tolvanen, Daniel Gomez,
Kees Cook, Linux Kernel Mailing List, Linux Next Mailing List,
Thomas Weißschuh
[-- Attachment #1: Type: text/plain, Size: 1325 bytes --]
On Thu, Jul 31, 2025 at 11:02:49AM +1000, Stephen Rothwell wrote:
> Hi all,
>
> On Mon, 14 Jul 2025 17:59:16 +1000 Stephen Rothwell <sfr@canb.auug.org.au> wrote:
> >
...
> >
> > diff --cc include/linux/module.h
> > index 3b665cb0cabe,e93cdb92ad92..000000000000
> > --- a/include/linux/module.h
> > +++ b/include/linux/module.h
> > @@@ -584,17 -608,6 +584,16 @@@ struct module
> > #define MODULE_ARCH_INIT {}
> > #endif
> >
> > +#ifdef CONFIG_MODULES
> > +
> > - extern int modules_disabled; /* for sysctl */
> > +/* Get/put a kernel symbol (calls must be symmetric) */
> > +void *__symbol_get(const char *symbol);
> > +void *__symbol_get_gpl(const char *symbol);
> > +#define symbol_get(x) ({ \
> > + static const char __notrim[] \
> > + __used __section(".no_trim_symbol") = __stringify(x); \
> > + (typeof(&x))(__symbol_get(__stringify(x))); })
> > +
> > #ifndef HAVE_ARCH_KALLSYMS_SYMBOL_VALUE
> > static inline unsigned long kallsyms_symbol_value(const Elf_Sym *sym)
> > {
>
> This is now a conflict between the modules tree and Linus' tree.
That makes sense. The sysctl PR was merged at the end of July. It should
be fixed in the same way as described in this thread. @Daniel: Ping me
if you need any feedback from my part.
Best
--
Joel Granados
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-08-04 7:49 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-14 7:59 linux-next: manual merge of the sysctl tree with the modules tree Stephen Rothwell
2025-07-21 10:49 ` Joel Granados
2025-07-31 1:02 ` Stephen Rothwell
2025-07-31 12:05 ` Daniel Gomez
2025-08-04 7:49 ` Joel Granados
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).