syzbot


kernel BUG in jffs2_sum_write_sumnode

Status: upstream: reported on 2024/04/12 09:00
Subsystems: jffs2
[Documentation on labels]
Reported-by: syzbot+badbb16b0a5dd4c2f676@syzkaller.appspotmail.com
First crash: 18d, last: 16d
Discussions (2)
Title Replies (including bot) Last reply
Re: [syzbot] [jffs2?] kernel BUG in jffs2_sum_write_sumnode 1 (1) 2024/04/17 12:51
[syzbot] [jffs2?] kernel BUG in jffs2_sum_write_sumnode 0 (1) 2024/04/12 09:00

Sample crash report:
jffs2: warning: (5689) jffs2_sum_write_sumnode: Empty summary info!!!
------------[ cut here ]------------
kernel BUG at fs/jffs2/summary.c:865!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN PTI
CPU: 0 PID: 5689 Comm: syz-executor.1 Not tainted 6.8.0-syzkaller-08951-gfe46a7dd189e #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:jffs2_sum_write_sumnode+0x1c48/0x22d0 fs/jffs2/summary.c:865
Code: 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 84 05 00 00 8b b3 c0 05 00 00 48 c7 c2 40 7f 44 8b 48 c7 c7 40 7b 44 8b e8 c9 f9 90 fe 90 <0f> 0b e8 a1 60 0a ff e9 56 e8 ff ff 48 8b bd b8 fe ff ff e8 f0 60
RSP: 0018:ffffc90003b7f4e0 EFLAGS: 00010286
RAX: 0000000000000045 RBX: ffff888021e0bc00 RCX: ffffc90003561000
RDX: 0000000000000000 RSI: ffffffff816e66f6 RDI: 0000000000000005
RBP: ffffc90003b7f660 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888063814850 R15: ffff888063810000
FS:  00007fa57abce6c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31025000 CR3: 000000005c196000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 jffs2_do_reserve_space+0xb52/0x1030 fs/jffs2/nodemgmt.c:388
 jffs2_reserve_space+0x62e/0xba0 fs/jffs2/nodemgmt.c:197
 do_jffs2_setxattr+0x1a1/0x1640 fs/jffs2/xattr.c:1113
 __vfs_setxattr+0x173/0x1e0 fs/xattr.c:200
 __vfs_setxattr_noperm+0x127/0x5e0 fs/xattr.c:234
 __vfs_setxattr_locked+0x182/0x260 fs/xattr.c:295
 vfs_setxattr+0x146/0x350 fs/xattr.c:321
 do_setxattr+0x146/0x170 fs/xattr.c:629
 setxattr+0x15d/0x180 fs/xattr.c:652
 path_setxattr+0x179/0x1e0 fs/xattr.c:671
 __do_sys_setxattr fs/xattr.c:687 [inline]
 __se_sys_setxattr fs/xattr.c:683 [inline]
 __x64_sys_setxattr+0xc4/0x160 fs/xattr.c:683
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xd2/0x260 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x6d/0x75
RIP: 0033:0x7fa579e7de69
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:00007fa57abce0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 00007fa579fabf80 RCX: 00007fa579e7de69
RDX: 0000000020000900 RSI: 0000000020000100 RDI: 00000000200000c0
RBP: 00007fa579eca47a R08: 0000000000000000 R09: 0000000000000000
R10: 000000000000feeb R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007fa579fabf80 R15: 00007ffd3100b498
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:jffs2_sum_write_sumnode+0x1c48/0x22d0 fs/jffs2/summary.c:865
Code: 0f b6 04 02 84 c0 74 08 3c 03 0f 8e 84 05 00 00 8b b3 c0 05 00 00 48 c7 c2 40 7f 44 8b 48 c7 c7 40 7b 44 8b e8 c9 f9 90 fe 90 <0f> 0b e8 a1 60 0a ff e9 56 e8 ff ff 48 8b bd b8 fe ff ff e8 f0 60
RSP: 0018:ffffc90003b7f4e0 EFLAGS: 00010286
RAX: 0000000000000045 RBX: ffff888021e0bc00 RCX: ffffc90003561000
RDX: 0000000000000000 RSI: ffffffff816e66f6 RDI: 0000000000000005
RBP: ffffc90003b7f660 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000001 R12: 0000000000000000
R13: 0000000000000000 R14: ffff888063814850 R15: ffff888063810000
FS:  00007fa57abce6c0(0000) GS:ffff8880b9500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31030000 CR3: 000000005c196000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/04/14 08:53 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in jffs2_sum_write_sumnode
2024/04/14 08:53 upstream fe46a7dd189e c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root kernel BUG in jffs2_sum_write_sumnode
2024/04/12 04:30 upstream 00dcf5d862e8 27de0a5c .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 kernel BUG in jffs2_sum_write_sumnode
2024/04/13 20:57 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci b5d2afe8745b c8349e48 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 kernel BUG in jffs2_sum_write_sumnode
* Struck through repros no longer work on HEAD.