[v5.15] panic: item_ops-NUM direntry_check_left: free space NUM, entry_count NUM

1 view
Skip to first unread message

syzbot

unread,
Nov 12, 2025, 12:44:28 AM (7 days ago) Nov 12
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cc5ec8769306 Linux 5.15.196
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16684658580000
kernel config: https://syzkaller.appspot.com/x/.config?x=e1bb6d24ef2164eb
dashboard link: https://syzkaller.appspot.com/bug?extid=0538b14992b3023e8bd1
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c71c660545b2/disk-cc5ec876.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/4f011826cca6/vmlinux-cc5ec876.xz
kernel image: https://storage.googleapis.com/syzbot-assets/8ccd1a2c3f8c/bzImage-cc5ec876.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0538b1...@syzkaller.appspotmail.com

REISERFS warning: vs-16090 direntry_bytes_number: bytes number is asked for direntry
REISERFS panic: item_ops-1 direntry_check_left: free space 124, entry_count 3
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4618 Comm: syz.2.65 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:__reiserfs_panic+0xf7/0x140 fs/reiserfs/prints.c:390
Code: 1b 8a 48 c7 c2 e0 4e 1b 8a 48 0f 44 d0 4c 0f 44 f0 48 c7 c7 00 50 1b 8a 4c 89 f6 48 89 d9 49 c7 c0 20 9e 1e 96 e8 d9 51 ff ff <0f> 0b e8 e2 2e d8 f7 49 81 c7 a8 06 00 00 4d 85 f6 48 c7 c0 c0 4e
RSP: 0018:ffffc9000340e980 EFLAGS: 00010246
RAX: 000000000000004d RBX: ffffffff8bb719d7 RCX: 594973799e796400
RDX: ffffc9000e119000 RSI: 00000000000067e9 RDI: 00000000000067ea
RBP: ffffc9000340ea68 R08: dffffc0000000000 R09: ffffed10172267b0
R10: ffffed10172267b0 R11: 1ffff110172267af R12: ffffffff8a1ba960
R13: ffffc9000340e9a0 R14: ffffffff8a1ba940 R15: 0000000000000000
FS: 00007fda39cd66c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555566836808 CR3: 0000000020aa4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
direntry_check_left+0x273/0x300 fs/reiserfs/item_ops.c:542
get_num_ver+0x618/0xfd0 fs/reiserfs/fix_node.c:515
ip_check_balance fs/reiserfs/fix_node.c:1523 [inline]
check_balance fs/reiserfs/fix_node.c:2083 [inline]
fix_nodes+0x2867/0x82d0 fs/reiserfs/fix_node.c:2635
reiserfs_paste_into_item+0x5c8/0x7e0 fs/reiserfs/stree.c:2130
reiserfs_get_block+0x1bde/0x4100 fs/reiserfs/inode.c:1077
__block_write_begin_int+0x54e/0x15a0 fs/buffer.c:2012
reiserfs_write_begin+0x34b/0x810 fs/reiserfs/inode.c:2790
generic_cont_expand_simple+0xe9/0x190 fs/buffer.c:2362
reiserfs_setattr+0x42f/0x1010 fs/reiserfs/inode.c:3319
notify_change+0xbcd/0xee0 fs/attr.c:505
do_truncate+0x197/0x220 fs/open.c:65
do_sys_ftruncate+0x31b/0x3d0 fs/open.c:193
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7fda3ba6f6c9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fda39cd6038 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007fda3bcc5fa0 RCX: 00007fda3ba6f6c9
RDX: 0000000000000000 RSI: 0000000008008976 RDI: 0000000000000007
RBP: 00007fda3baf1f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fda3bcc6038 R14: 00007fda3bcc5fa0 R15: 00007ffcca6d5d38
</TASK>
Modules linked in:
---[ end trace 1deadc61a49c35e6 ]---
RIP: 0010:__reiserfs_panic+0xf7/0x140 fs/reiserfs/prints.c:390
Code: 1b 8a 48 c7 c2 e0 4e 1b 8a 48 0f 44 d0 4c 0f 44 f0 48 c7 c7 00 50 1b 8a 4c 89 f6 48 89 d9 49 c7 c0 20 9e 1e 96 e8 d9 51 ff ff <0f> 0b e8 e2 2e d8 f7 49 81 c7 a8 06 00 00 4d 85 f6 48 c7 c0 c0 4e
RSP: 0018:ffffc9000340e980 EFLAGS: 00010246

RAX: 000000000000004d RBX: ffffffff8bb719d7 RCX: 594973799e796400
RDX: ffffc9000e119000 RSI: 00000000000067e9 RDI: 00000000000067ea
RBP: ffffc9000340ea68 R08: dffffc0000000000 R09: ffffed10172267b0
R10: ffffed10172267b0 R11: 1ffff110172267af R12: ffffffff8a1ba960
R13: ffffc9000340e9a0 R14: ffffffff8a1ba940 R15: 0000000000000000
FS: 00007fda39cd66c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f964b46e867 CR3: 0000000020aa4000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

