syz.0.0: attempt to access beyond end of device loop0: rw=1, sector=77824, nr_sectors = 2592 limit=40427 BUG: sleeping function called from invalid context at fs/inode.c:1928 in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 5328, name: syz.0.0 preempt_count: 1, expected: 0 RCU nest depth: 0, expected: 0 2 locks held by syz.0.0/5328: #0: ffff88804186e420 (sb_writers#12){.+.+}-{0:0}, at: mnt_want_write+0x41/0x90 fs/namespace.c:508 #1: ffff888043c6ad70 (&sb->s_type->i_lock_key#35){+.+.}-{3:3}, at: spin_lock include/linux/spinlock.h:351 [inline] #1: ffff888043c6ad70 (&sb->s_type->i_lock_key#35){+.+.}-{3:3}, at: f2fs_drop_inode+0x67e/0x950 fs/f2fs/super.c:1822 Preemption disabled at: [<0000000000000000>] 0x0 CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Call Trace: dump_stack_lvl+0x189/0x250 lib/dump_stack.c:120 __might_resched+0x495/0x610 kernel/sched/core.c:8925 iput+0x2b/0xc50 fs/inode.c:1928 f2fs_drop_inode+0x686/0x950 fs/f2fs/super.c:1823 iput_final fs/inode.c:1884 [inline] iput+0x6d9/0xc50 fs/inode.c:1966 do_unlinkat+0x39f/0x560 fs/namei.c:4744 coredump_file+0x1a5/0xaf0 fs/coredump.c:902 vfs_coredump+0x1693/0x2a60 fs/coredump.c:1143 get_signal+0x1108/0x1340 kernel/signal.c:3019 arch_do_signal_or_restart+0xa0/0x790 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:40 [inline] exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] irqentry_exit_to_user_mode+0x7e/0x110 kernel/entry/common.c:73 exc_page_fault+0xab/0x100 arch/x86/mm/fault.c:1535 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f2ad764f987 Code: 88 15 72 5d ec 00 88 05 6f 5d ec 00 c3 50 48 8d 35 19 26 1c 00 48 8d 3d 1f 26 1c 00 31 c0 e8 20 f7 ff ff 53 89 fb 48 83 ec 10 <64> 8b 04 25 94 ff ff ff 85 c0 74 2a 89 fe 31 c0 bf 3c 00 00 00 e8 RSP: 002b:00007f2ad862e1a0 EFLAGS: 00010206 RAX: 0000000000000000 RBX: 000000000000000b RCX: 00007f2ad778eec9 RDX: 00007f2ad862e1c0 RSI: 00007f2ad862e2f0 RDI: 000000000000000b RBP: 00007f2ad7811f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f2ad79e6038 R14: 00007f2ad79e5fa0 R15: 00007ffd0ca75758 ------------[ cut here ]------------ WARNING: CPU: 0 PID: 5328 at fs/inode.c:1933 iput+0x38c/0xc50 fs/inode.c:1933 Modules linked in: CPU: 0 UID: 0 PID: 5328 Comm: syz.0.0 Tainted: G W syzkaller #0 PREEMPT(full) Tainted: [W]=WARN Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 RIP: 0010:iput+0x38c/0xc50 fs/inode.c:1933 Code: 80 3d 11 1c 49 0d 01 0f 85 b2 00 00 00 e8 4c 82 80 ff 4c 89 f7 be 10 00 00 00 e8 cf 85 06 00 e9 2c fd ff ff e8 35 82 80 ff 90 <0f> 0b 90 e9 70 fd ff ff e8 27 82 80 ff 90 0f 0b 90 e9 d7 fe ff ff RSP: 0018:ffffc9000fd27128 EFLAGS: 00010293 RAX: ffffffff823f216b RBX: 0000000000000001 RCX: ffff888000a08000 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001 RBP: ffff888043c6ada8 R08: ffffffff92981047 R09: 1ffffffff2530208 R10: dffffc0000000000 R11: fffffbfff2530209 R12: ffff888043c6aed8 R13: dffffc0000000000 R14: ffff888043c6acd8 R15: 1ffffffff1f3cbf2 FS: 0000000000000000(0000) GS:ffff88808d306000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f2ad862c990 CR3: 0000000042dc3000 CR4: 0000000000352ef0 Call Trace: f2fs_drop_inode+0x686/0x950 fs/f2fs/super.c:1823 iput_final fs/inode.c:1884 [inline] iput+0x6d9/0xc50 fs/inode.c:1966 do_unlinkat+0x39f/0x560 fs/namei.c:4744 coredump_file+0x1a5/0xaf0 fs/coredump.c:902 vfs_coredump+0x1693/0x2a60 fs/coredump.c:1143 get_signal+0x1108/0x1340 kernel/signal.c:3019 arch_do_signal_or_restart+0xa0/0x790 arch/x86/kernel/signal.c:337 exit_to_user_mode_loop kernel/entry/common.c:40 [inline] exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] irqentry_exit_to_user_mode+0x7e/0x110 kernel/entry/common.c:73 exc_page_fault+0xab/0x100 arch/x86/mm/fault.c:1535 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:623 RIP: 0033:0x7f2ad764f987 Code: 88 15 72 5d ec 00 88 05 6f 5d ec 00 c3 50 48 8d 35 19 26 1c 00 48 8d 3d 1f 26 1c 00 31 c0 e8 20 f7 ff ff 53 89 fb 48 83 ec 10 <64> 8b 04 25 94 ff ff ff 85 c0 74 2a 89 fe 31 c0 bf 3c 00 00 00 e8 RSP: 002b:00007f2ad862e1a0 EFLAGS: 00010206 RAX: 0000000000000000 RBX: 000000000000000b RCX: 00007f2ad778eec9 RDX: 00007f2ad862e1c0 RSI: 00007f2ad862e2f0 RDI: 000000000000000b RBP: 00007f2ad7811f91 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000206 R12: 0000000000000000 R13: 00007f2ad79e6038 R14: 00007f2ad79e5fa0 R15: 00007ffd0ca75758