[ 69.860336][ T1157] [ 69.860535][ T1157] ============================================ [ 69.860750][ T1157] WARNING: possible recursive locking detected [ 69.860960][ T1157] 6.13.0-rc5-virtme #1 Not tainted [ 69.861129][ T1157] -------------------------------------------- [ 69.861344][ T1157] busy_poll_test./1157 is trying to acquire lock: [ 69.861552][ T1157] ffffffff87ff6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 69.861902][ T1157] [ 69.861902][ T1157] but task is already holding lock: [ 69.862148][ T1157] ffffffff87ff6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 69.862487][ T1157] [ 69.862487][ T1157] other info that might help us debug this: [ 69.862737][ T1157] Possible unsafe locking scenario: [ 69.862737][ T1157] [ 69.862982][ T1157] CPU0 [ 69.863121][ T1157] ---- [ 69.863246][ T1157] lock((netdev_chain).rwsem); [ 69.863415][ T1157] lock((netdev_chain).rwsem); [ 69.863585][ T1157] [ 69.863585][ T1157] *** DEADLOCK *** [ 69.863585][ T1157] [ 69.863835][ T1157] May be due to missing lock nesting notation [ 69.863835][ T1157] [ 69.864083][ T1157] 8 locks held by busy_poll_test./1157: [ 69.864253][ T1157] #0: ffff88800af243f0 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0xf8/0x1d0 [ 69.864559][ T1157] #1: ffff88800d884a88 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x20b/0x460 [ 69.864860][ T1157] #2: ffff888005307210 (kn->active#33){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22e/0x460 [ 69.865203][ T1157] #3: ffffffffc05c5628 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: new_device_store+0x12a/0x690 [netdevsim] [ 69.865597][ T1157] #4: ffff88800f8688e8 (&dev->mutex){....}-{4:4}, at: __device_attach+0x76/0x3f0 [ 69.865902][ T1157] #5: ffff888016f16a50 (&devlink->lock_key){+.+.}-{4:4}, at: nsim_drv_probe+0xb7/0x8b0 [netdevsim] [ 69.866254][ T1157] #6: ffffffff88007e88 (rtnl_mutex){+.+.}-{4:4}, at: nsim_create+0x46a/0xa60 [netdevsim] [ 69.866561][ T1157] #7: ffffffff87ff6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90 [ 69.866905][ T1157] [ 69.866905][ T1157] stack backtrace: [ 69.867115][ T1157] CPU: 3 UID: 0 PID: 1157 Comm: busy_poll_test. Not tainted 6.13.0-rc5-virtme #1 [ 69.867411][ T1157] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 69.867620][ T1157] Call Trace: [ 69.867752][ T1157] [ 69.867841][ T1157] dump_stack_lvl+0x82/0xd0 [ 69.868016][ T1157] print_deadlock_bug+0x40a/0x650 [ 69.868185][ T1157] validate_chain+0x5bf/0xae0 [ 69.868355][ T1157] ? __pfx_validate_chain+0x10/0x10 [ 69.868528][ T1157] ? hlock_class+0x4e/0x130 [ 69.868693][ T1157] ? mark_lock+0x38/0x3e0 [ 69.868820][ T1157] __lock_acquire+0xb9a/0x1680 [ 69.868988][ T1157] ? udp_tunnel_nic_netdevice_event+0xd1/0x5c0 [ 69.869198][ T1157] ? really_probe+0x1df/0x920 [ 69.869372][ T1157] lock_acquire.part.0+0xeb/0x330 [ 69.869539][ T1157] ? blocking_notifier_call_chain+0x50/0x90 [ 69.869745][ T1157] ? entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 69.869956][ T1157] ? find_held_lock+0x2c/0x110 [ 69.870123][ T1157] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 69.870289][ T1157] ? trace_lock_acquire+0x14c/0x1f0 [ 69.870455][ T1157] ? lock_acquire+0x32/0xc0 [ 69.870623][ T1157] ? blocking_notifier_call_chain+0x50/0x90 [ 69.870832][ T1157] down_read+0x9f/0x340 [ 69.870959][ T1157] ? blocking_notifier_call_chain+0x50/0x90 [ 69.871167][ T1157] ? __pfx_down_read+0x10/0x10 [ 69.871337][ T1157] ? notifier_call_chain+0xcd/0x150 [ 69.871504][ T1157] blocking_notifier_call_chain+0x50/0x90 [ 69.871672][ T1157] call_netdevice_notifiers+0x71/0xa0 [ 69.871841][ T1157] ? __pfx_call_netdevice_notifiers+0x10/0x10 [ 69.872050][ T1157] ? mutex_is_locked+0x1c/0x60 [ 69.872216][ T1157] udp_tunnel_nic_register+0x591/0x870 [ 69.872386][ T1157] udp_tunnel_nic_netdevice_event+0x11d/0x5c0 [ 69.872594][ T1157] notifier_call_chain+0xcd/0x150 [ 69.872762][ T1157] blocking_notifier_call_chain+0x66/0x90 [ 69.872930][ T1157] register_netdevice+0xe75/0x1360 [ 69.873111][ T1157] ? __pfx_register_netdevice+0x10/0x10 [ 69.873283][ T1157] nsim_create+0x6c2/0xa60 [netdevsim] [ 69.873463][ T1157] __nsim_dev_port_add+0x22f/0x6e0 [netdevsim] [ 69.873680][ T1157] ? mark_lock+0x38/0x3e0 [ 69.873806][ T1157] ? __pfx___nsim_dev_port_add+0x10/0x10 [netdevsim] [ 69.874024][ T1157] ? lockdep_hardirqs_on_prepare+0x275/0x410 [ 69.874234][ T1157] nsim_dev_port_add_all+0x39/0xf0 [netdevsim] [ 69.874450][ T1157] nsim_drv_probe+0x61e/0x8b0 [netdevsim] [ 69.874633][ T1157] ? __pfx_nsim_drv_probe+0x10/0x10 [netdevsim] [ 69.874850][ T1157] ? kernfs_create_link+0x173/0x240 [ 69.875017][ T1157] ? kernfs_put+0x1c/0x40 [ 69.875145][ T1157] ? sysfs_do_create_link_sd+0x8c/0x100 [ 69.875317][ T1157] really_probe+0x1df/0x920 [ 69.875490][ T1157] __driver_probe_device+0x2e6/0x3e0 [ 69.875657][ T1157] driver_probe_device+0x49/0x140 [ 69.875826][ T1157] __device_attach_driver+0x192/0x2b0 [ 69.875995][ T1157] ? __pfx___device_attach_driver+0x10/0x10 [ 69.876203][ T1157] bus_for_each_drv+0x107/0x1a0 [ 69.876371][ T1157] ? __pfx_bus_for_each_drv+0x10/0x10 [ 69.876537][ T1157] ? bus_to_subsys+0xd5/0x110 [ 69.876703][ T1157] ? __pfx___lock_release+0x10/0x10 [ 69.876872][ T1157] ? __pfx_lock_acquire.part.0+0x10/0x10 [ 69.877042][ T1157] __device_attach+0x1a3/0x3f0 [ 69.877210][ T1157] ? __pfx___device_attach+0x10/0x10 [ 69.877378][ T1157] ? bus_to_subsys+0xd5/0x110 [ 69.877548][ T1157] ? do_raw_spin_unlock+0x58/0x220 [ 69.877717][ T1157] bus_probe_device+0x133/0x180 [ 69.877884][ T1157] device_add+0x99d/0x1110 [ 69.878053][ T1157] ? __pfx_device_add+0x10/0x10 [ 69.878221][ T1157] ? __init_waitqueue_head+0xcf/0x150 [ 69.878394][ T1157] new_device_store+0x393/0x690 [netdevsim] [ 69.878615][ T1157] ? __pfx_new_device_store+0x10/0x10 [netdevsim] [ 69.878835][ T1157] ? __pfx_sysfs_kf_write+0x10/0x10 [ 69.879000][ T1157] ? sysfs_file_ops+0x11e/0x170 [ 69.879170][ T1157] ? __pfx_sysfs_kf_write+0x10/0x10 [ 69.879337][ T1157] kernfs_fop_write_iter+0x2ba/0x460 [ 69.879509][ T1157] vfs_write+0xa81/0x11e0 [ 69.879636][ T1157] ? __pfx_vfs_write+0x10/0x10 [ 69.879804][ T1157] ? __lock_release+0x103/0x460 [ 69.879972][ T1157] ? do_user_addr_fault+0x972/0xe30 [ 69.880144][ T1157] ? __pfx___up_read+0x10/0x10 [ 69.880312][ T1157] ksys_write+0xf8/0x1d0 [ 69.880439][ T1157] ? __pfx_ksys_write+0x10/0x10 [ 69.880605][ T1157] ? do_user_addr_fault+0x97c/0xe30 [ 69.880778][ T1157] do_syscall_64+0xc1/0x1d0 [ 69.880945][ T1157] entry_SYSCALL_64_after_hwframe+0x77/0x7f [ 69.881153][ T1157] RIP: 0033:0x7fe1426b9b77 [ 69.881326][ T1157] Code: 0b 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24 [ 69.881916][ T1157] RSP: 002b:00007ffc3540dd68 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 [ 69.882169][ T1157] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007fe1426b9b77 [ 69.882417][ T1157] RDX: 0000000000000004 RSI: 000055bd75ffcf80 RDI: 0000000000000001 [ 69.882668][ T1157] RBP: 000055bd75ffcf80 R08: 0000000000000003 R09: 0000000000000000 [ 69.882919][ T1157] R10: 0000000000000020 R11: 0000000000000246 R12: 0000000000000004 [ 69.883175][ T1157] R13: 00007fe142775760 R14: 0000000000000004 R15: 00007fe1427709c0 [ 69.883433][ T1157] [ 69.972129][ T1159] netdevsim netdevsim337 eni337np1: renamed from eth0 [ 70.061399][ T1161] netdevsim netdevsim524 eni524np1: renamed from eth1