INFO: task syz-executor:18570 blocked for more than 143 seconds. Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor state:D stack:24096 pid:18570 tgid:18570 ppid:1 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0xe58/0x5ad0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0xe7/0x350 kernel/sched/core.c:6848 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905 __mutex_lock_common kernel/locking/mutex.c:665 [inline] __mutex_lock+0x62b/0xa60 kernel/locking/mutex.c:735 del_device_store+0xd2/0x4b0 drivers/net/netdevsim/bus.c:216 bus_attr_store+0x71/0xb0 drivers/base/bus.c:172 sysfs_kf_write+0x117/0x170 fs/sysfs/file.c:139 kernfs_fop_write_iter+0x33d/0x500 fs/kernfs/file.c:334 new_sync_write fs/read_write.c:586 [inline] vfs_write+0x5ae/0x1150 fs/read_write.c:679 ksys_write+0x12b/0x250 fs/read_write.c:731 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xcd/0x250 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa9aa17e98f RSP: 002b:00007ffc1d328cd0 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00007fa9aa17e98f RDX: 0000000000000001 RSI: 00007ffc1d328d20 RDI: 0000000000000005 RBP: 00007fa9aa1f4ebd R08: 0000000000000000 R09: 00007ffc1d328b27 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000001 R13: 00007ffc1d328d20 R14: 00007fa9aae74620 R15: 0000000000000003 Showing all locks held in the system: 4 locks held by ksoftirqd/1/24: 1 lock held by khungtaskd/30: #0: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e1bb500 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x7f/0x390 kernel/locking/lockdep.c:6744 4 locks held by kworker/u8:3/57: #0: ffff88801beeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000122fd80 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0xbb/0xb40 net/core/net_namespace.c:586 #3: ffffffff8fb22eb0 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_exit_net+0x178/0x590 drivers/infiniband/core/device.c:1130 2 locks held by getty/5573: #0: ffff8880322070a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fde2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0xfba/0x1480 drivers/tty/n_tty.c:2211 5 locks held by kworker/u9:0/16723: #0: ffff88814d552148 ((wq_completion)hci8){+.+.}-{0:0}, at: process_one_work+0x1293/0x1ba0 kernel/workqueue.c:3204 #1: ffffc9000d1bfd80 ((work_completion)(&hdev->cmd_sync_work)){+.+.}-{0:0}, at: process_one_work+0x921/0x1ba0 kernel/workqueue.c:3205 #2: ffff88803ad40d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_cmd_sync_work+0x170/0x410 net/bluetooth/hci_sync.c:331 #3: ffff88803ad40078 (&hdev->lock){+.+.}-{4:4}, at: hci_abort_conn_sync+0x147/0xb40 net/bluetooth/hci_sync.c:5584 #4: ffffffff8e1c6e38 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock+0x282/0x3b0 kernel/rcu/tree_exp.h:297 8 locks held by syz-executor/18528: #0: ffff888036712420 (sb_writers#9){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:731 #1: ffff888077aed488 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x27b/0x500 fs/kernfs/file.c:325 #2: ffff8880213b7008 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x29e/0x500 fs/kernfs/file.c:326 #3: ffffffff8f483bc8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd2/0x4b0 drivers/net/netdevsim/bus.c:216 #4: ffff8880463510e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #4: ffff8880463510e8 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff8880463510e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xa4/0x610 drivers/base/dd.c:1293 #5: ffff888046352250 (&devlink->lock_key#9){+.+.}-{4:4}, at: nsim_drv_remove+0x4a/0x1d0 drivers/net/netdevsim/dev.c:1675 #6: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0x6f/0x6b0 drivers/net/netdevsim/netdev.c:816 #7: ffffffff8e05eb50 (cpu_hotplug_lock){++++}-{0:0}, at: flush_all_backlogs net/core/dev.c:6031 [inline] #7: ffffffff8e05eb50 (cpu_hotplug_lock){++++}-{0:0}, at: unregister_netdevice_many_notify+0x54d/0x1e60 net/core/dev.c:11507 4 locks held by syz-executor/18570: #0: ffff888036712420 (sb_writers#9){.+.+}-{0:0}, at: ksys_write+0x12b/0x250 fs/read_write.c:731 #1: ffff88804ba68888 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x27b/0x500 fs/kernfs/file.c:325 #2: ffff8880213b7008 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x29e/0x500 fs/kernfs/file.c:326 #3: ffffffff8f483bc8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xd2/0x4b0 drivers/net/netdevsim/bus.c:216 2 locks held by syz-executor/19983: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: cangw_pernet_exit_batch+0x15/0xa0 net/can/gw.c:1257 2 locks held by syz-executor/19999: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffff88807e918f40 (&device->compat_devs_mutex){+.+.}-{4:4}, at: remove_one_compat_dev drivers/infiniband/core/device.c:1005 [inline] #1: ffff88807e918f40 (&device->compat_devs_mutex){+.+.}-{4:4}, at: rdma_dev_exit_net+0x28b/0x590 drivers/infiniband/core/device.c:1147 2 locks held by syz-executor/20015: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: cfg802154_pernet_exit+0x17/0xe0 net/ieee802154/core.c:351 2 locks held by syz-executor/20080: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: cfg802154_pernet_exit+0x17/0xe0 net/ieee802154/core.c:351 2 locks held by syz-executor/20109: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8fb22eb0 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_exit_net+0x178/0x590 drivers/infiniband/core/device.c:1130 2 locks held by syz-executor/20134: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: ip_tunnel_init_net+0x218/0x790 net/ipv4/ip_tunnel.c:1159 2 locks held by syz-executor/20158: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: ip_tunnel_init_net+0x218/0x790 net/ipv4/ip_tunnel.c:1159 2 locks held by syz-executor/20183: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: ip_tunnel_init_net+0x218/0x790 net/ipv4/ip_tunnel.c:1159 4 locks held by syz-executor/20243: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8fb23130 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x234/0x530 drivers/infiniband/core/device.c:1186 #2: ffffffff8fb22eb0 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x2a7/0x530 drivers/infiniband/core/device.c:1191 #3: ffff88807e918f40 (&device->compat_devs_mutex){+.+.}-{4:4}, at: add_one_compat_dev+0x112/0x720 drivers/infiniband/core/device.c:950 6 locks held by syz-executor/20275: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8fb23130 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x234/0x530 drivers/infiniband/core/device.c:1186 #2: ffffffff8fb22eb0 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x2a7/0x530 drivers/infiniband/core/device.c:1191 #3: ffff88807e918f40 (&device->compat_devs_mutex){+.+.}-{4:4}, at: add_one_compat_dev+0x112/0x720 drivers/infiniband/core/device.c:950 #4: ffff88807e919238 (&rxe->usdev_lock){+.+.}-{4:4}, at: rxe_query_port+0x5d/0x200 drivers/infiniband/sw/rxe/rxe_verbs.c:54 #5: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: ib_get_eth_speed+0x118/0xb50 drivers/infiniband/core/verbs.c:1995 4 locks held by syz-executor/20301: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8fb23130 (devices_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x234/0x530 drivers/infiniband/core/device.c:1186 #2: ffffffff8fb22eb0 (rdma_nets_rwsem){++++}-{4:4}, at: rdma_dev_init_net+0x2a7/0x530 drivers/infiniband/core/device.c:1191 #3: ffff88807e918f40 (&device->compat_devs_mutex){+.+.}-{4:4}, at: add_one_compat_dev+0x112/0x720 drivers/infiniband/core/device.c:950 2 locks held by syz-executor/20323: #0: ffffffff8fec4610 (pernet_ops_rwsem){++++}-{4:4}, at: copy_net_ns+0x292/0x6b0 net/core/net_namespace.c:496 #1: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: register_nexthop_notifier+0x1b/0x70 net/ipv4/nexthop.c:3878 1 lock held by syz-executor/20342: #0: ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:326 [inline] ffffffff8feda348 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0x5e4/0x1ce0 net/core/rtnetlink.c:4008 ============================================= NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 nmi_cpu_backtrace+0x27b/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x29c/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:162 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:234 [inline] watchdog+0xf14/0x1240 kernel/hung_task.c:397 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 24 Comm: ksoftirqd/1 Not tainted 6.13.0-rc1-syzkaller-00337-g7503345ac5f5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:match_held_lock+0x65/0xc0 kernel/locking/lockdep.c:5326 Code: 30 e5 96 48 c1 f8 03 48 0f af c2 0f b7 53 20 5b 81 e2 ff 1f 00 00 48 39 d0 0f 94 c0 0f b6 c0 c3 cc cc cc cc b8 01 00 00 00 5b cc cc cc cc 31 f6 e8 2f fe ff ff 48 85 c0 75 a7 31 c0 5b c3 cc RSP: 0018:ffffc900001e6838 EFLAGS: 00000046 RAX: 0000000000000001 RBX: ffff88801dee0ae0 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff8e1bb500 RDI: ffff88801dee0ae0 RBP: ffffffff8e1bb500 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000003 R12: ffff88801dee0000 R13: ffff88801dee0ae0 R14: 00000000ffffffff R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880b8700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f5cc6d63ca0 CR3: 000000000df7e000 CR4: 00000000003526f0 Call Trace: __lock_is_held kernel/locking/lockdep.c:5590 [inline] lock_is_held_type+0xb0/0x150 kernel/locking/lockdep.c:5921 __find_rr_leaf+0x36d/0xe00 net/ipv6/route.c:800 find_rr_leaf net/ipv6/route.c:856 [inline] rt6_select net/ipv6/route.c:900 [inline] fib6_table_lookup+0x57e/0xa30 net/ipv6/route.c:2195 ip6_pol_route+0x1cd/0x1120 net/ipv6/route.c:2231 pol_lookup_func include/net/ip6_fib.h:616 [inline] fib6_rule_lookup+0x536/0x720 net/ipv6/fib6_rules.c:117 ip6_route_input_lookup net/ipv6/route.c:2300 [inline] ip6_route_input+0x663/0xc10 net/ipv6/route.c:2596 ip6_rcv_finish_core.constprop.0+0x1a0/0x5d0 net/ipv6/ip6_input.c:66 ip6_rcv_finish+0x12c/0x5b0 net/ipv6/ip6_input.c:77 ip_sabotage_in+0x21b/0x290 net/bridge/br_netfilter_hooks.c:1021 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_slow+0xbb/0x200 net/netfilter/core.c:626 nf_hook.constprop.0+0x42e/0x750 include/linux/netfilter.h:269 NF_HOOK include/linux/netfilter.h:312 [inline] ipv6_rcv+0xa4/0x680 net/ipv6/ip6_input.c:309 __netif_receive_skb_one_core+0x12e/0x1e0 net/core/dev.c:5672 __netif_receive_skb+0x1d/0x160 net/core/dev.c:5785 netif_receive_skb_internal net/core/dev.c:5871 [inline] netif_receive_skb+0x13f/0x7b0 net/core/dev.c:5930 NF_HOOK include/linux/netfilter.h:314 [inline] NF_HOOK include/linux/netfilter.h:308 [inline] br_pass_frame_up+0x346/0x490 net/bridge/br_input.c:70 br_handle_frame_finish+0xdcf/0x1c80 net/bridge/br_input.c:221 br_nf_hook_thresh+0x303/0x410 net/bridge/br_netfilter_hooks.c:1198 br_nf_pre_routing_finish_ipv6+0x76a/0xfb0 net/bridge/br_netfilter_ipv6.c:154 NF_HOOK include/linux/netfilter.h:314 [inline] br_nf_pre_routing_ipv6+0x3ce/0x8c0 net/bridge/br_netfilter_ipv6.c:184 br_nf_pre_routing+0x860/0x15b0 net/bridge/br_netfilter_hooks.c:536 nf_hook_entry_hookfn include/linux/netfilter.h:154 [inline] nf_hook_bridge_pre net/bridge/br_input.c:277 [inline] br_handle_frame+0x9eb/0x1490 net/bridge/br_input.c:424 __netif_receive_skb_core.constprop.0+0xa76/0x4470 net/core/dev.c:5566 __netif_receive_skb_one_core+0xb1/0x1e0 net/core/dev.c:5670 __netif_receive_skb+0x1d/0x160 net/core/dev.c:5785 process_backlog+0x443/0x15f0 net/core/dev.c:6117 __napi_poll.constprop.0+0xb7/0x550 net/core/dev.c:6883 napi_poll net/core/dev.c:6952 [inline] net_rx_action+0xa94/0x1010 net/core/dev.c:7074 handle_softirqs+0x213/0x8f0 kernel/softirq.c:554 run_ksoftirqd kernel/softirq.c:943 [inline] run_ksoftirqd+0x3a/0x60 kernel/softirq.c:935 smpboot_thread_fn+0x661/0xa30 kernel/smpboot.c:164 kthread+0x2c1/0x3a0 kernel/kthread.c:389 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244