INFO: task kworker/u4:2:41 blocked for more than 143 seconds. Not tainted 5.19.0-rc8-syzkaller-00102-g33ea1340bafe #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:2 state:D stack:23360 pid: 41 ppid: 2 flags:0x00004000 Workqueue: writeback wb_workfn (flush-7:3) Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0xa00/0x4b50 kernel/sched/core.c:6458 schedule+0xd2/0x1f0 kernel/sched/core.c:6530 schedule_timeout+0x1db/0x2a0 kernel/time/timer.c:1911 do_wait_for_common kernel/sched/completion.c:85 [inline] __wait_for_common+0x378/0x530 kernel/sched/completion.c:106 f2fs_issue_checkpoint+0x363/0x460 fs/f2fs/checkpoint.c:1867 f2fs_sync_fs+0x20f/0x420 fs/f2fs/super.c:1622 f2fs_balance_fs_bg+0xc6a/0xef0 fs/f2fs/segment.c:477 f2fs_write_node_pages+0x148/0xc50 fs/f2fs/node.c:2104 do_writepages+0x1ab/0x690 mm/page-writeback.c:2443 __writeback_single_inode+0x126/0x10d0 fs/fs-writeback.c:1587 writeback_sb_inodes+0x54d/0xf10 fs/fs-writeback.c:1865 __writeback_inodes_wb+0xc6/0x280 fs/fs-writeback.c:1936 wb_writeback+0x7f8/0xc30 fs/fs-writeback.c:2041 wb_check_old_data_flush fs/fs-writeback.c:2141 [inline] wb_do_writeback fs/fs-writeback.c:2194 [inline] wb_workfn+0x84f/0x1230 fs/fs-writeback.c:2222 process_one_work+0x996/0x1610 kernel/workqueue.c:2289 worker_thread+0x665/0x1080 kernel/workqueue.c:2436 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Showing all locks held in the system: 1 lock held by khungtaskd/28: #0: ffffffff8bd846e0 ( rcu_read_lock ){....}-{1:2} , at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6491 3 locks held by kworker/u4:2/41: #0: ffff8880173b3938 ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] ((wq_completion)writeback){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] ((wq_completion)writeback){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] ((wq_completion)writeback){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc90000d2fda8 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 #2: ffff88806e7020e0 (&type->s_umount_key#101){++++}-{3:3}, at: trylock_super+0x1d/0x100 fs/super.c:415 2 locks held by getty/3292: #0: ffff88814ab80098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:244 #1: ffffc90001c482e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xe50/0x13c0 drivers/tty/n_tty.c:2124 1 lock held by syz-fuzzer/3923: 2 locks held by kworker/u4:20/10585: 4 locks held by kworker/u4:21/11105: #0: ffff8881400a3138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff8881400a3138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] #0: ffff8881400a3138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] #0: ffff8881400a3138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:636 [inline] #0: ffff8881400a3138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] #0: ffff8881400a3138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc90004a17da8 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 #2: ffffffff8d576250 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0xb00 net/core/net_namespace.c:556 #3: ffffffff8bd8ec28 (rcu_state.barrier_mutex){+.+.}-{3:3}, at: rcu_barrier+0x44/0x630 kernel/rcu/tree.c:4105 1 lock held by syz-executor.3/23555: 5 locks held by f2fs_ckpt-7:3/32339: 6 locks held by kworker/0:0/32716: #0: ffff8881457e4938 ( (wq_completion)usb_hub_wq ){+.+.}-{0:0} , at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] , at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline] , at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1280 [inline] , at: set_work_data kernel/workqueue.c:636 [inline] , at: set_work_pool_and_clear_pending kernel/workqueue.c:663 [inline] , at: process_one_work+0x87a/0x1610 kernel/workqueue.c:2260 #1: ffffc90005607da8 ( (work_completion)(&hub->events) ){+.+.}-{0:0} , at: process_one_work+0x8ae/0x1610 kernel/workqueue.c:2264 #2: ffff888021613190 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:835 [inline] #2: ffff888021613190 (&dev->mutex){....}-{3:3}, at: hub_event+0x1c1/0x4690 drivers/usb/core/hub.c:5691 #3: ffff888021b7b4f8 (&port_dev->status_lock){+.+.}-{3:3}, at: usb_lock_port drivers/usb/core/hub.c:3095 [inline] #3: ffff888021b7b4f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5259 [inline] #3: ffff888021b7b4f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5507 [inline] #3: ffff888021b7b4f8 (&port_dev->status_lock){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5663 [inline] #3: ffff888021b7b4f8 (&port_dev->status_lock){+.+.}-{3:3}, at: hub_event+0x2001/0x4690 drivers/usb/core/hub.c:5745 #4: ffff888021a88068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect drivers/usb/core/hub.c:5260 [inline] #4: ffff888021a88068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_port_connect_change drivers/usb/core/hub.c:5507 [inline] #4: ffff888021a88068 (hcd->address0_mutex){+.+.}-{3:3}, at: port_event drivers/usb/core/hub.c:5663 [inline] #4: ffff888021a88068 (hcd->address0_mutex){+.+.}-{3:3}, at: hub_event+0x202a/0x4690 drivers/usb/core/hub.c:5745 #5: ffffffff8cc9c290 (ehci_cf_port_reset_rwsem){.+.+}-{3:3}, at: hub_port_reset+0x188/0x1ce0 drivers/usb/core/hub.c:2953 2 locks held by kworker/0:7/2546: 2 locks held by syz-executor.2/2919: #0: ffffffff8bdece48 (tracepoints_mutex){+.+.}-{3:3}, at: tracepoint_probe_register_prio_may_exist+0x7d/0xe0 kernel/tracepoint.c:478 #1: ffffffff8bd8ed60 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #1: ffffffff8bd8ed60 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x4f8/0x610 kernel/rcu/tree_exp.h:927 2 locks held by syz-executor.5/2925: #0: ffffffff8bc59b48 (sched_core_mutex){+.+.}-{3:3}, at: sched_core_get+0x47/0x190 kernel/sched/core.c:404 #1: ffffffff8bd8ed60 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:322 [inline] #1: ffffffff8bd8ed60 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x2d3/0x610 kernel/rcu/tree_exp.h:927 1 lock held by syz-executor.0/2936: #0: ffffffff8bdece48 (tracepoints_mutex){+.+.}-{3:3}, at: tracepoint_probe_register_prio_may_exist+0x7d/0xe0 kernel/tracepoint.c:478 2 locks held by syz-executor.4/2942: ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.19.0-rc8-syzkaller-00102-g33ea1340bafe #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x1e6/0x230 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xc1d/0xf50 kernel/hung_task.c:369 kthread+0x2e9/0x3a0 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 2966 Comm: klogd Not tainted 5.19.0-rc8-syzkaller-00102-g33ea1340bafe #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022 RIP: 0010:selinux_socket_unix_may_send+0x26/0x270 security/selinux/hooks.c:4971 Code: 00 00 00 00 41 55 49 bd 00 00 00 00 00 fc ff df 41 54 49 89 fc 55 48 89 f5 53 48 81 ec e8 00 00 00 48 c7 44 24 08 b3 8a b5 41 <48> 8d 44 24 08 48 c7 44 24 10 c8 81 6b 8b 48 c1 e8 03 48 c7 44 24 RSP: 0018:ffffc90003087a58 EFLAGS: 00000292 RAX: 1ffffffff16ffc50 RBX: ffffffff8b7fe268 RCX: 0000000000000000 RDX: ffff88807d90c1c0 RSI: ffff88801f1f6180 RDI: ffff88801f282680 RBP: ffff88801f1f6180 R08: 0000000000000003 R09: 0000000000000005 R10: 0000000000000002 R11: 0000000000000001 R12: ffff88801f282680 R13: dffffc0000000000 R14: ffff88801f282680 R15: 0000000000000000 FS: 00007fb653589800(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fb70b16a1b8 CR3: 000000007d8b9000 CR4: 00000000003506f0 Call Trace: security_unix_may_send+0x48/0xa0 security/security.c:2173 unix_dgram_sendmsg+0xdf0/0x1ad0 net/unix/af_unix.c:1979 sock_sendmsg_nosec net/socket.c:714 [inline] sock_sendmsg+0xcf/0x120 net/socket.c:734 __sys_sendto+0x21a/0x320 net/socket.c:2119 __do_sys_sendto net/socket.c:2131 [inline] __se_sys_sendto net/socket.c:2127 [inline] __x64_sys_sendto+0xdd/0x1b0 net/socket.c:2127 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fb6537250ac Code: 89 02 48 c7 c0 ff ff ff ff eb b8 0f 1f 00 41 89 ca 64 8b 04 25 18 00 00 00 85 c0 75 19 45 31 c9 45 31 c0 b8 2c 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 64 c3 0f 1f 00 55 48 83 ec 20 48 89 54 24 10 RSP: 002b:00007ffcc7a1a948 EFLAGS: 00000246 ORIG_RAX: 000000000000002c RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fb6537250ac RDX: 0000000000000048 RSI: 000055e285856800 RDI: 0000000000000003 RBP: 000055e28584d2c0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000004000 R11: 0000000000000246 R12: 0000000000000014 R13: 0000000000000001 R14: 00007fb6538a077d R15: 00007ffcc7a1aa58