task_work_run+0x150/0x240 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x1d8/0x700 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:336 [inline] do_syscall_64+0x661/0x790 arch/x86/entry/syscall_64.c:89 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: 0 UID: 0 PID: 7645 Comm: syz.1.631 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+0x108b/0x1370 mm/filemap.c:858 Code: 61 bf ff 48 c7 c6 80 d0 fe 8b 4c 89 ef e8 2d fc 12 00 90 0f 0b e8 b5 61 bf ff 48 c7 c6 e0 d0 fe 8b 4c 89 ef e8 16 fc 12 00 90 <0f> 0b e8 9e 61 bf ff 48 c7 c6 60 d1 fe 8b 4c 89 ef e8 ff fb 12 00 RSP: 0018:ffffc90006377398 EFLAGS: 00010287 RAX: 000000000001464d RBX: 0000000000000000 RCX: ffffc90023921000 RDX: 0000000000080000 RSI: ffffffff825fac08 RDI: ffff88803a2304c4 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff1dbef69 R12: 0000000000000002 R13: ffffea00016c6a40 R14: 0000000000000000 R15: 1ffff92000c6ee9f FS: 00007fe000d8a6c0(0000) GS:ffff8880d5b5d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fa4db11a558 CR3: 000000005b383000 CR4: 0000000000352ef0 Call Trace: filemap_add_folio+0x1d8/0x6a0 mm/filemap.c:972 ra_alloc_folio mm/readahead.c:470 [inline] page_cache_ra_order+0x602/0xed0 mm/readahead.c:535 do_sync_mmap_readahead mm/filemap.c:3443 [inline] filemap_fault+0x1943/0x3130 mm/filemap.c:3597 __do_fault+0x10b/0x440 mm/memory.c:5565 do_read_fault mm/memory.c:6000 [inline] do_fault+0xb3f/0x1830 mm/memory.c:6134 do_pte_missing mm/memory.c:4700 [inline] handle_pte_fault mm/memory.c:6558 [inline] __handle_mm_fault+0x150b/0x2f60 mm/memory.c:6707 handle_mm_fault+0x363/0xa20 mm/memory.c:6876 faultin_page mm/gup.c:1126 [inline] __get_user_pages+0x8ae/0x2c30 mm/gup.c:1428 populate_vma_page_range+0x267/0x3f0 mm/gup.c:1860 __mm_populate+0x107/0x3a0 mm/gup.c:1963 mm_populate include/linux/mm.h:4288 [inline] vm_mmap_pgoff+0x441/0x470 mm/util.c:586 ksys_mmap_pgoff+0x3cb/0x610 mm/mmap.c:619 __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:61 [inline] do_syscall_64+0x123/0x790 arch/x86/entry/syscall_64.c:84 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fdffff9e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fe000d8a028 EFLAGS: 00000246 ORIG_RAX: 0000000000000009 RAX: ffffffffffffffda RBX: 00007fe000226090 RCX: 00007fdffff9e159 RDX: 0000000000000007 RSI: 0000000000b36000 RDI: 0000200000000000 RBP: 00007fe00003503b R08: 0000000000000004 R09: 000000002cb25000 R10: 0000000000028011 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fe000226128 R14: 00007fe000226090 R15: 00007ffdb4fae0d8 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:__filemap_add_folio+0x108b/0x1370 mm/filemap.c:858 Code: 61 bf ff 48 c7 c6 80 d0 fe 8b 4c 89 ef e8 2d fc 12 00 90 0f 0b e8 b5 61 bf ff 48 c7 c6 e0 d0 fe 8b 4c 89 ef e8 16 fc 12 00 90 <0f> 0b e8 9e 61 bf ff 48 c7 c6 60 d1 fe 8b 4c 89 ef e8 ff fb 12 00 RSP: 0018:ffffc90006377398 EFLAGS: 00010287 RAX: 000000000001464d RBX: 0000000000000000 RCX: ffffc90023921000 RDX: 0000000000080000 RSI: ffffffff825fac08 RDI: ffff88803a2304c4 RBP: 0000000000112cc0 R08: 0000000000000001 R09: 0000000000000000 R10: 0000000000000001 R11: 1ffffffff1dbef69 R12: 0000000000000002 R13: ffffea00016c6a40 R14: 0000000000000000 R15: 1ffff92000c6ee9f FS: 00007fe000d8a6c0(0000) GS:ffff8880d5b5d000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000110c423dab CR3: 000000005b383000 CR4: 0000000000352ef0