Hello,
syzbot found the following issue on:
HEAD commit: 241d66fa280c Linux 5.15.208
git tree: linux-5.15.y
console output:
https://syzkaller.appspot.com/x/log.txt?x=134fdb6a580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=353ae28c40b35af5
dashboard link:
https://syzkaller.appspot.com/bug?extid=4e25c29d707d5868227f
compiler: Debian clang version 21.1.8 (++20251221033036+2078da43e25a-1~exp1~20251221153213.50), Debian LLD 21.1.8
Unfortunately, I don't have any reproducer for this issue yet.
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/d3e9d10633a1/disk-241d66fa.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/beca1f713e4b/vmlinux-241d66fa.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/26a15a6e1c14/bzImage-241d66fa.xz
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+4e25c2...@syzkaller.appspotmail.com
REISERFS warning (device loop8): vs-13060 reiserfs_update_sd_size: stat data of object [2 2 0x0 SD] (nlink == 1) not found (pos 0)
general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f]
CPU: 1 PID: 6163 Comm: syz.8.242 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:balance_internal_when_delete fs/reiserfs/ibalance.c:675 [inline]
RIP: 0010:balance_internal+0x290e/0x4ab0 fs/reiserfs/ibalance.c:849
Code: 48 4c 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 95 2f bf ff 49 8b 06 48 89 44 24 20 48 8d 58 18 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 73 2f bf ff 44 8b 33 48 b8 00 00
RSP: 0018:ffffc90003826b00 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: 0000000000080000
RDX: ffffc90017712000 RSI: 000000000003200e RDI: 000000000003200f
RBP: ffffc90003826d90 R08: ffff8880671de917 R09: 1ffff1100ce3bd22
R10: dffffc0000000000 R11: ffffed100ce3bd23 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc90003826fc8 R15: ffffc90003826f80
FS: 00007fa60dbe46c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fa60f9f9540 CR3: 0000000073d5b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
do_balance+0x36e/0x930 fs/reiserfs/do_balan.c:1896
reiserfs_delete_solid_item+0x94a/0xfa0 fs/reiserfs/stree.c:1462
remove_save_link+0x254/0x3e0 fs/reiserfs/super.c:540
reiserfs_truncate_file+0x7c9/0xe40 fs/reiserfs/inode.c:2330
reiserfs_setattr+0xab3/0x1090 fs/reiserfs/inode.c:3409
notify_change+0xbcd/0xee0 fs/attr.c:505
do_truncate+0x1ac/0x240 fs/open.c:65
handle_truncate fs/namei.c:3273 [inline]
do_open fs/namei.c:3620 [inline]
path_openat+0x2922/0x2fa0 fs/namei.c:3750
do_filp_open+0x1e2/0x410 fs/namei.c:3777
do_sys_openat2+0x150/0x4b0 fs/open.c:1255
do_sys_open fs/open.c:1271 [inline]
__do_sys_open fs/open.c:1279 [inline]
__se_sys_open fs/open.c:1275 [inline]
__x64_sys_open+0x11b/0x140 fs/open.c:1275
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:0x7fa60f9abe59
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:00007fa60dbe4028 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007fa60fc25090 RCX: 00007fa60f9abe59
RDX: 000000000000012a RSI: 0000000000000200 RDI: 00002000000001c0
RBP: 00007fa60fa41d6f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fa60fc25128 R14: 00007fa60fc25090 R15: 00007ffe6ccaa7c8
</TASK>
Modules linked in:
---[ end trace 15184d9ff7a44212 ]---
RIP: 0010:balance_internal_when_delete fs/reiserfs/ibalance.c:675 [inline]
RIP: 0010:balance_internal+0x290e/0x4ab0 fs/reiserfs/ibalance.c:849
Code: 48 4c 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 95 2f bf ff 49 8b 06 48 89 44 24 20 48 8d 58 18 48 89 d8 48 c1 e8 03 <42> 80 3c 28 00 74 08 48 89 df e8 73 2f bf ff 44 8b 33 48 b8 00 00
RSP: 0018:ffffc90003826b00 EFLAGS: 00010206
RAX: 0000000000000003 RBX: 0000000000000018 RCX: 0000000000080000
RDX: ffffc90017712000 RSI: 000000000003200e RDI: 000000000003200f
RBP: ffffc90003826d90 R08: ffff8880671de917 R09: 1ffff1100ce3bd22
R10: dffffc0000000000 R11: ffffed100ce3bd23 R12: 0000000000000000
R13: dffffc0000000000 R14: ffffc90003826fc8 R15: ffffc90003826f80
FS: 00007fa60dbe46c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f175ff3e158 CR3: 0000000073d5b000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 48 rex.W
1: 4c 89 f0 mov %r14,%rax
4: 48 c1 e8 03 shr $0x3,%rax
8: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1)
d: 74 08 je 0x17
f: 4c 89 f7 mov %r14,%rdi
12: e8 95 2f bf ff call 0xffbf2fac
17: 49 8b 06 mov (%r14),%rax
1a: 48 89 44 24 20 mov %rax,0x20(%rsp)
1f: 48 8d 58 18 lea 0x18(%rax),%rbx
23: 48 89 d8 mov %rbx,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 80 3c 28 00 cmpb $0x0,(%rax,%r13,1) <-- trapping instruction
2f: 74 08 je 0x39
31: 48 89 df mov %rbx,%rdi
34: e8 73 2f bf ff call 0xffbf2fac
39: 44 8b 33 mov (%rbx),%r14d
3c: 48 rex.W
3d: b8 .byte 0xb8
---
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