syzbot


kernel BUG in dbFindLeaf

Status: upstream: reported C repro on 2022/10/02 18:35
Reported-by: syzbot+65d1c2f1467906ad3ad7@syzkaller.appspotmail.com
First crash: 565d, last: 422d
Similar bugs (6)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in dbFindLeaf jfs C inconclusive 332 42m 571d 0/26 upstream: reported C repro on 2022/09/26 11:46
linux-4.19 kernel BUG in dbFindLeaf 1 894d 894d 0/1 auto-closed as invalid on 2022/03/07 18:32
linux-6.1 kernel BUG in dbFindLeaf origin:upstream C 3 6d11h 258d 0/3 upstream: reported C repro on 2023/08/05 07:19
linux-5.15 kernel BUG in dbFindLeaf origin:upstream C error 4 110d 285d 0/3 upstream: reported C repro on 2023/07/08 22:09
linux-4.19 kernel BUG in dbFindLeaf (2) C error 6 526d 565d 0/1 upstream: reported C repro on 2022/10/02 04:21
linux-4.19 kernel BUG in dbAlloc C error 2 552d 552d 0/1 upstream: reported C repro on 2022/10/15 07:44
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2023/02/22 02:31 33m bisect fix linux-4.14.y job log (0) log
2023/01/23 00:49 21m bisect fix linux-4.14.y job log (0) log
2022/11/05 04:05 28m bisect fix linux-4.14.y job log (0) log

Sample crash report:
audit: type=1800 audit(1664864195.333:2): pid=7963 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor384" name="bus" dev="loop0" ino=7 res=0
BUG at fs/jfs/jfs_dmap.c:3010 assert(n < 4)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:3010!
audit: type=1800 audit(1664864195.333:3): pid=7963 uid=0 auid=4294967295 ses=4294967295 op="collect_data" cause="failed(directio)" comm="syz-executor384" name="bus" dev="loop0" ino=7 res=0
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7963 Comm: syz-executor384 Not tainted 4.14.295-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
task: ffff8880ae936080 task.stack: ffff8880b3a58000
RIP: 0010:dbFindLeaf+0x110/0x200 fs/jfs/jfs_dmap.c:3010
RSP: 0018:ffff8880b3a5f598 EFLAGS: 00010286
RAX: 000000000000002b RBX: 0000000000000071 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bc9e0 RDI: ffffed101674bea9
RBP: ffff8880b3340010 R08: 000000000000002b R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000071
R13: 0000000000000000 R14: dffffc0000000000 R15: 000000000070be01
FS:  0000555557272300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a305332160 CR3: 00000000b4edb000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 dbAllocDmapLev+0x87/0x280 fs/jfs/jfs_dmap.c:2018
 dbAlloc+0x6e9/0x980 fs/jfs/jfs_dmap.c:838
 extBalloc fs/jfs/jfs_extent.c:531 [inline]
 extAlloc+0x478/0xc20 fs/jfs/jfs_extent.c:138
 jfs_get_block+0x1be/0x950 fs/jfs/inode.c:259
 nobh_write_begin+0x368/0xc10 fs/buffer.c:2676
 jfs_write_begin+0x3e/0x190 fs/jfs/inode.c:324
 generic_perform_write+0x1c9/0x420 mm/filemap.c:3055
 __generic_file_write_iter+0x42b/0x590 mm/filemap.c:3148
 generic_file_write_iter+0x36f/0x650 mm/filemap.c:3208
 call_write_iter include/linux/fs.h:1780 [inline]
 do_iter_readv_writev+0x4cf/0x5f0 fs/read_write.c:675
 do_iter_write+0x152/0x550 fs/read_write.c:954
 vfs_writev+0x125/0x290 fs/read_write.c:999
 do_pwritev fs/read_write.c:1088 [inline]
 SYSC_pwritev2 fs/read_write.c:1147 [inline]
 SyS_pwritev2+0x195/0x230 fs/read_write.c:1138
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f44400d8049
RSP: 002b:00007ffd19e85b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f44400d8049
RDX: 0000000000000001 RSI: 0000000020000240 RDI: 0000000000000003
RBP: 00007f44400978b0 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000001400 R11: 0000000000000246 R12: 0000000000000073
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Code: c3 01 44 39 e3 75 be e8 ff 30 1a ff 48 c7 c1 40 a2 b6 87 ba c2 0b 00 00 48 c7 c6 c0 a1 b6 87 48 c7 c7 00 a2 b6 87 e8 65 ba c7 04 <0f> 0b e8 d9 30 1a ff 8d 04 9d 01 00 00 00 41 83 ef 01 75 80 e8 
RIP: dbFindLeaf+0x110/0x200 fs/jfs/jfs_dmap.c:3010 RSP: ffff8880b3a5f598
---[ end trace 21bb51fefe847d0e ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/10/04 06:18 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 kernel BUG in dbFindLeaf
2022/10/02 18:35 linux-4.14.y 9d5c0b3a8e1a feb56351 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 kernel BUG in dbFindLeaf
2022/10/05 18:03 linux-4.14.y 9d5c0b3a8e1a 267e3bb1 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-14 kernel BUG in dbAlloc
* Struck through repros no longer work on HEAD.