INFO: task syz-executor.0:27930 blocked for more than 143 seconds. Not tainted 6.7.0-syzkaller-12824-g9d64bf433c53 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:23904 pid:27930 tgid:27930 ppid:1 flags:0x20000006 Call Trace: context_switch kernel/sched/core.c:5400 [inline] __schedule+0xf12/0x5c00 kernel/sched/core.c:6727 __schedule_loop kernel/sched/core.c:6802 [inline] schedule+0xe9/0x270 kernel/sched/core.c:6817 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6874 __mutex_lock_common kernel/locking/mutex.c:684 [inline] __mutex_lock+0x5b9/0x9d0 kernel/locking/mutex.c:752 new_device_store+0x183/0x730 drivers/net/netdevsim/bus.c:166 bus_attr_store+0x76/0xa0 drivers/base/bus.c:170 sysfs_kf_write+0x117/0x170 fs/sysfs/file.c:136 kernfs_fop_write_iter+0x33f/0x500 fs/kernfs/file.c:334 call_write_iter include/linux/fs.h:2085 [inline] new_sync_write fs/read_write.c:497 [inline] vfs_write+0x6d5/0x1100 fs/read_write.c:590 ksys_write+0x12f/0x250 fs/read_write.c:643 do_syscall_32_irqs_on arch/x86/entry/common.c:165 [inline] __do_fast_syscall_32+0x79/0x110 arch/x86/entry/common.c:321 do_fast_syscall_32+0x33/0x70 arch/x86/entry/common.c:346 entry_SYSENTER_compat_after_hwframe+0x70/0x7a RIP: 0023:0xf7f35579 RSP: 002b:00000000f749f470 EFLAGS: 00000293 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000005 RCX: 00000000f749f4b0 RDX: 0000000000000003 RSI: 00000000f7354ff4 RDI: 0000000000000000 RBP: 0000000000000005 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000293 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Showing all locks held in the system: 4 locks held by kworker/1:0/23: 1 lock held by khungtaskd/29: #0: ffffffff8d1acba0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:298 [inline] #0: ffffffff8d1acba0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:750 [inline] #0: ffffffff8d1acba0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x75/0x340 kernel/locking/lockdep.c:6614 1 lock held by dhcpcd/4727: #0: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: devinet_ioctl+0x1d3/0x1f10 net/ipv4/devinet.c:1091 2 locks held by getty/4817: #0: ffff88802f6a00a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x24/0x80 drivers/tty/tty_ldisc.c:243 #1: ffffc90002f062f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xfc6/0x1490 drivers/tty/n_tty.c:2201 3 locks held by kworker/0:8/29902: #0: ffff8880295aa938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2608 #1: ffffc900097d7d80 ((work_completion)(&(&net->ipv6.addr_chk_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2609 #2: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_verify_work+0x12/0x30 net/ipv6/addrconf.c:4671 2 locks held by kworker/u4:6/15505: 3 locks held by kworker/0:0/27223: #0: ffff888013088d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2608 #1: ffffc9000cbe7d80 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2609 #2: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0x51/0xc0 net/core/link_watch.c:281 3 locks held by kworker/0:1/24732: #0: ffff888013088d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2608 #1: ffffc90003d6fd80 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2609 #2: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xe/0x20 net/switchdev/switchdev.c:75 5 locks held by kworker/u4:3/26117: #0: ffff8880146e0d38 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2608 #1: ffffc9001512fd80 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2609 #2: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9f/0xb20 net/core/net_namespace.c:580 #3: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: default_device_exit_batch+0x93/0x610 net/core/dev.c:11596 #4: ffffffff8d1b82c0 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x48/0x6c0 kernel/rcu/tree.c:4032 3 locks held by kworker/1:4/27856: #0: ffff8880295aa938 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2608 #1: ffffc90016037d80 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2609 #2: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: addrconf_dad_work+0xcf/0x14b0 net/ipv6/addrconf.c:4129 3 locks held by kworker/1:5/27883: #0: ffff88801308a138 ((wq_completion)events_power_efficient){+.+.}-{0:0}, at: process_one_work+0x789/0x15d0 kernel/workqueue.c:2608 #1: ffffc9001686fd80 ((reg_check_chans).work){+.+.}-{0:0}, at: process_one_work+0x7eb/0x15d0 kernel/workqueue.c:2609 #2: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: reg_check_chans_work+0x7d/0x1050 net/wireless/reg.c:2479 4 locks held by syz-executor.3/27913: #0: ffff888059c2a420 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12f/0x250 fs/read_write.c:643 #1: ffff88808e83e888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x27d/0x500 fs/kernfs/file.c:325 #2: ffff888021ab63e8 (kn->active#50){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a0/0x500 fs/kernfs/file.c:326 #3: ffffffff8e354808 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: del_device_store+0xd2/0x4b0 drivers/net/netdevsim/bus.c:216 1 lock held by syz-executor.2/27918: #0: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x372/0xe00 net/core/rtnetlink.c:6612 7 locks held by syz-executor.4/27921: #0: ffff888059c2a420 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12f/0x250 fs/read_write.c:643 #1: ffff88803f6f8888 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x27d/0x500 fs/kernfs/file.c:325 #2: ffff888021ab62f0 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a0/0x500 fs/kernfs/file.c:326 #3: ffffffff8e354808 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: new_device_store+0x183/0x730 drivers/net/netdevsim/bus.c:166 #4: ffff888099e610e8 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:990 [inline] #4: ffff888099e610e8 (&dev->mutex){....}-{3:3}, at: __device_attach+0x7f/0x4b0 drivers/base/dd.c:1005 #5: ffff888099e60250 (&devlink->lock_key#9){+.+.}-{3:3}, at: nsim_drv_probe+0xd5/0x1490 drivers/net/netdevsim/dev.c:1534 #6: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: register_nexthop_notifier+0x1b/0x70 net/ipv4/nexthop.c:3622 4 locks held by syz-executor.5/27923: #0: ffff888059c2a420 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12f/0x250 fs/read_write.c:643 #1: ffff888032495088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x27d/0x500 fs/kernfs/file.c:325 #2: ffff888021ab62f0 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a0/0x500 fs/kernfs/file.c:326 #3: ffffffff8e354808 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: new_device_store+0x183/0x730 drivers/net/netdevsim/bus.c:166 4 locks held by syz-executor.0/27930: #0: ffff888059c2a420 (sb_writers#8){.+.+}-{0:0}, at: ksys_write+0x12f/0x250 fs/read_write.c:643 #1: ffff888091820088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x27d/0x500 fs/kernfs/file.c:325 #2: ffff888021ab62f0 (kn->active#51){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x2a0/0x500 fs/kernfs/file.c:326 #3: ffffffff8e354808 (nsim_bus_dev_list_lock){+.+.}-{3:3}, at: new_device_store+0x183/0x730 drivers/net/netdevsim/bus.c:166 1 lock held by syz-executor.1/28183: #0: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: ip_rt_ioctl+0xfd/0x15d0 net/ipv4/fib_frontend.c:630 2 locks held by syz-executor.3/28189: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.2/28192: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.4/28194: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.5/28198: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.0/28202: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.1/28207: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.3/28220: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.2/28224: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.4/28226: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.5/28230: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.0/28234: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 2 locks held by syz-executor.1/28239: #0: ffffffff8ecab510 (pernet_ops_rwsem){++++}-{3:3}, at: copy_net_ns+0x2cc/0x660 net/core/net_namespace.c:491 #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_create_pnetids_list net/smc/smc_pnet.c:809 [inline] #1: ffffffff8ecc0b68 (rtnl_mutex){+.+.}-{3:3}, at: smc_pnet_net_init+0x136/0x240 net/smc/smc_pnet.c:878 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-syzkaller-12824-g9d64bf433c53 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd9/0x1b0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x277/0x390 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x299/0x300 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline] watchdog+0xf87/0x1210 kernel/hung_task.c:379 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 27789 Comm: kworker/u4:1 Not tainted 6.7.0-syzkaller-12824-g9d64bf433c53 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023 Workqueue: bat_events batadv_nc_worker RIP: 0010:check_wait_context kernel/locking/lockdep.c:4799 [inline] RIP: 0010:__lock_acquire+0x601/0x3b30 kernel/locking/lockdep.c:5087 Code: 1c 24 49 c1 ed 03 49 01 ed 49 63 c4 48 8d 04 80 49 8d 3c c6 e8 30 59 ff ff 48 8d b8 c4 00 00 00 48 89 f9 49 89 f8 48 c1 e9 03 <41> 83 e0 07 0f b6 0c 29 44 38 c1 7f 08 84 c9 0f 85 0a 22 00 00 0f RSP: 0018:ffffc90015e7f978 EFLAGS: 00000803 RAX: ffffffff921aae10 RBX: ffff88807c5d9dc0 RCX: 1ffffffff24355da RDX: fffffbfff242ac04 RSI: 0000000000000008 RDI: ffffffff921aaed4 RBP: dffffc0000000000 R08: ffffffff921aaed4 R09: fffffbfff242ac03 R10: ffffffff9215601f R11: 0000000000000002 R12: 0000000000000000 R13: ffffed100f8bb50f R14: ffff88807c5da880 R15: 0000000000000004 FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c0009089d8 CR3: 000000000cf78000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: lock_acquire kernel/locking/lockdep.c:5754 [inline] lock_acquire+0x1ae/0x520 kernel/locking/lockdep.c:5719 rcu_lock_acquire include/linux/rcupdate.h:298 [inline] rcu_read_lock include/linux/rcupdate.h:750 [inline] batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline] batadv_nc_worker+0x16e/0x10e0 net/batman-adv/network-coding.c:719 process_one_work+0x886/0x15d0 kernel/workqueue.c:2633 process_scheduled_works kernel/workqueue.c:2706 [inline] worker_thread+0x8b9/0x1290 kernel/workqueue.c:2787 kthread+0x2c6/0x3a0 kernel/kthread.c:388 ret_from_fork+0x45/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242