new_sync_write fs/read_write.c:593 [inline] vfs_write+0x6ac/0x1070 fs/read_write.c:686 ksys_write+0x12a/0x250 fs/read_write.c:738 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xc9/0xf80 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:858! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 14358 Comm: syz.3.2310 Tainted: G L syzkaller #0 PREEMPT(full) Tainted: [L]=SOFTLOCKUP Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:__filemap_add_folio+0xf7f/0x1220 mm/filemap.c:858 Code: c9 c6 ff 48 c7 c6 a0 18 9d 8b 4c 89 ef e8 19 0e 12 00 90 0f 0b e8 51 c9 c6 ff 48 c7 c6 00 19 9d 8b 4c 89 ef e8 02 0e 12 00 90 <0f> 0b e8 3a c9 c6 ff 90 0f 0b 90 e9 9b fe ff ff e8 2c c9 c6 ff 90 RSP: 0018:ffffc90005e2f808 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000112cc0 RCX: 0000000000000000 RDX: ffff88802523c980 RSI: ffffffff825240e8 RDI: ffff88802523ce04 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000002 R13: ffffea0000ee5bc0 R14: 0000000000000000 R15: 1ffff92000bc5f2b FS: 0000555559b53500(0000) GS:ffff8880d66d9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2fe1f2 CR3: 000000004506a000 CR4: 0000000000352ef0 Call Trace: filemap_add_folio+0x1d8/0x690 mm/filemap.c:966 ra_alloc_folio mm/readahead.c:453 [inline] page_cache_ra_order+0x614/0xfe0 mm/readahead.c:512 do_sync_mmap_readahead mm/filemap.c:3400 [inline] filemap_fault+0x1b56/0x37c0 mm/filemap.c:3549 __do_fault+0x10d/0x550 mm/memory.c:5323 do_shared_fault mm/memory.c:5822 [inline] do_fault+0x2db/0x1990 mm/memory.c:5896 do_pte_missing mm/memory.c:4404 [inline] handle_pte_fault mm/memory.c:6276 [inline] __handle_mm_fault+0x1807/0x2b50 mm/memory.c:6414 handle_mm_fault+0x36d/0xa20 mm/memory.c:6583 do_user_addr_fault+0x5a3/0x12f0 arch/x86/mm/fault.c:1334 handle_page_fault arch/x86/mm/fault.c:1474 [inline] exc_page_fault+0x6f/0xd0 arch/x86/mm/fault.c:1527 asm_exc_page_fault+0x26/0x30 arch/x86/include/asm/idtentry.h:618 RIP: 0033:0x7f2ac5c645e7 Code: 48 85 c0 74 1b 48 83 f8 01 0f 85 bf 03 00 00 0f b7 44 24 10 66 c1 c0 08 0f b7 c0 48 89 44 24 10 48 8b 44 24 18 0f b7 74 24 10 <66> 89 30 e9 18 ff ff ff 48 83 7c 24 08 17 0f 85 20 03 00 00 64 f0 RSP: 002b:00007ffd4e7319d0 EFLAGS: 00010246 RAX: 0000200000000040 RBX: 0000000000000002 RCX: 0000000000000000 RDX: 8a4ef9bb13050416 RSI: 0000000000000018 RDI: 0000555559b533d8 RBP: 00007ffd4e731af0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000018 R11: 0000000000000000 R12: 00007ffd4e731b30 R13: 00007f2ac601618c R14: 000000000003396e R15: 00007f2ac6016180 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0xf7f/0x1220 mm/filemap.c:858 Code: c9 c6 ff 48 c7 c6 a0 18 9d 8b 4c 89 ef e8 19 0e 12 00 90 0f 0b e8 51 c9 c6 ff 48 c7 c6 00 19 9d 8b 4c 89 ef e8 02 0e 12 00 90 <0f> 0b e8 3a c9 c6 ff 90 0f 0b 90 e9 9b fe ff ff e8 2c c9 c6 ff 90 RSP: 0018:ffffc90005e2f808 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000112cc0 RCX: 0000000000000000 RDX: ffff88802523c980 RSI: ffffffff825240e8 RDI: ffff88802523ce04 RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: 0000000000000002 R13: ffffea0000ee5bc0 R14: 0000000000000000 R15: 1ffff92000bc5f2b FS: 0000555559b53500(0000) GS:ffff8880d66d9000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c2fe1f2 CR3: 000000004506a000 CR4: 0000000000352ef0