syzbot
kernel BUG in dbBackSplit (2)
Status:
upstream: reported on 2026/01/09 20:35
Subsystems:
jfs
Labels:
prio:high
[Documentation on labels]
Reported-by: syzbot+5391ade36343d8cd8801@syzkaller.appspotmail.com
First crash: 210d, last: 33d
Sample crash report:
ERROR: (device loop0): dbAdjCtl: the maximum free buddy is not the old root
ERROR: (device loop0): remounting filesystem as read-only
read_mapping_page failed!
read_mapping_page failed!
BUG at fs/jfs/jfs_dmap.c:2787 assert(leaf[leafno] == NOFREE)
------------[ cut here ]------------
kernel BUG at fs/jfs/jfs_dmap.c:2787!
Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI
CPU: 0 UID: 0 PID: 5323 Comm: syz.0.0 Not tainted syzkaller #0 PREEMPT(full)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
RIP: 0010:dbBackSplit+0x57c/0x580 fs/jfs/jfs_dmap.c:2787
Code: e9 02 fc ff ff e8 04 1a 5f fe 48 c7 c7 60 54 0c 8c 48 c7 c6 a0 51 0c 8c ba e3 0a 00 00 48 c7 c1 80 5b 0c 8c e8 d5 57 c0 fd 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41
RSP: 0018:ffffc900053ffbc0 EFLAGS: 00010246
RAX: 000000000000003c RBX: 000000000000000a RCX: 38cfa64382b47800
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff88801fc24713 R09: 1ffff11003f848e2
R10: dffffc0000000000 R11: ffffed1003f848e3 R12: 0000000000000040
R13: ffff888012f03010 R14: ffff888012f030b6 R15: ffff888012f03076
FS: 00007f841a3d46c0(0000) GS:ffff88808c815000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056280ec4c168 CR3: 0000000011f60000 CR4: 0000000000352ef0
Call Trace:
<TASK>
dbFreeDmap fs/jfs/jfs_dmap.c:2195 [inline]
dbFree+0x53f/0x650 fs/jfs/jfs_dmap.c:485
dbDiscardAG+0x7b5/0x8f0 fs/jfs/jfs_dmap.c:1732
jfs_ioc_trim+0x433/0x670 fs/jfs/jfs_discard.c:106
jfs_ioctl+0x28e/0x3b0 fs/jfs/ioctl.c:131
vfs_ioctl fs/ioctl.c:51 [inline]
__do_sys_ioctl fs/ioctl.c:597 [inline]
__se_sys_ioctl+0xfc/0x170 fs/ioctl.c:583
do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f841df9de59
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f841a3d3fe8 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007f841e226090 RCX: 00007f841df9de59
RDX: 0000200000000080 RSI: 00000000c0185879 RDI: 0000000000000008
RBP: 00007f841e033e6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f841e226128 R14: 00007f841e226090 R15: 00007ffc55d3fae8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:dbBackSplit+0x57c/0x580 fs/jfs/jfs_dmap.c:2787
Code: e9 02 fc ff ff e8 04 1a 5f fe 48 c7 c7 60 54 0c 8c 48 c7 c6 a0 51 0c 8c ba e3 0a 00 00 48 c7 c1 80 5b 0c 8c e8 d5 57 c0 fd 90 <0f> 0b 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 55 41
RSP: 0018:ffffc900053ffbc0 EFLAGS: 00010246
RAX: 000000000000003c RBX: 000000000000000a RCX: 38cfa64382b47800
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffff88801fc24713 R09: 1ffff11003f848e2
R10: dffffc0000000000 R11: ffffed1003f848e3 R12: 0000000000000040
R13: ffff888012f03010 R14: ffff888012f030b6 R15: ffff888012f03076
FS: 00007f841a3d46c0(0000) GS:ffff88808c815000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056280ec4c168 CR3: 0000000011f60000 CR4: 0000000000352ef0
* Struck through repros no longer work on HEAD.