If the report is already addressed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want to overwrite report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup

syzbot

unread,
Nov 12, 2025, 1:46:26 AM (7 days ago) Nov 12
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: cc5ec8769306 Linux 5.15.196
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16e270b4580000
kernel config: https://syzkaller.appspot.com/x/.config?x=e1bb6d24ef2164eb
dashboard link: https://syzkaller.appspot.com/bug?extid=0538b14992b3023e8bd1
compiler: Debian clang version 20.1.8 (++20250708063551+0c9f909b7976-1~exp1~20250708183702.136), Debian LLD 20.1.8
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17444658580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1567e7cd980000
mounted in repro: https://storage.googleapis.com/syzbot-assets/a08bf277aee6/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=167b8914580000)

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+0538b1...@syzkaller.appspotmail.com

REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using tea hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
REISERFS warning: vs-16090 direntry_bytes_number: bytes number is asked for direntry
REISERFS panic: item_ops-1 direntry_check_left: free space 124, entry_count 3
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4350 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:__reiserfs_panic+0xf7/0x140 fs/reiserfs/prints.c:390
Code: 1b 8a 48 c7 c2 e0 4e 1b 8a 48 0f 44 d0 4c 0f 44 f0 48 c7 c7 00 50 1b 8a 4c 89 f6 48 89 d9 49 c7 c0 20 9e 1e 96 e8 d9 51 ff ff <0f> 0b e8 e2 2e d8 f7 49 81 c7 a8 06 00 00 4d 85 f6 48 c7 c0 c0 4e
RSP: 0018:ffffc9000313e980 EFLAGS: 00010246
RAX: 000000000000004d RBX: ffffffff8bb719d7 RCX: 1f4530eafa650d00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000313ea68 R08: dffffc0000000000 R09: ffffed10172067b0
R10: ffffed10172067b0 R11: 1ffff110172067af R12: ffffffff8a1ba960
R13: ffffc9000313e9a0 R14: ffffffff8a1ba940 R15: 0000000000000000
FS: 0000555595471500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31863fff CR3: 00000000223f3000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
direntry_check_left+0x273/0x300 fs/reiserfs/item_ops.c:542
get_num_ver+0x618/0xfd0 fs/reiserfs/fix_node.c:515
ip_check_balance fs/reiserfs/fix_node.c:1523 [inline]
check_balance fs/reiserfs/fix_node.c:2083 [inline]
fix_nodes+0x2867/0x82d0 fs/reiserfs/fix_node.c:2635
reiserfs_paste_into_item+0x5c8/0x7e0 fs/reiserfs/stree.c:2130
reiserfs_get_block+0x1bde/0x4100 fs/reiserfs/inode.c:1077
__block_write_begin_int+0x54e/0x15a0 fs/buffer.c:2012
reiserfs_write_begin+0x34b/0x810 fs/reiserfs/inode.c:2790
generic_cont_expand_simple+0xe9/0x190 fs/buffer.c:2362
reiserfs_setattr+0x42f/0x1010 fs/reiserfs/inode.c:3319
notify_change+0xbcd/0xee0 fs/attr.c:505
do_truncate+0x197/0x220 fs/open.c:65
do_sys_ftruncate+0x31b/0x3d0 fs/open.c:193
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7ff375b6f6c9
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 a8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffcac365688 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007ff375dc5fa0 RCX: 00007ff375b6f6c9
RDX: 0000000000000000 RSI: 0000000008008976 RDI: 0000000000000006
RBP: 00007ff375bf1f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ff375dc5fa0 R14: 00007ff375dc5fa0 R15: 0000000000000002
</TASK>
Modules linked in:
---[ end trace 869a4f58f2d0b478 ]---
RIP: 0010:__reiserfs_panic+0xf7/0x140 fs/reiserfs/prints.c:390
Code: 1b 8a 48 c7 c2 e0 4e 1b 8a 48 0f 44 d0 4c 0f 44 f0 48 c7 c7 00 50 1b 8a 4c 89 f6 48 89 d9 49 c7 c0 20 9e 1e 96 e8 d9 51 ff ff <0f> 0b e8 e2 2e d8 f7 49 81 c7 a8 06 00 00 4d 85 f6 48 c7 c0 c0 4e
RSP: 0018:ffffc9000313e980 EFLAGS: 00010246
RAX: 000000000000004d RBX: ffffffff8bb719d7 RCX: 1f4530eafa650d00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000313ea68 R08: dffffc0000000000 R09: ffffed10172067b0
R10: ffffed10172067b0 R11: 1ffff110172067af R12: ffffffff8a1ba960
R13: ffffc9000313e9a0 R14: ffffffff8a1ba940 R15: 0000000000000000
FS: 0000555595471500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31863fff CR3: 00000000223f3000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages