syzbot


kernel BUG in dbFindLeaf (2)

Status: upstream: reported C repro on 2022/10/02 04:21
Reported-by: syzbot+adae3ec9e00224b6c1ba@syzkaller.appspotmail.com
First crash: 572d, last: 533d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in dbFindLeaf jfs C inconclusive 430 56m 577d 0/26 upstream: reported C repro on 2022/09/26 11:46
linux-4.19 kernel BUG in dbFindLeaf 1 900d 900d 0/1 auto-closed as invalid on 2022/03/07 18:32
linux-4.14 kernel BUG in dbFindLeaf C 3 429d 571d 0/1 upstream: reported C repro on 2022/10/02 18:35
linux-6.1 kernel BUG in dbFindLeaf origin:upstream C 3 13d 265d 0/3 upstream: reported C repro on 2023/08/05 07:19
linux-5.15 kernel BUG in dbFindLeaf origin:upstream C error 4 117d 292d 0/3 upstream: reported C repro on 2023/07/08 22:09

Sample crash report:
audit: type=1800 audit(1664841549.936:3): pid=8097 uid=0 auid=4294967295 ses=4294967295 subj==unconfined op=collect_data cause=failed(directio) comm="syz-executor157" name="bus" dev="loop0" ino=7 res=0
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:3002!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8097 Comm: syz-executor157 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:dbFindLeaf+0x147/0x240 fs/jfs/jfs_dmap.c:3002
Code: fe 83 fb 04 75 96 e8 88 2f ed fe 48 c7 c1 e0 f7 9a 88 ba ba 0b 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 d4 60 7e 05 <0f> 0b e8 62 2f ed fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89
RSP: 0018:ffff8880b2fd7488 EFLAGS: 00010282
RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10165fae83
RBP: 0000000000000070 R08: 000000000000002b R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b48fb010
R13: 0000000000000000 R14: 00000000ffffffff R15: 000000000070be01
FS:  0000555556769300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f4fc1518c8 CR3: 000000008f500000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dbAllocDmapLev+0xaf/0x330 fs/jfs/jfs_dmap.c:2010
 dbAlloc+0x82b/0xb00 fs/jfs/jfs_dmap.c:830
 extBalloc fs/jfs/jfs_extent.c:531 [inline]
 extAlloc+0x4cb/0xdb0 fs/jfs/jfs_extent.c:138
 jfs_get_block+0x1f5/0xae0 fs/jfs/inode.c:258
 nobh_write_begin+0x446/0x1030 fs/buffer.c:2619
 jfs_write_begin+0x3e/0x1a0 fs/jfs/inode.c:323
 generic_perform_write+0x1f8/0x4d0 mm/filemap.c:3170
 __generic_file_write_iter+0x494/0x610 mm/filemap.c:3263
 generic_file_write_iter+0x3f8/0x730 mm/filemap.c:3323
 call_write_iter include/linux/fs.h:1821 [inline]
 do_iter_readv_writev+0x668/0x790 fs/read_write.c:681
 do_iter_write+0x182/0x5d0 fs/read_write.c:960
 vfs_writev+0x153/0x2e0 fs/read_write.c:1005
 do_pwritev+0x1b6/0x270 fs/read_write.c:1094
 __do_sys_pwritev2 fs/read_write.c:1153 [inline]
 __se_sys_pwritev2 fs/read_write.c:1144 [inline]
 __x64_sys_pwritev2+0xeb/0x150 fs/read_write.c:1144
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f549242f049
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:00007ffed0c69fb8 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f549242f049
RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 00007f54923ee8b0 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000001400 R11: 0000000000000246 R12: 0000000000000073
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 3126c8e44ab7a04a ]---
RIP: 0010:dbFindLeaf+0x147/0x240 fs/jfs/jfs_dmap.c:3002
Code: fe 83 fb 04 75 96 e8 88 2f ed fe 48 c7 c1 e0 f7 9a 88 ba ba 0b 00 00 48 c7 c6 60 f7 9a 88 48 c7 c7 a0 f7 9a 88 e8 d4 60 7e 05 <0f> 0b e8 62 2f ed fe 41 83 ef 01 31 ff 8d 04 ad 01 00 00 00 44 89
RSP: 0018:ffff8880b2fd7488 EFLAGS: 00010282
RAX: 000000000000002b RBX: 0000000000000004 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed10165fae83
RBP: 0000000000000070 R08: 000000000000002b R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff8880b48fb010
R13: 0000000000000000 R14: 00000000ffffffff R15: 000000000070be01
FS:  0000555556769300(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f4fc1518c8 CR3: 000000008f500000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/04 00:00 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in dbFindLeaf
2022/10/02 04:21 linux-4.19.y 3f8a27f9e27b feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in dbFindLeaf
2022/11/10 05:57 linux-4.19.y 3f8a27f9e27b b2488a87 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in dbFindLeaf
2022/10/29 07:46 linux-4.19.y 3f8a27f9e27b 899d812a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in dbFindLeaf
2022/10/16 16:16 linux-4.19.y 3f8a27f9e27b 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in dbFindLeaf
2022/10/10 20:49 linux-4.19.y 3f8a27f9e27b 5bcf0c31 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 kernel BUG in dbFindLeaf
* Struck through repros no longer work on HEAD.