Skip to contentSkip to conversation

linux-next: build failure after merge of the rcu tree

DISCUSSION Stephen Rothwell 3 participants 3 messages Oct 17, 2022 – Oct 18, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hi all,

After merging the rcu tree, today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm-intel.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm-amd.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/rcutorture.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/rcuscale.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/refscale.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [fs/dlm/dlm.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/pci/controller/vmd.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/char/ipmi/ipmi_msghandler.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/gpu/drm/drm.ko] undefined!
WARNING: modpost: suppressed 10 unresolved symbol warnings because there were too many)

Presumably caused by commit

54a118fce487 ("srcu: Debug NMI safety even on archs that don't require it")

I have used the rcu tree from next-20221017 for today.

Signature · 2 lines
Cheers,
Stephen Rothwell
#1 lore raw
Quoted 17 lines · Stephen Rothwell

Hi all,

After merging the rcu tree, today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm-intel.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm-amd.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/rcutorture.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/rcuscale.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/refscale.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [fs/dlm/dlm.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/pci/controller/vmd.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/char/ipmi/ipmi_msghandler.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/gpu/drm/drm.ko] undefined!
WARNING: modpost: suppressed 10 unresolved symbol warnings because there were too many)

Quoted 3 lines

Presumably caused by commit

54a118fce487 ("srcu: Debug NMI safety even on archs that don't require it")

My bad. This commit indeed lacks this (Paul can you add the following line on that commit?):

kernel/rcu/srcutree.c +1 -0
index 382236dd5e46..bcd629f5f902 100644
@@ -651,6 +651,7 @@ void srcu_check_nmi_safety(struct srcu_struct *ssp, bool nmi_safe)
 	}
 	WARN_ONCE(old_nmi_safe_mask != nmi_safe_mask, "CPU %d old state %d new state %d\n", sdp->cpu, old_nmi_safe_mask, nmi_safe_mask);
 }
+EXPORT_SYMBOL_GPL(srcu_check_nmi_safety);
 #endif /* CONFIG_PROVE_RCU */
 
 /*

Thanks!

maintainer
#2 lore raw
Quoted 30 lines · Frederic Weisbecker
Quoted 17 lines · Stephen Rothwell

Hi all,

After merging the rcu tree, today's linux-next build (x86_64 allmodconfig) failed like this:

ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm-intel.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [arch/x86/kvm/kvm-amd.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/rcutorture.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/rcuscale.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [kernel/rcu/refscale.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [fs/dlm/dlm.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/pci/controller/vmd.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/char/ipmi/ipmi_msghandler.ko] undefined!
ERROR: modpost: "srcu_check_nmi_safety" [drivers/gpu/drm/drm.ko] undefined!
WARNING: modpost: suppressed 10 unresolved symbol warnings because there were too many)

Quoted 3 lines

Presumably caused by commit

54a118fce487 ("srcu: Debug NMI safety even on archs that don't require it")

My bad. This commit indeed lacks this (Paul can you add the following line on that commit?):

kernel/rcu/srcutree.c +0 -0
index 382236dd5e46..bcd629f5f902 100644

kernel/rcu/srcutree.c void srcu_check_nmi_safety(struct srcu_struct *ssp, bool nmi_safe) · line 655

Quoted 5 lines
kernel/rcu/srcutree.c +1 -0
@@ -651,6 +651,7 @@ void srcu_check_nmi_safety(struct srcu_struct *ssp, bool nmi_safe)
 	}
 	WARN_ONCE(old_nmi_safe_mask != nmi_safe_mask, "CPU %d old state %d new state %d\n", sdp->cpu, old_nmi_safe_mask, nmi_safe_mask);
 }
+EXPORT_SYMBOL_GPL(srcu_check_nmi_safety);
 #endif /* CONFIG_PROVE_RCU */

On my list for the next rebase, thank you both! Along with kernel test robot. ;-)

Thanx, Paul