task_work_run+0x1d4/0x260 kernel/task_work.c:227 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop+0xec/0x110 kernel/entry/common.c:114 exit_to_user_mode_prepare include/linux/entry-common.h:330 [inline] syscall_exit_to_user_mode_work include/linux/entry-common.h:414 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:449 [inline] do_syscall_64+0x2bd/0x3b0 arch/x86/entry/syscall_64.c:100 entry_SYSCALL_64_after_hwframe+0x77/0x7f ------------[ cut here ]------------ kernel BUG at mm/filemap.c:1498! Oops: invalid opcode: 0000 [#1] SMP KASAN PTI CPU: 1 UID: 0 PID: 65 Comm: kworker/u8:4 Not tainted 6.15.0-next-20250528-syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/07/2025 Workqueue: writeback wb_workfn (flush-7:4) RIP: 0010:folio_unlock+0x13d/0x160 mm/filemap.c:1498 Code: db c8 ff 48 89 df 48 c7 c6 60 35 94 8b e8 9b 76 10 00 90 0f 0b e8 a3 db c8 ff 48 89 df 48 c7 c6 80 2b 94 8b e8 84 76 10 00 90 <0f> 0b e8 8c db c8 ff 48 89 df 48 c7 c6 60 35 94 8b e8 6d 76 10 00 RSP: 0018:ffffc9000215ee28 EFLAGS: 00010246 RAX: ecdea42b14befd00 RBX: ffffea0001dd53c0 RCX: 0000000000000000 RDX: 0000000000000006 RSI: ffffffff8d98240f RDI: 00000000ffffffff RBP: ffffc9000215f110 R08: ffffffff8fa132f7 R09: 1ffffffff1f4265e R10: dffffc0000000000 R11: fffffbfff1f4265f R12: 1ffffd40003baa79 R13: 00fff0800000401c R14: ffffea0001dd53c8 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff888125d55000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fc17a87e000 CR3: 0000000025d48000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: f2fs_sync_node_pages+0x17fa/0x19f0 fs/f2fs/node.c:2081 f2fs_write_node_pages+0x303/0x6e0 fs/f2fs/node.c:2183 do_writepages+0x32b/0x550 mm/page-writeback.c:2636 __writeback_single_inode+0x145/0xff0 fs/fs-writeback.c:1680 writeback_sb_inodes+0x6b5/0x1000 fs/fs-writeback.c:1976 wb_writeback+0x43b/0xaf0 fs/fs-writeback.c:2156 wb_do_writeback fs/fs-writeback.c:2303 [inline] wb_workfn+0x409/0xef0 fs/fs-writeback.c:2343 process_one_work kernel/workqueue.c:3238 [inline] process_scheduled_works+0xade/0x17b0 kernel/workqueue.c:3321 worker_thread+0x8a0/0xda0 kernel/workqueue.c:3402 kthread+0x711/0x8a0 kernel/kthread.c:464 ret_from_fork+0x3fc/0x770 arch/x86/kernel/process.c:148 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:folio_unlock+0x13d/0x160 mm/filemap.c:1498 Code: db c8 ff 48 89 df 48 c7 c6 60 35 94 8b e8 9b 76 10 00 90 0f 0b e8 a3 db c8 ff 48 89 df 48 c7 c6 80 2b 94 8b e8 84 76 10 00 90 <0f> 0b e8 8c db c8 ff 48 89 df 48 c7 c6 60 35 94 8b e8 6d 76 10 00 RSP: 0018:ffffc9000215ee28 EFLAGS: 00010246 RAX: ecdea42b14befd00 RBX: ffffea0001dd53c0 RCX: 0000000000000000 RDX: 0000000000000006 RSI: ffffffff8d98240f RDI: 00000000ffffffff RBP: ffffc9000215f110 R08: ffffffff8fa132f7 R09: 1ffffffff1f4265e R10: dffffc0000000000 R11: fffffbfff1f4265f R12: 1ffffd40003baa79 R13: 00fff0800000401c R14: ffffea0001dd53c8 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff888125d55000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f1c3a37fab8 CR3: 0000000032cd0000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400