syzbot


kernel BUG in f2fs_write_inline_data

Status: auto-obsoleted due to no activity on 2024/09/09 19:28
Reported-by: syzbot+555f80596e7b5d9d8b1d@syzkaller.appspotmail.com
First crash: 193d, last: 193d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in f2fs_write_inline_data f2fs C inconclusive 41 172d 225d 27/28 fixed on 2024/08/14 03:44

Sample crash report:
F2FS-fs (loop0): Found nat_bits in checkpoint
F2FS-fs (loop0): Try to recover 1th superblock, ret: 0
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e5
------------[ cut here ]------------
kernel BUG at fs/f2fs/inline.c:259!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4713 Comm: syz-executor.0 Not tainted 6.1.92-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:f2fs_write_inline_data+0x771/0x780 fs/f2fs/inline.c:259
Code: fd ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ea fc ff ff 48 89 df e8 9e e8 19 fe e9 dd fc ff ff e8 e4 e3 c2 06 e8 1f 69 c2 fd <0f> 0b e8 18 69 c2 fd 0f 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55
RSP: 0018:ffffc90003466e60 EFLAGS: 00010283
RAX: ffffffff83c82431 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc9000a191000 RSI: 0000000000009c3a RDI: 0000000000009c3b
RBP: ffffc90003466f90 R08: ffffffff83c81efd R09: ffffed100ad542cf
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90003466ee8
R13: 1ffff1100ad542ce R14: ffffc90003466ee0 R15: ffffc90003466ef0
FS:  00007f07395ad6c0(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002000 CR3: 00000000520a2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 f2fs_write_single_data_page+0xcaf/0x1f90 fs/f2fs/data.c:2841
 f2fs_write_cache_pages fs/f2fs/data.c:3143 [inline]
 __f2fs_write_data_pages fs/f2fs/data.c:3299 [inline]
 f2fs_write_data_pages+0x1ceb/0x3a70 fs/f2fs/data.c:3326
 do_writepages+0x3a2/0x670 mm/page-writeback.c:2469
 filemap_fdatawrite_wbc+0x121/0x180 mm/filemap.c:388
 __filemap_fdatawrite_range mm/filemap.c:421 [inline]
 file_write_and_wait_range+0x1ca/0x2b0 mm/filemap.c:774
 f2fs_do_sync_file+0x69d/0x1c00 fs/f2fs/file.c:275
 generic_write_sync include/linux/fs.h:2957 [inline]
 f2fs_file_write_iter+0x720/0x2980 fs/f2fs/file.c:4772
 call_write_iter include/linux/fs.h:2265 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x7ae/0xba0 fs/read_write.c:584
 ksys_write+0x19c/0x2c0 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x3b/0xb0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f073887cee9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 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 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f07395ad0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f07389b3fa0 RCX: 00007f073887cee9
RDX: 0000000000002000 RSI: 0000000020000040 RDI: 0000000000000008
RBP: 00007f07388c947f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f07389b3fa0 R15: 00007ffce5e8a0e8
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f2fs_write_inline_data+0x771/0x780 fs/f2fs/inline.c:259
Code: fd ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c ea fc ff ff 48 89 df e8 9e e8 19 fe e9 dd fc ff ff e8 e4 e3 c2 06 e8 1f 69 c2 fd <0f> 0b e8 18 69 c2 fd 0f 0b 66 0f 1f 44 00 00 55 41 57 41 56 41 55
RSP: 0018:ffffc90003466e60 EFLAGS: 00010283
RAX: ffffffff83c82431 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc9000a191000 RSI: 0000000000009c3a RDI: 0000000000009c3b
RBP: ffffc90003466f90 R08: ffffffff83c81efd R09: ffffed100ad542cf
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffc90003466ee8
R13: 1ffff1100ad542ce R14: ffffc90003466ee0 R15: ffffc90003466ef0
FS:  00007f07395ad6c0(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/06/01 19:28 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in f2fs_write_inline_data
2024/06/01 13:08 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in f2fs_write_inline_data
2024/06/01 13:08 linux-6.1.y 88690811da69 3113787f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in f2fs_write_inline_data
* Struck through repros no longer work on HEAD.