syzbot


kernel BUG in f2fs_new_node_page

Status: upstream: reported C repro on 2022/10/19 18:56
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+c0decd6e12fa1a6433c4@syzkaller.appspotmail.com
First crash: 793d, last: 657d

Sample crash report:
F2FS-fs (loop0): Mounted with checkpoint version = 3e17dab1
F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=1, run fsck to fix.
F2FS-fs (loop0): f2fs_check_nid_range: out-of-range nid=2, run fsck to fix.
------------[ cut here ]------------
kernel BUG at fs/f2fs/node.c:1235!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8097 Comm: syz-executor388 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:f2fs_new_node_page+0x1942/0x1f40 fs/f2fs/node.c:1235
Code: 8f f8 ff ff 4c 89 ef e8 4c 1f 7d fe e9 77 f7 ff ff e8 42 1f 7d fe e9 48 f3 ff ff e8 38 1f 7d fe e9 21 f7 ff ff e8 ce 42 47 fe <0f> 0b e8 c7 42 47 fe 4d 8d 75 ff e9 e8 f0 ff ff e8 b9 42 47 fe 48
RSP: 0018:ffff88808c8ef390 EFLAGS: 00010293
RAX: ffff888093d161c0 RBX: ffff88809b6f9dc0 RCX: ffffffff831b30ec
RDX: 0000000000000000 RSI: ffffffff831b42a2 RDI: 0000000000000005
RBP: ffffffff8b271190 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffea00028be940
R13: 0000000000001002 R14: ffff88808c8ef3f0 R15: 0000000000000000
FS:  0000555556fed300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056234b2c10d0 CR3: 00000000a955b000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 f2fs_new_inode_page+0xc2/0x110 fs/f2fs/node.c:1209
 f2fs_init_inode_metadata+0xcd/0x1430 fs/f2fs/dir.c:366
 f2fs_add_regular_entry+0x925/0x1560 fs/f2fs/dir.c:558
 f2fs_add_dentry+0x147/0x2f0 fs/f2fs/dir.c:604
 f2fs_do_add_link+0x307/0x4f0 fs/f2fs/dir.c:644
 f2fs_add_link fs/f2fs/f2fs.h:2862 [inline]
 f2fs_create+0x336/0x930 fs/f2fs/namei.c:295
 lookup_open+0x893/0x1a20 fs/namei.c:3235
 do_last fs/namei.c:3327 [inline]
 path_openat+0x1094/0x2df0 fs/namei.c:3537
 do_filp_open+0x18c/0x3f0 fs/namei.c:3567
 do_sys_open+0x3b3/0x520 fs/open.c:1085
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f74af780979
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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fffe1c51e98 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f74af780979
RDX: 000000000000275a RSI: 0000000020000280 RDI: 00000000ffffff9c
RBP: 00007f74af7401e0 R08: 0000555556fed2c0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f74af740270
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 16b601b4a6180c6e ]---
RIP: 0010:f2fs_new_node_page+0x1942/0x1f40 fs/f2fs/node.c:1235
Code: 8f f8 ff ff 4c 89 ef e8 4c 1f 7d fe e9 77 f7 ff ff e8 42 1f 7d fe e9 48 f3 ff ff e8 38 1f 7d fe e9 21 f7 ff ff e8 ce 42 47 fe <0f> 0b e8 c7 42 47 fe 4d 8d 75 ff e9 e8 f0 ff ff e8 b9 42 47 fe 48
RSP: 0018:ffff88808c8ef390 EFLAGS: 00010293
RAX: ffff888093d161c0 RBX: ffff88809b6f9dc0 RCX: ffffffff831b30ec
RDX: 0000000000000000 RSI: ffffffff831b42a2 RDI: 0000000000000005
RBP: ffffffff8b271190 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffffea00028be940
R13: 0000000000001002 R14: ffff88808c8ef3f0 R15: 0000000000000000
FS:  0000555556fed300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056234b2c10d0 CR3: 00000000a955b000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (80):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/19 19:27 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/03/05 00:03 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/03/04 17:33 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/03/04 05:58 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/03/04 00:47 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/03/01 17:19 linux-4.19.y 3f8a27f9e27b ef65e6cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/03/01 13:21 linux-4.19.y 3f8a27f9e27b ef65e6cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/03/01 12:09 linux-4.19.y 3f8a27f9e27b ef65e6cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/28 23:58 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/26 16:05 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/23 12:21 linux-4.19.y 3f8a27f9e27b 9e2ebb3c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/23 06:12 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/22 20:49 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/22 20:36 linux-4.19.y 3f8a27f9e27b 9f1e2cb3 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/18 16:38 linux-4.19.y 3f8a27f9e27b d02e9a70 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/18 15:35 linux-4.19.y 3f8a27f9e27b d02e9a70 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/18 09:28 linux-4.19.y 3f8a27f9e27b d02e9a70 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/16 15:12 linux-4.19.y 3f8a27f9e27b 38b317a7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/16 09:15 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/16 07:01 linux-4.19.y 3f8a27f9e27b 6be0f1f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/13 19:03 linux-4.19.y 3f8a27f9e27b 957959cb .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/13 07:53 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/12 11:58 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/09 11:11 linux-4.19.y 3f8a27f9e27b 14a312c8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/09 11:11 linux-4.19.y 3f8a27f9e27b 14a312c8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/09 11:11 linux-4.19.y 3f8a27f9e27b 14a312c8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/09 11:10 linux-4.19.y 3f8a27f9e27b 14a312c8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/09 11:10 linux-4.19.y 3f8a27f9e27b 14a312c8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/09 11:01 linux-4.19.y 3f8a27f9e27b 14a312c8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/02/01 23:14 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/31 03:35 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/30 04:13 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/30 02:52 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 06:01 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 04:15 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 00:28 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 00:27 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 00:16 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 00:16 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 00:15 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 00:05 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/28 00:03 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/27 23:42 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/24 12:12 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/24 12:05 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/24 12:05 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/24 11:50 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2023/01/03 09:40 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/12/29 05:50 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/12/29 05:22 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/12/29 05:21 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/12/29 05:03 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/12/29 04:55 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/12/29 04:31 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/11/21 10:35 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/11/20 23:52 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/11/20 10:02 linux-4.19.y 3f8a27f9e27b 5bb70014 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/11/16 18:08 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/11/16 18:08 linux-4.19.y 3f8a27f9e27b 3a127a31 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/11/13 13:25 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/11/11 13:38 linux-4.19.y 3f8a27f9e27b f42ee5d8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/11/04 23:56 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
2022/10/19 18:55 linux-4.19.y 3f8a27f9e27b b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in f2fs_new_node_page
* Struck through repros no longer work on HEAD.