[v5.15] kernel BUG in direntry_check_right

2 views
Skip to first unread message

syzbot

unread,
Aug 16, 2025, 1:50:30 PM8/16/25
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c79648372d02 Linux 5.15.189
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=116e3af0580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f3b1215b3cf4119f
dashboard link: https://syzkaller.appspot.com/bug?extid=666d139ff631cef74b1d
compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7

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

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/fa511d2a8893/disk-c7964837.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/f14b6c77bbb9/vmlinux-c7964837.xz
kernel image: https://storage.googleapis.com/syzbot-assets/388987ba15c6/bzImage-c7964837.xz

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

------------[ cut here ]------------
kernel BUG at fs/reiserfs/item_ops.c:569!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 11209 Comm: syz.7.1737 Not tainted 5.15.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:direntry_check_right+0x262/0x270 fs/reiserfs/item_ops.c:569
Code: e9 4b ff ff ff 44 89 f9 80 e1 07 38 c1 0f 8c 51 ff ff ff be 04 00 00 00 4c 89 ff e8 68 8a bc ff e9 3f ff ff ff e8 5e 26 78 ff <0f> 0b e8 57 26 78 ff 0f 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41
RSP: 0018:ffffc9000345f0f8 EFLAGS: 00010293
RAX: ffffffff81ff9dc2 RBX: dffffc0000000000 RCX: ffff88802a1ed940
RDX: 0000000000000000 RSI: 0000000000000018 RDI: 0000000000000028
RBP: ffff88801ff50154 R08: ffff88802a1ed940 R09: 0000000000000002
R10: 0000000000000070 R11: 0000000000000000 R12: ffff88801ff5014e
R13: 0000000000000018 R14: fffffffffffffffd R15: 0000000000000010
FS: 0000555566bcb500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000559da0b8ce28 CR3: 0000000065927000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
check_right+0x4ea/0x7f0 fs/reiserfs/fix_node.c:355
dc_check_balance_leaf fs/reiserfs/fix_node.c:1983 [inline]
dc_check_balance fs/reiserfs/fix_node.c:2039 [inline]
check_balance fs/reiserfs/fix_node.c:2086 [inline]
fix_nodes+0x3dc4/0x82d0 fs/reiserfs/fix_node.c:2635
reiserfs_cut_from_item+0x2e8/0x1ef0 fs/reiserfs/stree.c:1742
reiserfs_do_truncate+0xa90/0x13e0 fs/reiserfs/stree.c:1973
reiserfs_truncate_file+0x632/0xdc0 fs/reiserfs/inode.c:2318
reiserfs_file_release+0x8e0/0xa50 fs/reiserfs/file.c:109
__fput+0x234/0x930 fs/file_table.c:311
task_work_run+0x125/0x1a0 kernel/task_work.c:188
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f8d0c369be9
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:00007ffec9afab38 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00007f8d0c592da0 RCX: 00007f8d0c369be9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 00007f8d0c592da0 R08: 0000000000000104 R09: 0000000bc9afae2f
R10: 00000000003ffcd8 R11: 0000000000000246 R12: 00000000000914af
R13: 00007ffec9afac30 R14: ffffffffffffffff R15: 00007ffec9afac50
</TASK>
Modules linked in:
---[ end trace 9d960ff6f5e466a6 ]---
RIP: 0010:direntry_check_right+0x262/0x270 fs/reiserfs/item_ops.c:569
Code: e9 4b ff ff ff 44 89 f9 80 e1 07 38 c1 0f 8c 51 ff ff ff be 04 00 00 00 4c 89 ff e8 68 8a bc ff e9 3f ff ff ff e8 5e 26 78 ff <0f> 0b e8 57 26 78 ff 0f 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41
RSP: 0018:ffffc9000345f0f8 EFLAGS: 00010293
RAX: ffffffff81ff9dc2 RBX: dffffc0000000000 RCX: ffff88802a1ed940
RDX: 0000000000000000 RSI: 0000000000000018 RDI: 0000000000000028
RBP: ffff88801ff50154 R08: ffff88802a1ed940 R09: 0000000000000002
R10: 0000000000000070 R11: 0000000000000000 R12: ffff88801ff5014e
R13: 0000000000000018 R14: fffffffffffffffd R15: 0000000000000010
FS: 0000555566bcb500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055bcecaef078 CR3: 0000000065927000 CR4: 00000000003506f0
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,
Aug 16, 2025, 2:25:34 PM8/16/25
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: c79648372d02 Linux 5.15.189
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=10c563a2580000
kernel config: https://syzkaller.appspot.com/x/.config?x=f3b1215b3cf4119f
dashboard link: https://syzkaller.appspot.com/bug?extid=666d139ff631cef74b1d
compiler: Debian clang version 20.1.7 (++20250616065708+6146a88f6049-1~exp1~20250616065826.132), Debian LLD 20.1.7
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=14c563a2580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12c563a2580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/94d16b76bc12/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=15440ba2580000)

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

REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 4) not found (pos 2)
------------[ cut here ]------------
kernel BUG at fs/reiserfs/item_ops.c:569!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4450 Comm: syz.0.17 Not tainted 5.15.189-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:direntry_check_right+0x262/0x270 fs/reiserfs/item_ops.c:569
Code: e9 4b ff ff ff 44 89 f9 80 e1 07 38 c1 0f 8c 51 ff ff ff be 04 00 00 00 4c 89 ff e8 68 8a bc ff e9 3f ff ff ff e8 5e 26 78 ff <0f> 0b e8 57 26 78 ff 0f 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41
RSP: 0018:ffffc9000368f0f8 EFLAGS: 00010293
RAX: ffffffff81ff9dc2 RBX: dffffc0000000000 RCX: ffff88807a269dc0
RDX: 0000000000000000 RSI: 0000000000000018 RDI: 0000000000000040
RBP: ffff8880191e8152 R08: ffff88807a269dc0 R09: 0000000000000002
R10: 0000000000000070 R11: 0000000000000000 R12: ffff8880191e814e
R13: 0000000000000018 R14: fffffffffffffffe R15: 0000000000000028
FS: 0000555576077500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f67c399c000 CR3: 000000005ff43000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
check_right+0x4ea/0x7f0 fs/reiserfs/fix_node.c:355
dc_check_balance_leaf fs/reiserfs/fix_node.c:1983 [inline]
dc_check_balance fs/reiserfs/fix_node.c:2039 [inline]
check_balance fs/reiserfs/fix_node.c:2086 [inline]
fix_nodes+0x3dc4/0x82d0 fs/reiserfs/fix_node.c:2635
reiserfs_cut_from_item+0x2e8/0x1ef0 fs/reiserfs/stree.c:1742
reiserfs_do_truncate+0xa90/0x13e0 fs/reiserfs/stree.c:1973
reiserfs_truncate_file+0x632/0xdc0 fs/reiserfs/inode.c:2318
reiserfs_file_release+0x8e0/0xa50 fs/reiserfs/file.c:109
__fput+0x234/0x930 fs/file_table.c:311
task_work_run+0x125/0x1a0 kernel/task_work.c:188
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x10f/0x130 kernel/entry/common.c:181
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:214
__syscall_exit_to_user_mode_work kernel/entry/common.c:296 [inline]
syscall_exit_to_user_mode+0x16/0x40 kernel/entry/common.c:307
do_syscall_64+0x58/0xa0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f187df31be9
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:00007ffda02ae968 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4
RAX: 0000000000000000 RBX: 00000000000134f2 RCX: 00007f187df31be9
RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003
RBP: 0000000000000000 R08: 0000000000000001 R09: 00000005a02aec5f
R10: 0000001b32820000 R11: 0000000000000246 R12: 00007f187e158fac
R13: 00007f187e158fa0 R14: ffffffffffffffff R15: 0000000000000002
</TASK>
Modules linked in:
---[ end trace 1a60498df8fe32ff ]---
RIP: 0010:direntry_check_right+0x262/0x270 fs/reiserfs/item_ops.c:569
Code: e9 4b ff ff ff 44 89 f9 80 e1 07 38 c1 0f 8c 51 ff ff ff be 04 00 00 00 4c 89 ff e8 68 8a bc ff e9 3f ff ff ff e8 5e 26 78 ff <0f> 0b e8 57 26 78 ff 0f 0b 0f 1f 44 00 00 55 41 57 41 56 41 55 41
RSP: 0018:ffffc9000368f0f8 EFLAGS: 00010293
RAX: ffffffff81ff9dc2 RBX: dffffc0000000000 RCX: ffff88807a269dc0
RDX: 0000000000000000 RSI: 0000000000000018 RDI: 0000000000000040
RBP: ffff8880191e8152 R08: ffff88807a269dc0 R09: 0000000000000002
R10: 0000000000000070 R11: 0000000000000000 R12: ffff8880191e814e
R13: 0000000000000018 R14: fffffffffffffffe R15: 0000000000000028
FS: 0000555576077500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f67c399c000 CR3: 000000005ff43000 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