syzbot


kernel BUG in dbFindLeaf

Status: upstream: reported C repro on 2023/07/08 22:09
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+f0b9c8f03467ee4e5852@syzkaller.appspotmail.com
First crash: 501d, last: 47d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/12/31 upstream (ToT) 453f5db0619e C [report] kernel BUG in dbFindLeaf
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in dbFindLeaf jfs C inconclusive 2403 2h48m 786d 0/28 upstream: reported C repro on 2022/09/26 11:46
linux-4.19 kernel BUG in dbFindLeaf 1 1109d 1109d 0/1 auto-closed as invalid on 2022/03/07 18:32
linux-4.14 kernel BUG in dbFindLeaf C 3 638d 780d 0/1 upstream: reported C repro on 2022/10/02 18:35
linux-6.1 kernel BUG in dbFindLeaf origin:upstream C error 3 187d 474d 0/3 upstream: reported C repro on 2023/08/05 07:19
linux-4.19 kernel BUG in dbFindLeaf (2) C error 6 742d 781d 0/1 upstream: reported C repro on 2022/10/02 04:21
Last patch testing requests (3)
Created Duration User Patch Repo Result
2024/10/04 14:15 14m retest repro linux-5.15.y report log
2024/10/04 14:15 12m retest repro linux-5.15.y report log
2024/10/04 14:15 13m retest repro linux-5.15.y report log

Sample crash report:
loop0: detected capacity change from 0 to 32768
BUG at fs/jfs/jfs_dmap.c:3040 assert(n < 4)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:3040!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3501 Comm: syz-executor107 Not tainted 5.15.145-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:dbFindLeaf+0x4de/0x4e0 fs/jfs/jfs_dmap.c:3040
Code: fe e9 55 ff ff ff e8 41 6c 9f fe 48 c7 c7 60 be c0 8a 48 c7 c6 a0 bb c0 8a ba e0 0b 00 00 48 c7 c1 20 c9 c0 8a e8 6b 17 3a 07 <0f> 0b 55 41 57 41 56 41 55 41 54 53 48 83 ec 68 48 89 fb 49 be 00
RSP: 0018:ffffc900022e71d8 EFLAGS: 00010246
RAX: 000000000000002b RBX: 00000000ffffffff RCX: bdf1bf0391a40200
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000011 R08: ffffffff81665aec R09: ffffed10173467a8
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000155
R13: 0000000000000003 R14: 0000000000000014 R15: 0000000000000000
FS:  0000555555d64380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020ea0000 CR3: 000000007a278000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 dbAllocDmapLev+0xcf/0x490 fs/jfs/jfs_dmap.c:2035
 dbAllocCtl+0x113/0x920 fs/jfs/jfs_dmap.c:1891
 dbAllocAG+0x28b/0x10b0 fs/jfs/jfs_dmap.c:1432
 dbAlloc+0x654/0xc90 fs/jfs/jfs_dmap.c:888
 extBalloc fs/jfs/jfs_extent.c:523 [inline]
 extAlloc+0x4f4/0x1000 fs/jfs/jfs_extent.c:125
 jfs_get_block+0x417/0xe50 fs/jfs/inode.c:258
 nobh_write_begin+0x398/0xda0 fs/buffer.c:2650
 jfs_write_begin+0x3e/0x80 fs/jfs/inode.c:322
 generic_perform_write+0x2bf/0x5b0 mm/filemap.c:3776
 __generic_file_write_iter+0x243/0x4f0 mm/filemap.c:3903
 generic_file_write_iter+0xa7/0x1b0 mm/filemap.c:3935
 do_iter_readv_writev+0x594/0x7a0
 do_iter_write+0x1ea/0x760 fs/read_write.c:855
 vfs_writev fs/read_write.c:928 [inline]
 do_pwritev+0x219/0x360 fs/read_write.c:1025
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f9b7fe35139
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdca176b98 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007ffdca176d78 RCX: 00007f9b7fe35139
RDX: 0000000000000001 RSI: 0000000020000100 RDI: 0000000000000004
RBP: 00007f9b7feae610 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000005405 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffdca176d68 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace fdfc9cfb8eec9db9 ]---
RIP: 0010:dbFindLeaf+0x4de/0x4e0 fs/jfs/jfs_dmap.c:3040
Code: fe e9 55 ff ff ff e8 41 6c 9f fe 48 c7 c7 60 be c0 8a 48 c7 c6 a0 bb c0 8a ba e0 0b 00 00 48 c7 c1 20 c9 c0 8a e8 6b 17 3a 07 <0f> 0b 55 41 57 41 56 41 55 41 54 53 48 83 ec 68 48 89 fb 49 be 00
RSP: 0018:ffffc900022e71d8 EFLAGS: 00010246
RAX: 000000000000002b RBX: 00000000ffffffff RCX: bdf1bf0391a40200
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000011 R08: ffffffff81665aec R09: ffffed10173467a8
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000155
R13: 0000000000000003 R14: 0000000000000014 R15: 0000000000000000
FS:  0000555555d64380(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020ea0000 CR3: 000000007a278000 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
2023/12/31 06:08 linux-5.15.y d93fa2c78854 fb427a07 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in dbFindLeaf
2023/07/17 09:27 linux-5.15.y d54cfc420586 35d9ecc5 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in dbFindLeaf
2023/07/09 00:14 linux-5.15.y d54cfc420586 668cb1fa .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in dbFindLeaf
2023/07/08 22:08 linux-5.15.y d54cfc420586 668cb1fa .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in dbFindLeaf
* Struck through repros no longer work on HEAD.