Hello, kernel test robot noticed "WARNING:at_net/sunrpc/sunrpc_syms.c:#sunrpc_pre_exit_net" on: commit: 59a0395397f8ccf9987755bb42929d3e6eb81c87 ("sunrpc: don't hold a struct net reference in rpc_xprt") https://git.kernel.org/cgit/linux/kernel/git/jlayton/linux.git rpc-shutdown in testcase: boot config: x86_64-rhel-9.4-kselftests compiler: gcc-12 test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 2 -m 16G (please refer to attached dmesg/kmsg for entire log/backtrace) +----------------------------------------------------------+------------+------------+ | | 00e89d2d41 | 59a0395397 | +----------------------------------------------------------+------------+------------+ | WARNING:at_net/sunrpc/sunrpc_syms.c:#sunrpc_pre_exit_net | 0 | 12 | | RIP:sunrpc_pre_exit_net | 0 | 12 | +----------------------------------------------------------+------------+------------+ If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <oliver.sang@xxxxxxxxx> | Closes: https://lore.kernel.org/oe-lkp/202503271441.962cfd7a-lkp@xxxxxxxxx [ 42.506727][ T12] ------------[ cut here ]------------ [ 42.507690][ T12] WARNING: CPU: 0 PID: 12 at net/sunrpc/sunrpc_syms.c:84 sunrpc_pre_exit_net (net/sunrpc/sunrpc_syms.c:84 net/sunrpc/sunrpc_syms.c:104) [ 42.509081][ T12] Modules linked in: i2c_piix4(+) parport_pc(+) i2c_smbus pcspkr drm_kms_helper(+) parport drm fuse ip_tables [ 42.510761][ T12] CPU: 0 UID: 0 PID: 12 Comm: kworker/u8:0 Not tainted 6.14.0-rc6-00006-g59a0395397f8 #1 [ 42.512482][ T12] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.16.2-debian-1.16.2-1 04/01/2014 [ 42.512502][ T12] Workqueue: netns cleanup_net [ 42.512522][ T12] RIP: 0010:sunrpc_pre_exit_net (net/sunrpc/sunrpc_syms.c:84 net/sunrpc/sunrpc_syms.c:104) [ 42.512537][ T12] Code: 8b 3c 24 4c 89 fe e8 f1 f7 65 fd e9 2b ff ff ff 49 8d bc 24 f0 00 00 00 be ff ff ff ff e8 ca da 1c 00 85 c0 0f 85 4e fe ff ff <0f> 0b e9 47 fe ff ff 48 89 eb e9 ac fe ff ff 48 c7 c7 b4 3a c8 b2 All code ======== 0: 8b 3c 24 mov (%rsp),%edi 3: 4c 89 fe mov %r15,%rsi 6: e8 f1 f7 65 fd call 0xfffffffffd65f7fc b: e9 2b ff ff ff jmp 0xffffffffffffff3b 10: 49 8d bc 24 f0 00 00 lea 0xf0(%r12),%rdi 17: 00 18: be ff ff ff ff mov $0xffffffff,%esi 1d: e8 ca da 1c 00 call 0x1cdaec 22: 85 c0 test %eax,%eax 24: 0f 85 4e fe ff ff jne 0xfffffffffffffe78 2a:* 0f 0b ud2 <-- trapping instruction 2c: e9 47 fe ff ff jmp 0xfffffffffffffe78 31: 48 89 eb mov %rbp,%rbx 34: e9 ac fe ff ff jmp 0xfffffffffffffee5 39: 48 c7 c7 b4 3a c8 b2 mov $0xffffffffb2c83ab4,%rdi Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: e9 47 fe ff ff jmp 0xfffffffffffffe4e 7: 48 89 eb mov %rbp,%rbx a: e9 ac fe ff ff jmp 0xfffffffffffffebb f: 48 c7 c7 b4 3a c8 b2 mov $0xffffffffb2c83ab4,%rdi [ 42.512544][ T12] RSP: 0018:ffffc900000cfab0 EFLAGS: 00210246 [ 42.512553][ T12] RAX: 0000000000000000 RBX: dffffc0000000000 RCX: 0000000000000000 [ 42.512558][ T12] RDX: 0000000000000000 RSI: ffff88810d7d48f0 RDI: ffff8881008c5a40 [ 42.512563][ T12] RBP: dffffc0000000000 R08: 0000000000000001 R09: fffffbfff658fe24 [ 42.512569][ T12] R10: ffffffffb2c7f127 R11: ffffffffb40c5810 R12: ffff88810d7d4800 [ 42.512574][ T12] R13: ffffc900000cfbe0 R14: ffffffffb2ba8738 R15: ffff88810d761c00 [ 42.512579][ T12] FS: 0000000000000000(0000) GS:ffff8883aee00000(0000) knlGS:0000000000000000 [ 42.512589][ T12] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 42.512595][ T12] CR2: 00000000f652814c CR3: 000000017b800000 CR4: 00000000000406f0 [ 42.512601][ T12] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 [ 42.512605][ T12] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 [ 42.512611][ T12] Call Trace: [ 42.512615][ T12] <TASK> [ OK ] Started System Logging Service. [ 42.512623][ T12] ? __warn (kernel/panic.c:748) [ 42.512633][ T12] ? sunrpc_pre_exit_net (net/sunrpc/sunrpc_syms.c:84 net/sunrpc/sunrpc_syms.c:104) [ 42.512648][ T12] ? report_bug (lib/bug.c:180 lib/bug.c:219) [ 42.512666][ T12] ? handle_bug (arch/x86/kernel/traps.c:285) [ 42.512678][ T12] ? exc_invalid_op (arch/x86/kernel/traps.c:309 (discriminator 1)) [ 42.512689][ T12] ? asm_exc_invalid_op (arch/x86/include/asm/idtentry.h:574) [ 42.512728][ T12] ? sunrpc_pre_exit_net (net/sunrpc/sunrpc_syms.c:84 net/sunrpc/sunrpc_syms.c:104) [ 42.512749][ T12] ? __pfx_sunrpc_pre_exit_net (net/sunrpc/sunrpc_syms.c:101) [ 42.512758][ T12] ? mark_lock (arch/x86/include/asm/bitops.h:227 (discriminator 3) arch/x86/include/asm/bitops.h:239 (discriminator 3) include/asm-generic/bitops/instrumented-non-atomic.h:142 (discriminator 3) kernel/locking/lockdep.c:230 (discriminator 3) kernel/locking/lockdep.c:4729 (discriminator 3)) [ 42.512777][ T12] ? mark_held_locks (kernel/locking/lockdep.c:4323) [ 42.512802][ T12] cleanup_net (net/core/net_namespace.c:161 net/core/net_namespace.c:632) [ 42.512811][ T12] ? __pfx_lock_acquire (kernel/locking/lockdep.c:5819) [ 42.512824][ T12] ? __pfx_cleanup_net (net/core/net_namespace.c:594) [ 42.512831][ T12] ? do_raw_spin_lock (arch/x86/include/asm/atomic.h:107 include/linux/atomic/atomic-arch-fallback.h:2170 include/linux/atomic/atomic-instrumented.h:1302 include/asm-generic/qspinlock.h:111 kernel/locking/spinlock_debug.c:116) [ 42.512840][ T12] ? lock_is_held_type (kernel/locking/lockdep.c:5592 kernel/locking/lockdep.c:5923) [ 42.512898][ T12] process_one_work (kernel/workqueue.c:3243) [ 42.512936][ T12] ? __pfx_lock_acquire (kernel/locking/lockdep.c:5819) [ 42.512949][ T12] ? __pfx_process_one_work (kernel/workqueue.c:3140) [ 42.512973][ T12] ? assign_work (kernel/workqueue.c:1200) [ 42.512980][ T12] ? lock_is_held_type (kernel/locking/lockdep.c:5592 kernel/locking/lockdep.c:5923) [ 42.512997][ T12] worker_thread (kernel/workqueue.c:3313 kernel/workqueue.c:3400) [ 42.513029][ T12] ? __pfx_worker_thread (kernel/workqueue.c:3346) [ 42.513038][ T12] kthread (kernel/kthread.c:464) [ 42.513050][ T12] ? __pfx_kthread (kernel/kthread.c:413) [ 42.513069][ T12] ? __pfx_kthread (kernel/kthread.c:413) [ 42.513080][ T12] ret_from_fork (arch/x86/kernel/process.c:154) [ 42.513092][ T12] ? __pfx_kthread (kernel/kthread.c:413) [ 42.513103][ T12] ret_from_fork_asm (arch/x86/entry/entry_64.S:257) [ 42.513148][ T12] </TASK> [ 42.513154][ T12] irq event stamp: 12365 [ 42.513159][ T12] hardirqs last enabled at (12371): console_trylock_spinning (arch/x86/include/asm/irqflags.h:42 arch/x86/include/asm/irqflags.h:97 arch/x86/include/asm/irqflags.h:155 kernel/printk/printk.c:2043) [ 42.513170][ T12] hardirqs last disabled at (12376): console_trylock_spinning (kernel/printk/printk.c:2022 (discriminator 1)) [ 42.513178][ T12] softirqs last enabled at (12056): handle_softirqs (arch/x86/include/asm/preempt.h:26 kernel/softirq.c:408 kernel/softirq.c:589) [ 42.513188][ T12] softirqs last disabled at (12041): __irq_exit_rcu (kernel/softirq.c:596 kernel/softirq.c:435 kernel/softirq.c:662) [ 42.513196][ T12] ---[ end trace 0000000000000000 ]--- The kernel config and materials to reproduce are available at: https://download.01.org/0day-ci/archive/20250327/202503271441.962cfd7a-lkp@xxxxxxxxx -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki