list_del corruption. prev->next should be ffff88816dcfe430, but was ffff88810ec8c498 ------------[ cut here ]------------ kernel BUG at lib/list_debug.c:61! invalid opcode: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 30883 Comm: kworker/u4:1 Not tainted 5.10.161-syzkaller-00019-g416c4356f372 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023 Workqueue: writeback wb_workfn (flush-7:5) RIP: 0010:__list_del_entry_valid+0x11a/0x130 lib/list_debug.c:59 Code: 69 fd 41 02 0f 0b 48 c7 c7 40 0b 44 85 4c 89 f6 31 c0 e8 56 fd 41 02 0f 0b 48 c7 c7 a0 0b 44 85 4c 89 f6 31 c0 e8 43 fd 41 02 <0f> 0b 48 c7 c7 00 0c 44 85 4c 89 f6 31 c0 e8 30 fd 41 02 0f 0b 90 RSP: 0018:ffffc90006257008 EFLAGS: 00010246 RAX: 0000000000000054 RBX: ffff88810ec8c498 RCX: b9f2497077624b00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90006257028 R08: ffffffff81540db8 R09: ffffed103ee2a5e8 R10: ffffed103ee2a5e8 R11: 1ffff1103ee2a5e7 R12: dffffc0000000000 R13: ffff88816dcfe430 R14: ffff88816dcfe430 R15: ffff88810ec8c498 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9f9b8d6000 CR3: 0000000111d8d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __list_del_entry include/linux/list.h:132 [inline] list_del_init include/linux/list.h:204 [inline] __remove_dirty_inode fs/f2fs/checkpoint.c:1015 [inline] f2fs_remove_dirty_inode+0x217/0x3f0 fs/f2fs/checkpoint.c:1051 __f2fs_write_data_pages+0x245b/0x2c80 fs/f2fs/data.c:3219 f2fs_write_data_pages+0x74/0x80 fs/f2fs/data.c:3233 do_writepages+0x13a/0x280 mm/page-writeback.c:2358 __writeback_single_inode+0xb8/0x6e0 fs/fs-writeback.c:1467 writeback_sb_inodes+0x999/0x1700 fs/fs-writeback.c:1730 wb_writeback+0x42f/0xc20 fs/fs-writeback.c:1905 wb_do_writeback+0x222/0xbd0 fs/fs-writeback.c:2050 wb_workfn+0xf8/0x3f0 fs/fs-writeback.c:2091 process_one_work+0x726/0xc10 kernel/workqueue.c:2296 worker_thread+0xb27/0x1550 kernel/workqueue.c:2442 kthread+0x349/0x3d0 kernel/kthread.c:313 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:299 Modules linked in: ---[ end trace 06cbf80e9404c181 ]--- RIP: 0010:__list_del_entry_valid+0x11a/0x130 lib/list_debug.c:59 Code: 69 fd 41 02 0f 0b 48 c7 c7 40 0b 44 85 4c 89 f6 31 c0 e8 56 fd 41 02 0f 0b 48 c7 c7 a0 0b 44 85 4c 89 f6 31 c0 e8 43 fd 41 02 <0f> 0b 48 c7 c7 00 0c 44 85 4c 89 f6 31 c0 e8 30 fd 41 02 0f 0b 90 RSP: 0018:ffffc90006257008 EFLAGS: 00010246 RAX: 0000000000000054 RBX: ffff88810ec8c498 RCX: b9f2497077624b00 RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000000 RBP: ffffc90006257028 R08: ffffffff81540db8 R09: ffffed103ee2a5e8 R10: ffffed103ee2a5e8 R11: 1ffff1103ee2a5e7 R12: dffffc0000000000 R13: ffff88816dcfe430 R14: ffff88816dcfe430 R15: ffff88810ec8c498 FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f9f9b8d6000 CR3: 0000000111d8d000 CR4: 00000000003506a0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400