INFO: task kworker/u8:7:1155 blocked for more than 143 seconds. Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u8:7 state:D stack:20784 pid:1155 tgid:1155 ppid:2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:3) Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 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+0x7e7/0xee0 kernel/locking/mutex.c:735 jfs_commit_inode+0x24a/0x590 fs/jfs/inode.c:102 jfs_write_inode+0x143/0x220 fs/jfs/inode.c:132 write_inode fs/fs-writeback.c:1525 [inline] __writeback_single_inode+0x708/0x10d0 fs/fs-writeback.c:1745 writeback_sb_inodes+0x820/0x1360 fs/fs-writeback.c:1976 __writeback_inodes_wb+0x11b/0x260 fs/fs-writeback.c:2047 wb_writeback+0x427/0xb80 fs/fs-writeback.c:2158 wb_check_background_flush fs/fs-writeback.c:2228 [inline] wb_do_writeback fs/fs-writeback.c:2316 [inline] wb_workfn+0xc4b/0x1080 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 INFO: task syz.3.135:7293 blocked for more than 143 seconds. Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.135 state:D stack:27360 pid:7293 tgid:7228 ppid:5831 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905 rwsem_down_read_slowpath kernel/locking/rwsem.c:1084 [inline] __down_read_common kernel/locking/rwsem.c:1248 [inline] __down_read kernel/locking/rwsem.c:1261 [inline] down_read+0x705/0xa40 kernel/locking/rwsem.c:1526 inode_lock_shared include/linux/fs.h:828 [inline] lookup_slow+0x45/0x70 fs/namei.c:1807 walk_component+0x2e1/0x410 fs/namei.c:2112 lookup_last fs/namei.c:2610 [inline] path_lookupat+0x16f/0x450 fs/namei.c:2634 filename_lookup+0x2a3/0x670 fs/namei.c:2663 do_linkat+0x13f/0x6f0 fs/namei.c:4843 __do_sys_link fs/namei.c:4897 [inline] __se_sys_link fs/namei.c:4895 [inline] __x64_sys_link+0x82/0x90 fs/namei.c:4895 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa3c0585d29 RSP: 002b:00007fa3be3f6038 EFLAGS: 00000246 ORIG_RAX: 0000000000000056 RAX: ffffffffffffffda RBX: 00007fa3c0776080 RCX: 00007fa3c0585d29 RDX: 0000000000000000 RSI: 0000000020000bc0 RDI: 0000000020000280 RBP: 00007fa3c0601b08 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000001 R14: 00007fa3c0776080 R15: 00007ffc7f768318 INFO: task syz.3.135:7297 blocked for more than 144 seconds. Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz.3.135 state:D stack:27360 pid:7297 tgid:7228 ppid:5831 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:5369 [inline] __schedule+0x17fb/0x4be0 kernel/sched/core.c:6756 __schedule_loop kernel/sched/core.c:6833 [inline] schedule+0x14b/0x320 kernel/sched/core.c:6848 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6905 rwsem_down_write_slowpath+0xeee/0x13b0 kernel/locking/rwsem.c:1176 __down_write_common kernel/locking/rwsem.c:1304 [inline] __down_write kernel/locking/rwsem.c:1313 [inline] down_write_nested+0x1e0/0x220 kernel/locking/rwsem.c:1694 inode_lock_nested include/linux/fs.h:853 [inline] lock_rename fs/namei.c:3215 [inline] do_renameat2+0x62c/0x13f0 fs/namei.c:5159 __do_sys_renameat2 fs/namei.c:5258 [inline] __se_sys_renameat2 fs/namei.c:5255 [inline] __x64_sys_renameat2+0xce/0xe0 fs/namei.c:5255 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fa3c0585d29 RSP: 002b:00007fa3be3d5038 EFLAGS: 00000246 ORIG_RAX: 000000000000013c RAX: ffffffffffffffda RBX: 00007fa3c0776160 RCX: 00007fa3c0585d29 RDX: ffffffffffffff9c RSI: 00000000200000c0 RDI: ffffffffffffff9c RBP: 00007fa3c0601b08 R08: 0000000000000002 R09: 0000000000000000 R10: 0000000020000b00 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fa3c0776160 R15: 00007ffc7f768318 Showing all locks held in the system: 1 lock held by khungtaskd/30: #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_lock_acquire include/linux/rcupdate.h:337 [inline] #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: rcu_read_lock include/linux/rcupdate.h:849 [inline] #0: ffffffff8e937ae0 (rcu_read_lock){....}-{1:3}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6744 3 locks held by kworker/u8:2/35: #0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801ac89148 ((wq_completion)events_unbound){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310 #1: ffffc90000ab7d00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc90000ab7d00 ((linkwatch_work).work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310 #2: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: linkwatch_event+0xe/0x60 net/core/link_watch.c:281 3 locks held by kworker/u8:6/1107: #0: ffff88814d4d6948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88814d4d6948 ((wq_completion)ipv6_addrconf){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310 #1: ffffc900041cfd00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc900041cfd00 ((work_completion)(&(&ifa->dad_work)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310 #2: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: addrconf_dad_work+0xd0/0x16f0 net/ipv6/addrconf.c:4215 4 locks held by kworker/u8:7/1155: #0: ffff8881416e3948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff8881416e3948 ((wq_completion)writeback){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310 #1: ffffc9000432fd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc9000432fd00 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310 #2: ffff888074ee40e0 (&type->s_umount_key#78){++++}-{4:4}, at: super_trylock_shared+0x22/0xf0 fs/super.c:562 #3: ffff888055379d70 (&jfs_ip->commit_mutex){+.+.}-{4:4}, at: jfs_commit_inode+0x24a/0x590 fs/jfs/inode.c:102 1 lock held by klogd/5182: 2 locks held by dhcpcd/5486: #0: ffffffff8fc860c8 (vlan_ioctl_mutex){+.+.}-{4:4}, at: sock_ioctl+0x661/0x8e0 net/socket.c:1290 #1: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: vlan_ioctl_handler+0x112/0x9d0 net/8021q/vlan.c:553 2 locks held by getty/5578: #0: ffff8880319da0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243 #1: ffffc90002fee2f0 (&ldata->atomic_read_lock){+.+.}-{4:4}, at: n_tty_read+0x6a6/0x1e00 drivers/tty/n_tty.c:2211 5 locks held by kworker/u8:9/6956: #0: ffff88801baeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3204 [inline] #0: ffff88801baeb148 ((wq_completion)netns){+.+.}-{0:0}, at: process_scheduled_works+0x93b/0x1840 kernel/workqueue.c:3310 #1: ffffc900038d7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work kernel/workqueue.c:3205 [inline] #1: ffffc900038d7d00 (net_cleanup_work){+.+.}-{0:0}, at: process_scheduled_works+0x976/0x1840 kernel/workqueue.c:3310 #2: ffffffff8fc94550 (pernet_ops_rwsem){++++}-{4:4}, at: cleanup_net+0x16a/0xd50 net/core/net_namespace.c:602 #3: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: default_device_exit_batch+0xe9/0xaa0 net/core/dev.c:12061 #4: ffffffff8e93cff8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:297 [inline] #4: ffffffff8e93cff8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x381/0x830 kernel/rcu/tree_exp.h:976 4 locks held by syz.3.135/7229: 1 lock held by syz.3.135/7293: #0: ffff88805537a120 (&type->i_mutex_dir_key#18){++++}-{4:4}, at: inode_lock_shared include/linux/fs.h:828 [inline] #0: ffff88805537a120 (&type->i_mutex_dir_key#18){++++}-{4:4}, at: lookup_slow+0x45/0x70 fs/namei.c:1807 2 locks held by syz.3.135/7297: #0: ffff888074ee4420 (sb_writers#25){.+.+}-{0:0}, at: mnt_want_write+0x3f/0x90 fs/namespace.c:515 #1: ffff88805537a120 (&type->i_mutex_dir_key#16/1){+.+.}-{4:4}, at: inode_lock_nested include/linux/fs.h:853 [inline] #1: ffff88805537a120 (&type->i_mutex_dir_key#16/1){+.+.}-{4:4}, at: lock_rename fs/namei.c:3215 [inline] #1: ffff88805537a120 (&type->i_mutex_dir_key#16/1){+.+.}-{4:4}, at: do_renameat2+0x62c/0x13f0 fs/namei.c:5159 3 locks held by kworker/u8:11/7524: 3 locks held by syz-executor/8303: #0: ffffffff8fd03450 (cb_lock){++++}-{4:4}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1218 #1: ffffffff8fd03308 (genl_mutex){+.+.}-{4:4}, at: genl_lock net/netlink/genetlink.c:35 [inline] #1: ffffffff8fd03308 (genl_mutex){+.+.}-{4:4}, at: genl_op_lock net/netlink/genetlink.c:60 [inline] #1: ffffffff8fd03308 (genl_mutex){+.+.}-{4:4}, at: genl_rcv_msg+0x121/0xec0 net/netlink/genetlink.c:1209 #2: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: ieee80211_register_hw+0x2c4e/0x3e10 net/mac80211/main.c:1520 1 lock held by syz-executor/8426: #0: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_lock net/core/rtnetlink.c:79 [inline] #0: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_nets_lock net/core/rtnetlink.c:326 [inline] #0: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_newlink+0xce2/0x2210 net/core/rtnetlink.c:4011 7 locks held by syz-executor/8537: #0: ffff888023c14420 (sb_writers#8){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2964 [inline] #0: ffff888023c14420 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x225/0xd30 fs/read_write.c:675 #1: ffff888074e25488 (&of->mutex){+.+.}-{4:4}, at: kernfs_fop_write_iter+0x1ea/0x500 fs/kernfs/file.c:325 #2: ffff88814470ee18 (kn->active#49){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20e/0x500 fs/kernfs/file.c:326 #3: ffffffff8f54c4e8 (nsim_bus_dev_list_lock){+.+.}-{4:4}, at: del_device_store+0xfc/0x480 drivers/net/netdevsim/bus.c:216 #4: ffff8880341a40e8 (&dev->mutex){....}-{4:4}, at: device_lock include/linux/device.h:1014 [inline] #4: ffff8880341a40e8 (&dev->mutex){....}-{4:4}, at: __device_driver_lock drivers/base/dd.c:1095 [inline] #4: ffff8880341a40e8 (&dev->mutex){....}-{4:4}, at: device_release_driver_internal+0xce/0x7c0 drivers/base/dd.c:1293 #5: ffff888021781250 (&devlink->lock_key#15){+.+.}-{4:4}, at: nsim_drv_remove+0x50/0x160 drivers/net/netdevsim/dev.c:1675 #6: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: nsim_destroy+0x71/0x5c0 drivers/net/netdevsim/netdev.c:816 1 lock held by syz-executor/8670: #0: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: rtnl_net_lock include/linux/rtnetlink.h:128 [inline] #0: ffffffff8fca0a08 (rtnl_mutex){+.+.}-{4:4}, at: inet_rtm_newaddr+0x47e/0x1bd0 net/ipv4/devinet.c:987 3 locks held by syz.8.265/8673: #0: ffff888035110d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_dev_do_close net/bluetooth/hci_core.c:480 [inline] #0: ffff888035110d80 (&hdev->req_lock){+.+.}-{4:4}, at: hci_unregister_dev+0x203/0x510 net/bluetooth/hci_core.c:2697 #1: ffff888035110078 (&hdev->lock){+.+.}-{4:4}, at: hci_dev_close_sync+0x5c8/0x11c0 net/bluetooth/hci_sync.c:5200 #2: ffffffff8e93cff8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: exp_funnel_lock kernel/rcu/tree_exp.h:329 [inline] #2: ffffffff8e93cff8 (rcu_state.exp_mutex){+.+.}-{4:4}, at: synchronize_rcu_expedited+0x451/0x830 kernel/rcu/tree_exp.h:976 ============================================= NMI backtrace for cpu 1 CPU: 1 UID: 0 PID: 30 Comm: khungtaskd Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #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+0x241/0x360 lib/dump_stack.c:120 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113 nmi_trigger_cpumask_backtrace+0x198/0x320 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+0xff6/0x1040 kernel/hung_task.c:397 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 UID: 0 PID: 6956 Comm: kworker/u8:9 Not tainted 6.13.0-rc6-syzkaller-00006-g5428dc1906dd #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 Workqueue: netns cleanup_net RIP: 0010:remove_class_from_lock_chain kernel/locking/lockdep.c:6178 [inline] RIP: 0010:remove_class_from_lock_chains kernel/locking/lockdep.c:6217 [inline] RIP: 0010:zap_class+0x15a/0x840 kernel/locking/lockdep.c:6259 Code: 74 08 48 89 df e8 c6 63 87 00 4c 8b 3b eb 03 4d 8b 3f 4d 85 ff 74 bc 49 83 c7 f8 74 b6 4d 89 fd 49 c1 ed 03 43 0f b6 44 35 00 <84> c0 0f 85 2d 02 00 00 41 8b 1f f6 c3 fc 0f 84 fe 01 00 00 48 c1 RSP: 0018:ffffc900038d75c8 EFLAGS: 00000806 RAX: 0000000000000000 RBX: ffffffff93e870c0 RCX: 00000000000351b5 RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffffffff94271a08 RBP: ffffffff93213ab0 R08: ffffffff94271a0f R09: 1ffffffff284e341 R10: dffffc0000000000 R11: fffffbfff284e342 R12: 0000000000000c52 R13: 1ffffffff284fa78 R14: dffffc0000000000 R15: ffffffff9427d3c0 FS: 0000000000000000(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4e2b399000 CR3: 000000000e736000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __lockdep_free_key_range kernel/locking/lockdep.c:6385 [inline] lockdep_unregister_key+0x3d2/0x610 kernel/locking/lockdep.c:6587 __qdisc_destroy+0x165/0x410 net/sched/sch_generic.c:1085 qdisc_put net/sched/sch_generic.c:1111 [inline] dev_shutdown+0x357/0x450 net/sched/sch_generic.c:1499 unregister_netdevice_many_notify+0x995/0x1da0 net/core/dev.c:11517 unregister_netdevice_many net/core/dev.c:11592 [inline] default_device_exit_batch+0xa1f/0xaa0 net/core/dev.c:12075 ops_exit_list net/core/net_namespace.c:177 [inline] cleanup_net+0x89d/0xd50 net/core/net_namespace.c:648 process_one_work kernel/workqueue.c:3229 [inline] process_scheduled_works+0xa66/0x1840 kernel/workqueue.c:3310 worker_thread+0x870/0xd30 kernel/workqueue.c:3391 kthread+0x2f0/0x390 kernel/kthread.c:389 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244