INFO: task syz-executor.1:24846 blocked for more than 143 seconds. Not tainted 5.16.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:21232 pid:24846 ppid: 3632 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xb72/0x1460 kernel/sched/core.c:6253 schedule+0x12b/0x1f0 kernel/sched/core.c:6326 rwsem_down_write_slowpath+0xdb7/0x1480 kernel/locking/rwsem.c:1151 __down_write_common kernel/locking/rwsem.c:1268 [inline] __down_write kernel/locking/rwsem.c:1277 [inline] down_write+0x163/0x170 kernel/locking/rwsem.c:1524 inode_lock include/linux/fs.h:783 [inline] do_truncate+0x200/0x300 fs/open.c:62 handle_truncate fs/namei.c:3082 [inline] do_open fs/namei.c:3430 [inline] path_openat+0x2a37/0x3660 fs/namei.c:3559 do_filp_open+0x277/0x4f0 fs/namei.c:3586 do_sys_openat2+0x13b/0x500 fs/open.c:1212 do_sys_open fs/open.c:1228 [inline] __do_sys_creat fs/open.c:1304 [inline] __se_sys_creat fs/open.c:1298 [inline] __x64_sys_creat+0x11f/0x160 fs/open.c:1298 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fb443f09e99 RSP: 002b:00007fb44285e168 EFLAGS: 00000246 ORIG_RAX: 0000000000000055 RAX: ffffffffffffffda RBX: 00007fb44401d030 RCX: 00007fb443f09e99 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 00007fb443f63ff1 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd893e3b9f R14: 00007fb44285e300 R15: 0000000000022000 INFO: task syz-executor.1:24871 blocked for more than 143 seconds. Not tainted 5.16.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.1 state:D stack:27184 pid:24871 ppid: 3632 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:4972 [inline] __schedule+0xb72/0x1460 kernel/sched/core.c:6253 schedule+0x12b/0x1f0 kernel/sched/core.c:6326 rwsem_down_read_slowpath+0x5e2/0xb00 kernel/locking/rwsem.c:1041 __down_read_common+0xaa/0x450 kernel/locking/rwsem.c:1223 mmap_read_lock include/linux/mmap_lock.h:117 [inline] exit_mm+0xd4/0x2f0 kernel/exit.c:483 do_exit+0x688/0x2340 kernel/exit.c:819 do_group_exit+0x168/0x2d0 kernel/exit.c:929 get_signal+0x1740/0x2120 kernel/signal.c:2852 arch_do_signal_or_restart+0x9c/0x730 arch/x86/kernel/signal.c:868 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x191/0x220 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300 do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fb443f09e99 RSP: 002b:00007fb44281c218 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 00007fb44401d1d8 RCX: 00007fb443f09e99 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 00007fb44401d1d8 RBP: 00007fb44401d1d0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fb44401d1dc R13: 00007ffd893e3b9f R14: 00007fb44281c300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/26: #0: ffffffff8cb1de00 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/3279: #0: ffff88814ac08098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252 #1: ffffc90002b962e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6c5/0x1c60 drivers/tty/n_tty.c:2113 3 locks held by kworker/u4:8/16137: #0: ffff8880b9a395d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:478 #1: ffff8880b9a27888 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x46c/0x780 kernel/sched/psi.c:871 #2: ffff8880b9a280d8 (&base->lock){-.-.}-{2:2}, at: lock_timer_base+0x12a/0x270 kernel/time/timer.c:946 1 lock held by syz-executor.1/24835: #0: ffff888077add528 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_write_lock_killable include/linux/mmap_lock.h:87 [inline] #0: ffff888077add528 (&mm->mmap_lock#2){++++}-{3:3}, at: do_mprotect_pkey+0x1f5/0xa20 mm/mprotect.c:551 2 locks held by syz-executor.1/24838: #0: ffff88814adda460 (sb_writers#5){.+.+}-{0:0}, at: do_sendfile+0x6db/0x1040 fs/read_write.c:1244 #1: ffff888032712bd0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:783 [inline] #1: ffff888032712bd0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: ext4_buffered_write_iter+0xb0/0x520 fs/ext4/file.c:263 2 locks held by syz-executor.1/24846: #0: ffff88814adda460 (sb_writers#5){.+.+}-{0:0}, at: mnt_want_write+0x3b/0x80 fs/namespace.c:376 #1: ffff888032712bd0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: inode_lock include/linux/fs.h:783 [inline] #1: ffff888032712bd0 (&sb->s_type->i_mutex_key#9){++++}-{3:3}, at: do_truncate+0x200/0x300 fs/open.c:62 1 lock held by syz-executor.1/24871: #0: ffff888077add528 (&mm->mmap_lock#2){++++}-{3:3}, at: mmap_read_lock include/linux/mmap_lock.h:117 [inline] #0: ffff888077add528 (&mm->mmap_lock#2){++++}-{3:3}, at: exit_mm+0xd4/0x2f0 kernel/exit.c:483 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 26 Comm: khungtaskd Not tainted 5.16.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1dc/0x2d8 lib/dump_stack.c:106 nmi_cpu_backtrace+0x45f/0x490 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x16a/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline] watchdog+0xc82/0xcd0 kernel/hung_task.c:295 kthread+0x468/0x490 kernel/kthread.c:327 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 2953 Comm: syslogd Not tainted 5.16.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__preempt_count_add kernel/rcu/tree.c:1117 [inline] RIP: 0010:rcu_is_watching+0x2/0xa0 kernel/rcu/tree.c:1120 Code: 5c 41 5d 41 5e 41 5f 5d c3 e8 ea 70 9b 08 41 f7 c4 00 02 00 00 75 b4 eb b3 e8 ba 70 9b 08 66 2e 0f 1f 84 00 00 00 00 00 41 57 <41> 56 53 65 83 05 bb 87 93 7e 01 e8 3e 83 9b 08 89 c3 83 f8 08 73 RSP: 0018:ffffc90001cdf398 EFLAGS: 00000296 RAX: 1ac3bae4f1b75200 RBX: 00007fc8a2d818fe RCX: ffff88807e116158 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: dffffc0000000000 R09: fffffbfff1ff3ddd R10: fffffbfff1ff3ddd R11: 0000000000000000 R12: ffff88807e115700 R13: ffffffff8171d250 R14: 00007fc8a2d818fe R15: 1ffff9200039be91 FS: 00007fc8a2bf5800(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c01a43d950 CR3: 000000007f7c9000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_read_lock include/linux/rcupdate.h:689 [inline] is_bpf_text_address+0x2c/0x270 kernel/bpf/core.c:715 kernel_text_address+0x9e/0xd0 kernel/extable.c:124 __kernel_text_address+0x9/0x40 kernel/extable.c:78 unwind_get_return_address+0x48/0x80 arch/x86/kernel/unwind_orc.c:318 arch_stack_walk+0xf8/0x140 arch/x86/kernel/stacktrace.c:26 stack_trace_save+0x11b/0x1e0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track+0x4c/0x80 mm/kasan/common.c:46 kasan_set_free_info+0x1f/0x40 mm/kasan/generic.c:370 ____kasan_slab_free+0x10d/0x150 mm/kasan/common.c:366 kasan_slab_free include/linux/kasan.h:235 [inline] slab_free_hook mm/slub.c:1723 [inline] slab_free_freelist_hook+0x12e/0x1a0 mm/slub.c:1749 slab_free mm/slub.c:3513 [inline] kfree+0xe1/0x330 mm/slub.c:4561 skb_free_head net/core/skbuff.c:655 [inline] skb_release_data+0x3d3/0x500 net/core/skbuff.c:677 skb_release_all net/core/skbuff.c:742 [inline] __kfree_skb+0x56/0x1d0 net/core/skbuff.c:756 skb_free_datagram+0x27/0x1e0 net/core/datagram.c:325 __unix_dgram_recvmsg+0xc94/0x1220 net/unix/af_unix.c:2383 sock_recvmsg_nosec net/socket.c:944 [inline] sock_recvmsg net/socket.c:962 [inline] sock_read_iter+0x3a7/0x4d0 net/socket.c:1035 call_read_iter include/linux/fs.h:2156 [inline] new_sync_read fs/read_write.c:400 [inline] vfs_read+0xaf9/0xe60 fs/read_write.c:481 ksys_read+0x18f/0x2c0 fs/read_write.c:619 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7fc8a2d818fe Code: c0 e9 e6 fe ff ff 50 48 8d 3d 0e c7 09 00 e8 c9 cf 01 00 66 0f 1f 84 00 00 00 00 00 64 8b 04 25 18 00 00 00 85 c0 75 14 0f 05 <48> 3d 00 f0 ff ff 77 5a c3 66 0f 1f 84 00 00 00 00 00 48 83 ec 28 RSP: 002b:00007ffff5a4e0f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007fc8a2d818fe RDX: 00000000000000ff RSI: 00005631bfec2950 RDI: 0000000000000000 RBP: 00005631bfec2910 R08: 00007fc8a2e11040 R09: 00007fc8a2e110c0 R10: 00007fc8a2e10fc0 R11: 0000000000000246 R12: 00005631bfec298e R13: 00005631bfec2950 R14: 0000000000000000 R15: 0000000000000000 ---------------- Code disassembly (best guess): 0: 5c pop %rsp 1: 41 5d pop %r13 3: 41 5e pop %r14 5: 41 5f pop %r15 7: 5d pop %rbp 8: c3 retq 9: e8 ea 70 9b 08 callq 0x89b70f8 e: 41 f7 c4 00 02 00 00 test $0x200,%r12d 15: 75 b4 jne 0xffffffcb 17: eb b3 jmp 0xffffffcc 19: e8 ba 70 9b 08 callq 0x89b70d8 1e: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 25: 00 00 00 28: 41 57 push %r15 * 2a: 41 56 push %r14 <-- trapping instruction 2c: 53 push %rbx 2d: 65 83 05 bb 87 93 7e addl $0x1,%gs:0x7e9387bb(%rip) # 0x7e9387f0 34: 01 35: e8 3e 83 9b 08 callq 0x89b8378 3a: 89 c3 mov %eax,%ebx 3c: 83 f8 08 cmp $0x8,%eax 3f: 73 .byte 0x73