INFO: task syz-executor.0:18058 blocked for more than 143 seconds. Not tainted 5.15.0-rc7-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:28496 pid:18058 ppid: 6536 flags:0x00000004 Call Trace: context_switch kernel/sched/core.c:4940 [inline] __schedule+0xb44/0x5960 kernel/sched/core.c:6287 schedule+0xd3/0x270 kernel/sched/core.c:6366 rwsem_down_write_slowpath+0x7b9/0x11d0 kernel/locking/rwsem.c:1107 __down_write_common kernel/locking/rwsem.c:1262 [inline] __down_write_common kernel/locking/rwsem.c:1259 [inline] __down_write kernel/locking/rwsem.c:1271 [inline] down_write+0x137/0x150 kernel/locking/rwsem.c:1518 filemap_invalidate_lock include/linux/fs.h:831 [inline] blkdev_fallocate+0x22c/0x480 block/fops.c:585 vfs_fallocate+0x48d/0xe10 fs/open.c:307 madvise_remove mm/madvise.c:925 [inline] madvise_vma mm/madvise.c:987 [inline] do_madvise.part.0+0xb60/0x2250 mm/madvise.c:1202 do_madvise mm/madvise.c:1228 [inline] __do_sys_madvise mm/madvise.c:1228 [inline] __se_sys_madvise mm/madvise.c:1226 [inline] __x64_sys_madvise+0x113/0x150 mm/madvise.c:1226 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+0x44/0xae RIP: 0033:0x7f42fc26fa39 RSP: 002b:00007f42f97e5188 EFLAGS: 00000246 ORIG_RAX: 000000000000001c RAX: ffffffffffffffda RBX: 00007f42fc382f60 RCX: 00007f42fc26fa39 RDX: 0000000000000009 RSI: 0000000000600003 RDI: 0000000020000000 RBP: 00007f42fc2c9e8f R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffd51cbf90f R14: 00007f42f97e5300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/27: #0: ffffffff8b981b20 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x53/0x260 kernel/locking/lockdep.c:6446 2 locks held by kworker/u4:3/256: #0: ffff8880b9d31a58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x2b/0x120 kernel/sched/core.c:474 #1: ffff8880b9d1f9c8 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x39d/0x480 kernel/sched/psi.c:880 1 lock held by in:imklog/6226: #0: ffff88801a598ff0 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0xe9/0x100 fs/file.c:990 2 locks held by agetty/6230: #0: ffff888016562098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x22/0x80 drivers/tty/tty_ldisc.c:252 #1: ffffc900011482e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xcf0/0x1230 drivers/tty/n_tty.c:2113 1 lock held by syz-executor.1/18021: 1 lock held by syz-executor.1/18023: 1 lock held by syz-executor.0/18058: #0: ffff888019960978 (mapping.invalidate_lock#2){++++}-{3:3}, at: filemap_invalidate_lock include/linux/fs.h:831 [inline] #0: ffff888019960978 (mapping.invalidate_lock#2){++++}-{3:3}, at: blkdev_fallocate+0x22c/0x480 block/fops.c:585 ============================================= NMI backtrace for cpu 0 CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.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+0xcd/0x134 lib/dump_stack.c:106 nmi_cpu_backtrace.cold+0x47/0x144 lib/nmi_backtrace.c:105 nmi_trigger_cpumask_backtrace+0x1ae/0x220 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+0xc1d/0xf50 kernel/hung_task.c:295 kthread+0x3e5/0x4d0 kernel/kthread.c:319 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:295 Sending NMI from CPU 0 to CPUs 1: NMI backtrace for cpu 1 CPU: 1 PID: 18023 Comm: syz-executor.1 Not tainted 5.15.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__sanitizer_cov_trace_pc+0x49/0x60 kernel/kcov.c:202 Code: ff 00 74 0e 85 c9 74 35 8b 82 64 15 00 00 85 c0 74 2b 8b 82 40 15 00 00 83 f8 02 75 20 48 8b 8a 48 15 00 00 8b 92 44 15 00 00 <48> 8b 01 48 83 c0 01 48 39 c2 76 07 48 89 34 c1 48 89 01 c3 0f 1f RSP: 0018:ffffc90005aff540 EFLAGS: 00000046 RAX: 0000000000000002 RBX: dffffc0000000000 RCX: ffffc9000ad11000 RDX: 0000000000040000 RSI: ffffffff81a1469a RDI: 0000000000000003 RBP: ffffea0002748080 R08: ffffffffffffffff R09: 0000000000000000 R10: ffffffff81a1468b R11: 0000000000000000 R12: 0000000000000002 R13: 00fff00000000011 R14: 0000000000000000 R15: ffff888010c7d000 FS: 00007fc9f9029700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f076a244020 CR3: 000000007e542000 CR4: 0000000000350ee0 Call Trace: _compound_head include/linux/page-flags.h:187 [inline] PageActive include/linux/page-flags.h:343 [inline] page_lru include/linux/mm_inline.h:76 [inline] add_page_to_lru_list include/linux/mm_inline.h:85 [inline] __pagevec_lru_add_fn mm/swap.c:1034 [inline] __pagevec_lru_add+0x9ea/0x1be0 mm/swap.c:1052 lru_cache_add+0x5f9/0xa70 mm/swap.c:453 add_to_page_cache_lru+0x2a5/0x5c0 mm/filemap.c:1000 page_cache_ra_unbounded+0x3c6/0x950 mm/readahead.c:222 do_page_cache_ra+0xf9/0x140 mm/readahead.c:269 do_sync_mmap_readahead mm/filemap.c:2981 [inline] filemap_fault+0x15fe/0x27a0 mm/filemap.c:3074 __do_fault+0x10d/0x4e0 mm/memory.c:3858 do_read_fault mm/memory.c:4173 [inline] do_fault mm/memory.c:4301 [inline] handle_pte_fault mm/memory.c:4559 [inline] __handle_mm_fault+0x28ff/0x5320 mm/memory.c:4694 handle_mm_fault+0x1c8/0x790 mm/memory.c:4792 faultin_page mm/gup.c:937 [inline] __get_user_pages+0x503/0xf80 mm/gup.c:1158 populate_vma_page_range+0x24d/0x330 mm/gup.c:1490 __mm_populate+0x1ea/0x3e0 mm/gup.c:1599 mm_populate include/linux/mm.h:2624 [inline] vm_mmap_pgoff+0x20e/0x290 mm/util.c:524 ksys_mmap_pgoff+0x49f/0x620 mm/mmap.c:1624 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+0x44/0xae RIP: 0033:0x7fc9fbab3a39 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fc9f9029188 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fc9fbbc6f60 RCX: 00007fc9fbab3a39 RDX: 000000000000000a RSI: 0000000000b36000 RDI: 0000000020000000 RBP: 00007fc9fbb0de8f R08: 0000000000000004 R09: 00000000a6c84000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff32f35ddf R14: 00007fc9f9029300 R15: 0000000000022000 ---------------- Code disassembly (best guess): 0: ff 00 incl (%rax) 2: 74 0e je 0x12 4: 85 c9 test %ecx,%ecx 6: 74 35 je 0x3d 8: 8b 82 64 15 00 00 mov 0x1564(%rdx),%eax e: 85 c0 test %eax,%eax 10: 74 2b je 0x3d 12: 8b 82 40 15 00 00 mov 0x1540(%rdx),%eax 18: 83 f8 02 cmp $0x2,%eax 1b: 75 20 jne 0x3d 1d: 48 8b 8a 48 15 00 00 mov 0x1548(%rdx),%rcx 24: 8b 92 44 15 00 00 mov 0x1544(%rdx),%edx * 2a: 48 8b 01 mov (%rcx),%rax <-- trapping instruction 2d: 48 83 c0 01 add $0x1,%rax 31: 48 39 c2 cmp %rax,%rdx 34: 76 07 jbe 0x3d 36: 48 89 34 c1 mov %rsi,(%rcx,%rax,8) 3a: 48 89 01 mov %rax,(%rcx) 3d: c3 retq 3e: 0f .byte 0xf 3f: 1f (bad)