syzbot


kernel BUG in direntry_check_right

Status: upstream: reported C repro on 2025/03/26 15:43
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+c8047ec9b25cceccad70@syzkaller.appspotmail.com
First crash: 30d, last: 30d
Bug presence (1)
Date Name Commit Repro Result
2025/03/28 upstream (ToT) acb4f33713b9 C [report] unregister_netdevice: waiting for DEV to become free
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG in direntry_check_right reiserfs syz error 1 851d 851d 0/1 upstream: reported syz repro on 2022/12/26 20:36
upstream kernel BUG in direntry_check_right reiserfs C done done 2 490d 533d 25/28 fixed on 2024/01/30 15:47

Sample crash report:
REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 6) not found (pos 2)
REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 6) not found (pos 2)
------------[ cut here ]------------
kernel BUG at fs/reiserfs/item_ops.c:569!
Internal error: Oops - BUG: 00000000f2000800 [#1] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4290 Comm: syz-executor166 Not tainted 6.1.131-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
pstate: 80400005 (Nzcv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : direntry_check_right+0x224/0x230 fs/reiserfs/item_ops.c:561
lr : direntry_check_right+0x224/0x230 fs/reiserfs/item_ops.c:561
sp : ffff800021136950
x29: ffff800021136950 x28: dfff800000000000 x27: 1ffff00004226dfe
x26: 0000000000000018 x25: 0000000000000002 x24: 00000000fffffffe
x23: dfff800000000000 x22: 0000000000000090 x21: 0000000000000014
x20: 0000000000000003 x19: ffff0000d9c88198 x18: ffff800021136bde
x17: ffff800008a7bfe0 x16: ffff800012275c40 x15: 0000000000000000
x14: 0000000000000070 x13: ffff0000dbb80000 x12: 0000000000ff0100
x11: 0000000000ff0100 x10: 0000000000000000 x9 : ffff800008dcec58
x8 : ffff0000dbb80000 x7 : 0000000000000000 x6 : 000000000000003f
x5 : 0000000000000040 x4 : ffffffffffffffd0 x3 : 00000000ffffffe8
x2 : 00000000000002dc x1 : 0000000000000090 x0 : 00000000000000a4
Call trace:
 direntry_check_right+0x224/0x230 fs/reiserfs/item_ops.c:561
 check_right+0x400/0x644 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+0x27e4/0x7078 fs/reiserfs/fix_node.c:2635
 reiserfs_cut_from_item+0x330/0x1c98 fs/reiserfs/stree.c:1742
 reiserfs_rename+0x1780/0x1c88 fs/reiserfs/namei.c:1628
 vfs_rename+0xac8/0xe04 fs/namei.c:4874
 do_renameat2+0x9ec/0xe64 fs/namei.c:5027
 __do_sys_renameat2 fs/namei.c:5060 [inline]
 __se_sys_renameat2 fs/namei.c:5057 [inline]
 __arm64_sys_renameat2+0xe0/0xfc fs/namei.c:5057
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2bc arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:140
 do_el0_svc+0x58/0x13c arch/arm64/kernel/syscall.c:204
 el0_svc+0x58/0x168 arch/arm64/kernel/entry-common.c:637
 el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
 el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:585
Code: 52800041 97eea41f 17ffff9a 97dc97ea (d4210000) 
---[ end trace 0000000000000000 ]---

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/03/27 02:58 linux-6.1.y 344a09659766 20510e88 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 kernel BUG in direntry_check_right
2025/03/27 02:07 linux-6.1.y 344a09659766 20510e88 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan-arm64 kernel BUG in direntry_check_right
2025/03/26 15:42 linux-6.1.y 344a09659766 89d30d73 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in direntry_check_right
* Struck through repros no longer work on HEAD.