syzbot


WARNING in f2fs_submit_page_bio

Status: auto-closed as invalid on 2021/10/06 11:11
Reported-by: syzbot+b5c5ddabb0191892c14f@syzkaller.appspotmail.com
First crash: 1264d, last: 1264d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in f2fs_submit_page_bio (2) 1 1015d 1015d 0/1 auto-closed as invalid on 2022/06/11 20:42
linux-4.14 WARNING in f2fs_submit_page_bio 1 1423d 1423d 0/1 auto-closed as invalid on 2021/04/29 18:18
linux-4.19 WARNING in f2fs_submit_page_bio (2) 1 1108d 1108d 0/1 auto-closed as invalid on 2022/03/11 11:24
linux-4.19 WARNING in f2fs_submit_page_bio (3) 2 716d 749d 0/1 auto-obsoleted due to no activity on 2023/04/06 18:55

Sample crash report:
 should_fail_alloc_page mm/page_alloc.c:3088 [inline]
 prepare_alloc_pages mm/page_alloc.c:4346 [inline]
 __alloc_pages_nodemask+0x239/0x2890 mm/page_alloc.c:4393
------------[ cut here ]------------
WARNING: CPU: 1 PID: 26937 at fs/f2fs/checkpoint.c:166 f2fs_is_valid_blkaddr+0x35d/0xa20 fs/f2fs/checkpoint.c:166
Kernel panic - not syncing: panic_on_warn set ...

 alloc_pages_vma+0xf2/0x780 mm/mempolicy.c:2161
 shmem_alloc_page+0x11c/0x1f0 mm/shmem.c:1494
 shmem_alloc_and_acct_page+0x15a/0x850 mm/shmem.c:1519
 shmem_getpage_gfp+0x4e9/0x37f0 mm/shmem.c:1797
 shmem_getpage mm/shmem.c:132 [inline]
 shmem_file_read_iter+0x2b0/0xcb0 mm/shmem.c:2523
 call_read_iter include/linux/fs.h:1815 [inline]
 generic_file_splice_read+0x44a/0x6d0 fs/splice.c:308
 do_splice_to+0x10e/0x160 fs/splice.c:881
 splice_direct_to_actor+0x2b9/0x8d0 fs/splice.c:959
 do_splice_direct+0x1a7/0x270 fs/splice.c:1068
 do_sendfile+0x550/0xc30 fs/read_write.c:1447
 __do_sys_sendfile64 fs/read_write.c:1508 [inline]
 __se_sys_sendfile64+0x147/0x160 fs/read_write.c:1494
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x4665d9
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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ff7dd77d188 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 000000000056c038 RCX: 00000000004665d9
RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000005
RBP: 00007ff7dd77d1d0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000eefffdef R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdbaabc59f R14: 00007ff7dd77d300 R15: 0000000000022000
CPU: 1 PID: 26937 Comm: syz-executor.4 Not tainted 4.19.193-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
f2fs_msg: 49 callbacks suppressed
F2FS-fs (loop2): invalid crc value
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:f2fs_is_valid_blkaddr+0x35d/0xa20 fs/f2fs/checkpoint.c:166
Code: 7a 06 00 00 48 8b 7d 00 44 89 e1 48 c7 c2 80 15 a8 88 48 c7 c6 20 14 a8 88 e8 bf fa fd ff 48 c7 c7 c0 15 a8 88 e8 fc 4e dd 04 <0f> 0b 45 31 ed e9 3f fe ff ff e8 14 1a 4d fe 48 8d bd 40 01 00 00
RSP: 0018:ffff88804c7af740 EFLAGS: 00010282
RAX: 0000000000000024 RBX: 0000000000000005 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff814df6b1 RDI: ffffed10098f5eda
RBP: ffff8880a636cd40 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000001 R14: 0000000000001400 R15: 0000000000000400
 f2fs_submit_page_bio+0x138/0x1580 fs/f2fs/data.c:450
 read_node_page+0x496/0x630 fs/f2fs/node.c:1303
 __get_node_page.part.0+0x9b/0x14b0 fs/f2fs/node.c:1348
 __get_node_page fs/f2fs/node.c:38 [inline]
 f2fs_get_node_page+0x109/0x1a0 fs/f2fs/node.c:1394
 do_read_inode fs/f2fs/inode.c:306 [inline]
 f2fs_iget+0x22a/0x4ce0 fs/f2fs/inode.c:439
 f2fs_fill_super+0x34b4/0x7050 fs/f2fs/super.c:3056
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x310 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x113c/0x2f10 fs/namespace.c:2799
F2FS-fs (loop2): Found nat_bits in checkpoint
 ksys_mount+0xcf/0x130 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3026
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x467afa
Code: 48 c7 c2 bc ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fe3f33bafa8 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
F2FS-fs (loop2): f2fs_check_nid_range: out-of-range nid=1, run fsck to fix.
RAX: ffffffffffffffda RBX: 0000000020000200 RCX: 0000000000467afa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fe3f33bb000
RBP: 00007fe3f33bb040 R08: 00007fe3f33bb040 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 00007fe3f33bb000 R15: 0000000020015000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/06/08 11:10 linux-4.19.y 1722257b8ece 5c2fe346 .config console log report info ci2-linux-4-19 WARNING in f2fs_submit_page_bio
* Struck through repros no longer work on HEAD.