syzbot


kernel BUG in dbAlloc

Status: upstream: reported C repro on 2022/10/15 07:44
Reported-by: syzbot+c21d9e2548ce86117464@syzkaller.appspotmail.com
First crash: 549d, last: 549d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in dbFindLeaf jfs C inconclusive 314 2h58m 568d 0/26 upstream: reported C repro on 2022/09/26 11:46
linux-4.14 kernel BUG in dbFindLeaf C 3 419d 562d 0/1 upstream: reported C repro on 2022/10/02 18:35

Sample crash report:
BUG at fs/jfs/jfs_dmap.c:713 assert(nblocks > 0)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:713!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8082 Comm: syz-executor757 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dbAlloc.cold+0x42/0x44 fs/jfs/jfs_dmap.c:713
Code: f9 e8 87 fe ff ff e8 c7 a1 69 f9 48 c7 c1 60 ff 9a 88 ba c9 02 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 13 d3 fa ff <0f> 0b e8 a1 a1 69 f9 e8 ec 64 9f f9 e8 2c fe ff ff e8 92 a1 69 f9
RSP: 0018:ffff8880956b7710 EFLAGS: 00010286
RAX: 0000000000000030 RBX: ffff8880b545c5a8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012ad6ed4
RBP: ffff8880b545c5a8 R08: 0000000000000030 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000007
R13: 0000000000000000 R14: ffff8880a55672c0 R15: 0000000000000004
FS:  0000555557257300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fb1f60a06c0 CR3: 00000000a3f7b000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ea_get+0xa54/0x1180 fs/jfs/xattr.c:527
 __jfs_setxattr+0xdb/0xf50 fs/jfs/xattr.c:684
 __jfs_xattr_set+0xc9/0x150 fs/jfs/xattr.c:930
 __vfs_setxattr+0x10e/0x170 fs/xattr.c:149
 __vfs_setxattr_noperm+0x11a/0x420 fs/xattr.c:180
 __vfs_setxattr_locked+0x176/0x250 fs/xattr.c:238
 vfs_setxattr+0xe5/0x270 fs/xattr.c:255
 setxattr+0x23d/0x330 fs/xattr.c:520
 path_setxattr+0x170/0x190 fs/xattr.c:539
 __do_sys_setxattr fs/xattr.c:554 [inline]
 __se_sys_setxattr fs/xattr.c:550 [inline]
 __x64_sys_setxattr+0xc0/0x160 fs/xattr.c:550
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fb1f60c7359
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:00007ffe43274f78 EFLAGS: 00000246 ORIG_RAX: 00000000000000bc
RAX: ffffffffffffffda RBX: 0030656c69662f2e RCX: 00007fb1f60c7359
RDX: 0000000000000000 RSI: 0000000020004e40 RDI: 0000000020004e00
RBP: 00007fb1f6110a20 R08: 0000000000000000 R09: 0000000000000001
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000200050c0
R13: 0000000020050120 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 48a75b8b01a5f548 ]---
RIP: 0010:dbAlloc.cold+0x42/0x44 fs/jfs/jfs_dmap.c:713
Code: f9 e8 87 fe ff ff e8 c7 a1 69 f9 48 c7 c1 60 ff 9a 88 ba c9 02 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 13 d3 fa ff <0f> 0b e8 a1 a1 69 f9 e8 ec 64 9f f9 e8 2c fe ff ff e8 92 a1 69 f9
RSP: 0018:ffff8880956b7710 EFLAGS: 00010286
RAX: 0000000000000030 RBX: ffff8880b545c5a8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012ad6ed4
RBP: ffff8880b545c5a8 R08: 0000000000000030 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000007
R13: 0000000000000000 R14: ffff8880a55672c0 R15: 0000000000000004
FS:  0000555557257300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f057403a0b8 CR3: 00000000a3f7b000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/15 08:59 linux-4.19.y 3f8a27f9e27b 67cb024c .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 kernel BUG in dbAlloc
2022/10/15 07:43 linux-4.19.y 3f8a27f9e27b 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in dbAlloc
* Struck through repros no longer work on HEAD.