INFO: task syz-executor.1:7210 blocked for more than 143 seconds. Not tainted 6.3.0-rc6-syzkaller-00016-g0d3eb744aed4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:24936 pid:7210 ppid:1 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 rwsem_down_write_slowpath+0x3e2/0x1220 kernel/locking/rwsem.c:1178 __down_write_common kernel/locking/rwsem.c:1306 [inline] __down_write kernel/locking/rwsem.c:1315 [inline] down_write+0x1d2/0x200 kernel/locking/rwsem.c:1574 unregister_netdevice_notifier+0x22/0x180 net/core/dev.c:1759 devlink_free+0x2cb/0x460 net/devlink/core.c:269 nsim_drv_remove+0x158/0x1d0 drivers/net/netdevsim/dev.c:1687 device_remove+0xc8/0x170 drivers/base/dd.c:540 __device_release_driver drivers/base/dd.c:1240 [inline] device_release_driver_internal+0x443/0x610 drivers/base/dd.c:1263 bus_remove_device+0x22c/0x420 drivers/base/bus.c:574 device_del+0x48a/0xb80 drivers/base/core.c:3775 device_unregister+0x1e/0xc0 drivers/base/core.c:3805 nsim_bus_dev_del drivers/net/netdevsim/bus.c:310 [inline] del_device_store+0x34e/0x4a0 drivers/net/netdevsim/bus.c:219 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f1/0x600 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f929563deef RSP: 002b:00007f92958cf220 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f929563deef RDX: 0000000000000001 RSI: 00007f92958cf270 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007f92958cf1c0 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f92956e78b6 R13: 00007f92958cf270 R14: 0000000000000000 R15: 00007f92958cf940 INFO: task syz-executor.5:7212 blocked for more than 144 seconds. Not tainted 6.3.0-rc6-syzkaller-00016-g0d3eb744aed4 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:25072 pid:7212 ppid:1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5307 [inline] __schedule+0xc91/0x5770 kernel/sched/core.c:6625 schedule+0xde/0x1a0 kernel/sched/core.c:6701 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6760 __mutex_lock_common kernel/locking/mutex.c:679 [inline] __mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747 del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x114/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x3f1/0x600 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:1851 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x9ed/0xe10 fs/read_write.c:584 ksys_write+0x12b/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f6aba63deef RSP: 002b:00007f6aba8cf220 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007f6aba63deef RDX: 0000000000000001 RSI: 00007f6aba8cf270 RDI: 0000000000000005 RBP: 0000000000000005 R08: 0000000000000000 R09: 00007f6aba8cf1c0 R10: 0000000000000000 R11: 0000000000000293 R12: 00007f6aba6e78b6 R13: 00007f6aba8cf270 R14: 0000000000000000 R15: 00007f6aba8cf940 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8c794a70 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by rcu_tasks_trace/13: #0: ffffffff8c794770 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:510 1 lock held by khungtaskd/28: #0: ffffffff8c7955c0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6495 2 locks held by getty/4755: #0: ffff888027ef6098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2177 3 locks held by kworker/u4:3/4908: 3 locks held by kworker/u4:13/5541: #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:639 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:666 [inline] #0: ffff888016617138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x87a/0x15c0 kernel/workqueue.c:2361 #1: ffffc9000b2cfda8 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8ae/0x15c0 kernel/workqueue.c:2365 #2: ffffffff8e0e2590 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9f/0xb10 net/core/net_namespace.c:575 3 locks held by syz-executor.1/7147: 6 locks held by syz-executor.1/7210: #0: ffff88802c1e2460 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:637 #1: ffff8880457ebc88 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x285/0x600 fs/kernfs/file.c:325 #2: ffff888146a7e490 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a9/0x600 fs/kernfs/file.c:326 #3: ffffffff8d7e1728 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 #4: ffff8880595150e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:832 [inline] #4: ffff8880595150e8 (&dev->mutex){....}-{3:3}, at: __device_driver_lock drivers/base/dd.c:1063 [inline] #4: ffff8880595150e8 (&dev->mutex){....}-{3:3}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1260 #5: ffffffff8e0e2590 (pernet_ops_rwsem){++++}-{3:3}, at: unregister_netdevice_notifier+0x22/0x180 net/core/dev.c:1759 4 locks held by syz-executor.5/7212: #0: ffff88802c1e2460 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:637 #1: ffff88804405e088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x285/0x600 fs/kernfs/file.c:325 #2: ffff888146a7e490 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a9/0x600 fs/kernfs/file.c:326 #3: ffffffff8d7e1728 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xc9/0x4a0 drivers/net/netdevsim/bus.c:209 1 lock held by syz-executor.5/7246: #0: ffffffff8e0e2590 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4cb/0x8e0 net/core/net_namespace.c:486 1 lock held by syz-executor.1/7248: #0: ffffffff8e0e2590 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x4cb/0x8e0 net/core/net_namespace.c:486 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc6-syzkaller-00016-g0d3eb744aed4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106 nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xe16/0x1090 kernel/hung_task.c:379 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 21 Comm: ksoftirqd/1 Not tainted 6.3.0-rc6-syzkaller-00016-g0d3eb744aed4 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 RIP: 0010:find_match.part.0+0x66/0xd80 net/ipv6/route.c:741 Code: 03 80 3c 02 00 0f 85 f5 0b 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 3b 49 8d bf 48 03 00 00 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 c6 0b 00 00 4d 8b bf 48 03 00 00 e8 b8 59 3d 01 31 ff 89 c6 RSP: 0018:ffffc900001b69f8 EFLAGS: 00000246 RAX: dffffc0000000000 RBX: ffff8880599d50a8 RCX: 0000000000000100 RDX: 1ffff1100b67c869 RSI: ffffffff88c267dc RDI: ffff88805b3e4348 RBP: ffffc900001b6a68 R08: ffffc900001b6c58 R09: ffffc900001b6c48 R10: 0000000000000000 R11: 0000000000094001 R12: 0000000000000003 R13: 0000000000000001 R14: 000000000000000d R15: ffff88805b3e4000 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c000ee9000 CR3: 000000000c571000 CR4: 00000000003506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 000000000000003b DR6: 00000000ffff0ff0 DR7: 0000000000000400 Call Trace: find_match net/ipv6/route.c:828 [inline] __find_rr_leaf+0x17f/0xdc0 net/ipv6/route.c:829 find_rr_leaf net/ipv6/route.c:850 [inline] rt6_select net/ipv6/route.c:894 [inline] fib6_table_lookup+0x62e/0xa20 net/ipv6/route.c:2182 ip6_pol_route+0x1c9/0x1230 net/ipv6/route.c:2218 pol_lookup_func include/net/ip6_fib.h:582 [inline] fib6_rule_lookup+0x115/0x6f0 net/ipv6/fib6_rules.c:116 ip6_route_input_lookup net/ipv6/route.c:2287 [inline] ip6_route_input+0x5cc/0xbb0 net/ipv6/route.c:2583 ip6_rcv_finish_core.constprop.0+0x1a4/0x5d0 net/ipv6/ip6_input.c:66 ip6_rcv_finish+0x130/0x2c0 net/ipv6/ip6_input.c:77 ip_sabotage_in net/bridge/br_netfilter_hooks.c:875 [inline] ip_sabotage_in+0x208/0x270 net/bridge/br_netfilter_hooks.c:865 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_slow+0xc9/0x1f0 net/netfilter/core.c:614 nf_hook.constprop.0+0x408/0x710 include/linux/netfilter.h:257 NF_HOOK include/linux/netfilter.h:300 [inline] ipv6_rcv+0xa2/0x380 net/ipv6/ip6_input.c:309 __netif_receive_skb_one_core+0x114/0x180 net/core/dev.c:5479 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5593 netif_receive_skb_internal net/core/dev.c:5679 [inline] netif_receive_skb+0x133/0x7a0 net/core/dev.c:5738 NF_HOOK include/linux/netfilter.h:302 [inline] NF_HOOK include/linux/netfilter.h:296 [inline] br_pass_frame_up+0x303/0x430 net/bridge/br_input.c:68 br_handle_frame_finish+0xae9/0x1d90 net/bridge/br_input.c:216 br_nf_hook_thresh+0x2fb/0x3f0 net/bridge/br_netfilter_hooks.c:1042 br_nf_pre_routing_finish_ipv6+0x699/0xf30 net/bridge/br_netfilter_ipv6.c:207 NF_HOOK include/linux/netfilter.h:302 [inline] br_nf_pre_routing_ipv6+0x41b/0x830 net/bridge/br_netfilter_ipv6.c:237 br_nf_pre_routing+0xd80/0x14f0 net/bridge/br_netfilter_hooks.c:507 nf_hook_entry_hookfn include/linux/netfilter.h:142 [inline] nf_hook_bridge_pre net/bridge/br_input.c:272 [inline] br_handle_frame+0x9cd/0x1320 net/bridge/br_input.c:416 __netif_receive_skb_core+0x9fe/0x38d0 net/core/dev.c:5373 __netif_receive_skb_one_core+0xae/0x180 net/core/dev.c:5477 __netif_receive_skb+0x1f/0x1c0 net/core/dev.c:5593 process_backlog+0x239/0x800 net/core/dev.c:5921 __napi_poll+0xb7/0x6f0 net/core/dev.c:6482 napi_poll net/core/dev.c:6549 [inline] net_rx_action+0x9c2/0xd80 net/core/dev.c:6659 __do_softirq+0x1d4/0x905 kernel/softirq.c:571 run_ksoftirqd kernel/softirq.c:934 [inline] run_ksoftirqd+0x31/0x60 kernel/softirq.c:926 smpboot_thread_fn+0x659/0x9e0 kernel/smpboot.c:164 kthread+0x2e8/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308