task_work_run+0x150/0x240 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xeb/0x110 kernel/entry/common.c:43 exit_to_user_mode_prepare include/linux/irq-entry-common.h:225 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:175 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:210 [inline] do_syscall_64+0x3f6/0x4c0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:867! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 12610 Comm: syz.4.2004 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 RIP: 0010:__filemap_add_folio+0xf5b/0x11e0 mm/filemap.c:867 Code: 77 c8 ff 48 c7 c6 20 24 b9 8b 4c 89 ef e8 9d 28 11 00 90 0f 0b e8 e5 77 c8 ff 48 c7 c6 80 24 b9 8b 4c 89 ef e8 86 28 11 00 90 <0f> 0b e8 ce 77 c8 ff 90 0f 0b 90 e9 f2 fb ff ff e8 c0 77 c8 ff 48 RSP: 0018:ffffc90003617460 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888025728000 RSI: ffffffff81f316fa RDI: ffff888025728444 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90ab6d97 R11: 0000000000000003 R12: 0000000000000002 R13: ffffea0000bdb580 R14: 0000000000000000 R15: 000000000002c928 FS: 00007f5d5a3526c0(0000) GS:ffff8880d67b5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555591914808 CR3: 0000000026548000 CR4: 0000000000352ef0 Call Trace: filemap_add_folio+0x10e/0x220 mm/filemap.c:969 ra_alloc_folio mm/readahead.c:448 [inline] page_cache_ra_order+0x5a7/0xd70 mm/readahead.c:506 do_sync_mmap_readahead mm/filemap.c:3304 [inline] filemap_fault+0x152e/0x2930 mm/filemap.c:3445 __do_fault+0x10d/0x490 mm/memory.c:5152 do_read_fault mm/memory.c:5573 [inline] do_fault mm/memory.c:5707 [inline] do_pte_missing+0xf50/0x3ba0 mm/memory.c:4234 handle_pte_fault mm/memory.c:6052 [inline] __handle_mm_fault+0x152a/0x2a50 mm/memory.c:6195 handle_mm_fault+0x589/0xd10 mm/memory.c:6364 faultin_page mm/gup.c:1144 [inline] __get_user_pages+0x551/0x34a0 mm/gup.c:1446 populate_vma_page_range+0x267/0x3f0 mm/gup.c:1880 __mm_populate+0x1d8/0x380 mm/gup.c:1983 mm_populate include/linux/mm.h:3367 [inline] vm_mmap_pgoff+0x37f/0x470 mm/util.c:585 ksys_mmap_pgoff+0x32c/0x5c0 mm/mmap.c:604 __do_sys_mmap arch/x86/kernel/sys_x86_64.c:89 [inline] __se_sys_mmap arch/x86/kernel/sys_x86_64.c:82 [inline] __x64_sys_mmap+0x125/0x190 arch/x86/kernel/sys_x86_64.c:82 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0xcd/0x4c0 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7f5d5958eba9 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f5d5a352038 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007f5d597d6090 RCX: 00007f5d5958eba9 RDX: 0000000001000002 RSI: 0000000000b36000 RDI: 0000200000000000 RBP: 00007f5d59611e19 R08: 0000000000000004 R09: 000000002c93a000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 00007f5d597d6128 R14: 00007f5d597d6090 R15: 00007fff35bb8a98 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0xf5b/0x11e0 mm/filemap.c:867 Code: 77 c8 ff 48 c7 c6 20 24 b9 8b 4c 89 ef e8 9d 28 11 00 90 0f 0b e8 e5 77 c8 ff 48 c7 c6 80 24 b9 8b 4c 89 ef e8 86 28 11 00 90 <0f> 0b e8 ce 77 c8 ff 90 0f 0b 90 e9 f2 fb ff ff e8 c0 77 c8 ff 48 RSP: 0018:ffffc90003617460 EFLAGS: 00010293 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: ffff888025728000 RSI: ffffffff81f316fa RDI: ffff888025728444 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000001 R10: ffffffff90ab6d97 R11: 0000000000000003 R12: 0000000000000002 R13: ffffea0000bdb580 R14: 0000000000000000 R15: 000000000002c928 FS: 00007f5d5a3526c0(0000) GS:ffff8880d67b5000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000555591914808 CR3: 0000000026548000 CR4: 0000000000352ef0