[   13.456671][  T286] ip (286) used greatest stack depth: 24320 bytes left
[   13.580768][  T287] 
[   13.580952][  T287] ============================================
[   13.581174][  T287] WARNING: possible recursive locking detected
[   13.581391][  T287] 6.13.0-rc5-virtme #1 Not tainted
[   13.581566][  T287] --------------------------------------------
[   13.581776][  T287] echo/287 is trying to acquire lock:
[   13.581947][  T287] ffffffffac5f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90
[   13.582306][  T287] 
[   13.582306][  T287] but task is already holding lock:
[   13.582554][  T287] ffffffffac5f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90
[   13.582898][  T287] 
[   13.582898][  T287] other info that might help us debug this:
[   13.583147][  T287]  Possible unsafe locking scenario:
[   13.583147][  T287] 
[   13.583397][  T287]        CPU0
[   13.583523][  T287]        ----
[   13.583649][  T287]   lock((netdev_chain).rwsem);
[   13.583820][  T287]   lock((netdev_chain).rwsem);
[   13.583993][  T287] 
[   13.583993][  T287]  *** DEADLOCK ***
[   13.583993][  T287] 
[   13.584241][  T287]  May be due to missing lock nesting notation
[   13.584241][  T287] 
[   13.584496][  T287] 8 locks held by echo/287:
[   13.584671][  T287]  #0: ffff88800a8d43f0 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0xf8/0x1d0
[   13.584983][  T287]  #1: ffff88800d1a3288 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x20b/0x460
[   13.585293][  T287]  #2: ffff888009bc2370 (kn->active#33){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x22e/0x460
[   13.585650][  T287]  #3: ffffffffc048d628 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: new_device_store+0x12a/0x690 [netdevsim]
[   13.586053][  T287]  #4: ffff88800563b8e8 (&dev->mutex){....}-{4:4}, at: __device_attach+0x76/0x3f0
[   13.586391][  T287]  #5: ffff8880097b8a50 (&devlink->lock_key){+.+.}-{4:4}, at: nsim_drv_probe+0xb7/0x8b0 [netdevsim]
[   13.586752][  T287]  #6: ffffffffac607e88 (rtnl_mutex){+.+.}-{4:4}, at: nsim_create+0x46a/0xa60 [netdevsim]
[   13.587070][  T287]  #7: ffffffffac5f6a70 ((netdev_chain).rwsem){++++}-{4:4}, at: blocking_notifier_call_chain+0x50/0x90
[   13.587442][  T287] 
[   13.587442][  T287] stack backtrace:
[   13.587654][  T287] CPU: 2 UID: 0 PID: 287 Comm: echo Not tainted 6.13.0-rc5-virtme #1
[   13.587907][  T287] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011
[   13.588120][  T287] Call Trace:
[   13.588251][  T287]  <TASK>
[   13.588340][  T287]  dump_stack_lvl+0x82/0xd0
[   13.588513][  T287]  print_deadlock_bug+0x40a/0x650
[   13.588684][  T287]  validate_chain+0x5bf/0xae0
[   13.588861][  T287]  ? __pfx_validate_chain+0x10/0x10
[   13.589048][  T287]  ? hlock_class+0x4e/0x130
[   13.589221][  T287]  ? mark_lock+0x38/0x3e0
[   13.589354][  T287]  __lock_acquire+0xb9a/0x1680
[   13.589533][  T287]  ? udp_tunnel_nic_netdevice_event+0xd1/0x5c0
[   13.589757][  T287]  ? really_probe+0x1df/0x920
[   13.589932][  T287]  lock_acquire.part.0+0xeb/0x330
[   13.590109][  T287]  ? blocking_notifier_call_chain+0x50/0x90
[   13.590326][  T287]  ? entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   13.590544][  T287]  ? find_held_lock+0x2c/0x110
[   13.590722][  T287]  ? __pfx_lock_acquire.part.0+0x10/0x10
[   13.590914][  T287]  ? trace_lock_acquire+0x14c/0x1f0
[   13.591086][  T287]  ? lock_acquire+0x32/0xc0
[   13.591256][  T287]  ? blocking_notifier_call_chain+0x50/0x90
[   13.591469][  T287]  down_read+0x9f/0x340
[   13.591598][  T287]  ? blocking_notifier_call_chain+0x50/0x90
[   13.591812][  T287]  ? __pfx_down_read+0x10/0x10
[   13.591982][  T287]  ? notifier_call_chain+0xcd/0x150
[   13.592162][  T287]  blocking_notifier_call_chain+0x50/0x90
[   13.592342][  T287]  call_netdevice_notifiers+0x71/0xa0
[   13.592513][  T287]  ? __pfx_call_netdevice_notifiers+0x10/0x10
[   13.592726][  T287]  ? mutex_is_locked+0x1c/0x60
[   13.592898][  T287]  udp_tunnel_nic_register+0x591/0x870
[   13.593070][  T287]  udp_tunnel_nic_netdevice_event+0x11d/0x5c0
[   13.593282][  T287]  notifier_call_chain+0xcd/0x150
[   13.593466][  T287]  blocking_notifier_call_chain+0x66/0x90
[   13.593639][  T287]  register_netdevice+0xe75/0x1360
[   13.593813][  T287]  ? __pfx_register_netdevice+0x10/0x10
[   13.593988][  T287]  nsim_create+0x6c2/0xa60 [netdevsim]
[   13.594190][  T287]  __nsim_dev_port_add+0x22f/0x6e0 [netdevsim]
[   13.594412][  T287]  ? mark_lock+0x38/0x3e0
[   13.594543][  T287]  ? __pfx___nsim_dev_port_add+0x10/0x10 [netdevsim]
[   13.594766][  T287]  ? lockdep_hardirqs_on_prepare+0x275/0x410
[   13.594979][  T287]  nsim_dev_port_add_all+0x39/0xf0 [netdevsim]
[   13.595208][  T287]  nsim_drv_probe+0x61e/0x8b0 [netdevsim]
[   13.595399][  T287]  ? __pfx_nsim_drv_probe+0x10/0x10 [netdevsim]
[   13.595620][  T287]  ? kernfs_create_link+0x173/0x240
[   13.595812][  T287]  ? kernfs_put+0x1c/0x40
[   13.595945][  T287]  ? sysfs_do_create_link_sd+0x8c/0x100
[   13.596128][  T287]  really_probe+0x1df/0x920
[   13.596304][  T287]  __driver_probe_device+0x2e6/0x3e0
[   13.596483][  T287]  driver_probe_device+0x49/0x140
[   13.596663][  T287]  __device_attach_driver+0x192/0x2b0
[   13.596839][  T287]  ? __pfx___device_attach_driver+0x10/0x10
[   13.597053][  T287]  bus_for_each_drv+0x107/0x1a0
[   13.597228][  T287]  ? __pfx_bus_for_each_drv+0x10/0x10
[   13.597404][  T287]  ? bus_to_subsys+0xd5/0x110
[   13.597581][  T287]  ? __pfx___lock_release+0x10/0x10
[   13.597793][  T287]  ? __pfx_lock_acquire.part.0+0x10/0x10
[   13.597964][  T287]  __device_attach+0x1a3/0x3f0
[   13.598135][  T287]  ? __pfx___device_attach+0x10/0x10
[   13.598306][  T287]  ? bus_to_subsys+0xd5/0x110
[   13.598477][  T287]  ? do_raw_spin_unlock+0x58/0x220
[   13.598648][  T287]  bus_probe_device+0x133/0x180
[   13.598824][  T287]  device_add+0x99d/0x1110
[   13.598999][  T287]  ? __pfx_device_add+0x10/0x10
[   13.599169][  T287]  ? __init_waitqueue_head+0xcf/0x150
[   13.599345][  T287]  new_device_store+0x393/0x690 [netdevsim]
[   13.599597][  T287]  ? __pfx_new_device_store+0x10/0x10 [netdevsim]
[   13.599826][  T287]  ? __pfx_sysfs_kf_write+0x10/0x10
[   13.600004][  T287]  ? sysfs_file_ops+0x11e/0x170
[   13.600182][  T287]  ? __pfx_sysfs_kf_write+0x10/0x10
[   13.600360][  T287]  kernfs_fop_write_iter+0x2ba/0x460
[   13.600534][  T287]  vfs_write+0xa81/0x11e0
[   13.600666][  T287]  ? __pfx_vfs_write+0x10/0x10
[   13.600851][  T287]  ? __lock_release+0x103/0x460
[   13.601025][  T287]  ? do_user_addr_fault+0x972/0xe30
[   13.601197][  T287]  ? __pfx___up_read+0x10/0x10
[   13.601368][  T287]  ksys_write+0xf8/0x1d0
[   13.601500][  T287]  ? __pfx_ksys_write+0x10/0x10
[   13.601671][  T287]  ? do_user_addr_fault+0x97c/0xe30
[   13.601842][  T287]  do_syscall_64+0xc1/0x1d0
[   13.602014][  T287]  entry_SYSCALL_64_after_hwframe+0x77/0x7f
[   13.602229][  T287] RIP: 0033:0x7fc24cb54b77
[   13.602406][  T287] 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
[   13.603011][  T287] RSP: 002b:00007ffd42709548 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[   13.603270][  T287] RAX: ffffffffffffffda RBX: 0000000000000007 RCX: 00007fc24cb54b77
[   13.603526][  T287] RDX: 0000000000000007 RSI: 0000560e9bec82f0 RDI: 0000000000000001
[   13.603784][  T287] RBP: 0000560e9bec82f0 R08: 0000000000000006 R09: 0000000000000077
[   13.604039][  T287] R10: 0000000000000063 R11: 0000000000000246 R12: 0000000000000007
[   13.604295][  T287] R13: 00007fc24cc10760 R14: 0000000000000007 R15: 00007fc24cc0b9c0
[   13.604557][  T287]  </TASK>
[   14.236929][  T298] GACT probability NOT on
[   14.369030][  T302] drop_monitor: Initializing network drop monitor service