syzbot


kernel BUG in f2fs_invalidate_blocks

Status: upstream: reported on 2024/09/17 08:41
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+33379ce4ac76acf7d0c7@syzkaller.appspotmail.com
First crash: 5d23h, last: 5d23h
Discussions (1)
Title Replies (including bot) Last reply
[syzbot] [f2fs?] kernel BUG in f2fs_invalidate_blocks 0 (1) 2024/09/17 08:41

Sample crash report:
UDPLite6: UDP-Lite is deprecated and scheduled to be removed in 2025, please contact the netdev mailing list
------------[ cut here ]------------
kernel BUG at fs/f2fs/segment.c:2519!
Oops: invalid opcode: 0000 [#1] PREEMPT SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5111 Comm: syz.0.0 Not tainted 6.11.0-rc7-syzkaller-00097-g196145c606d0 #0
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014
RIP: 0010:f2fs_invalidate_blocks+0x35f/0x370 fs/f2fs/segment.c:2519
Code: 2f fe fd e9 7f fe ff ff e8 6e e7 96 fd 44 89 ee 48 c7 c7 30 29 f1 8e 48 89 da e8 9c b0 ef 00 e9 fb fd ff ff e8 52 e7 96 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 90 90 90 90 90
RSP: 0000:ffffc90002fff840 EFLAGS: 00010287
RAX: ffffffff83fca55e RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc9000b7e9000 RSI: 00000000000063bf RDI: 00000000000063c0
RBP: 0000000000000000 R08: 0000000000000005 R09: ffffffff83fca3ce
R10: 0000000000000003 R11: ffff88800023c880 R12: ffffc90002fffa48
R13: 00000000ffffffff R14: ffff888011e3c000 R15: 0000000000000000
FS:  00007f843cafe6c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffed846bd20 CR3: 000000003d572000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 truncate_node+0x1a4/0x6f0 fs/f2fs/node.c:909
 f2fs_remove_inode_page+0x5c2/0x870 fs/f2fs/node.c:1288
 f2fs_evict_inode+0x879/0x15c0 fs/f2fs/inode.c:851
 evict+0x532/0x950 fs/inode.c:704
 __dentry_kill+0x20d/0x630 fs/dcache.c:615
 dput+0x19f/0x2b0 fs/dcache.c:857
 __fput+0x5f8/0x8a0 fs/file_table.c:430
 task_work_run+0x24f/0x310 kernel/task_work.c:228
 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline]
 exit_to_user_mode_loop kernel/entry/common.c:114 [inline]
 exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline]
 __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline]
 syscall_exit_to_user_mode+0x168/0x370 kernel/entry/common.c:218
 do_syscall_64+0x100/0x230 arch/x86/entry/common.c:89
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f843bd7def9
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:00007f843cafe038 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f843bf36058 RCX: 00007f843bd7def9
RDX: 0000000000000000 RSI: ffffffffffffffff RDI: 0000000000000007
RBP: 00007f843bdf0b76 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 0000000000000000 R14: 00007f843bf36058 R15: 00007ffd271d7608
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_invalidate_blocks+0x35f/0x370 fs/f2fs/segment.c:2519
Code: 2f fe fd e9 7f fe ff ff e8 6e e7 96 fd 44 89 ee 48 c7 c7 30 29 f1 8e 48 89 da e8 9c b0 ef 00 e9 fb fd ff ff e8 52 e7 96 fd 90 <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 90 90 90 90 90
RSP: 0000:ffffc90002fff840 EFLAGS: 00010287
RAX: ffffffff83fca55e RBX: 0000000000000000 RCX: 0000000000040000
RDX: ffffc9000b7e9000 RSI: 00000000000063bf RDI: 00000000000063c0
RBP: 0000000000000000 R08: 0000000000000005 R09: ffffffff83fca3ce
R10: 0000000000000003 R11: ffff88800023c880 R12: ffffc90002fffa48
R13: 00000000ffffffff R14: ffff888011e3c000 R15: 0000000000000000
FS:  00007f843cafe6c0(0000) GS:ffff88801fe00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055e3c26bf118 CR3: 000000003d572000 CR4: 0000000000350ef0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/09/13 08:37 upstream 196145c606d0 73e8a465 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root kernel BUG in f2fs_invalidate_blocks
* Struck through repros no longer work on HEAD.