[v6.6] general protection fault in reiserfs_get_block

0 views
Skip to first unread message

syzbot

unread,
Dec 9, 2025, 7:02:35 AM (9 days ago) Dec 9
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 5fa4793a2d2d Linux 6.6.119
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12f55992580000
kernel config: https://syzkaller.appspot.com/x/.config?x=691a6769a86ac817
dashboard link: https://syzkaller.appspot.com/bug?extid=fb2b35129077a32ad1cc
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/63699875f1dd/disk-5fa4793a.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/8506652fcb6f/vmlinux-5fa4793a.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1b30ceed1710/bzImage-5fa4793a.xz

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

general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 1 PID: 7919 Comm: syz.0.506 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:reiserfs_get_block+0x1612/0x3ed0 fs/reiserfs/inode.c:1052
Code: 5f 04 00 00 e8 8f c0 65 ff 4d 89 f0 e9 0b 02 00 00 44 8b bc 24 40 03 00 00 4c 89 74 24 38 4d 8d 74 9e fc 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 63 0d 00 00 4c 89 fb 45 89 3e 48 8b 44
RSP: 0018:ffffc9000cab72a0 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff888025ccbc00
RDX: 0000000000000002 RSI: 00000000000003f4 RDI: 0000000000000000
RBP: ffffc9000cab7810 R08: ffffc9000cab777f R09: 0000000000000000
R10: ffffc9000cab7760 R11: fffff52001956ef0 R12: dffffc0000000000
R13: 00000000000003f4 R14: 000000000000000c R15: 0000000000000217
FS: 00007f26f86576c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000008027 CR3: 000000007c7e3000 CR4: 00000000003506e0
Call Trace:
<TASK>
__block_write_begin_int+0x566/0x1ad0 fs/buffer.c:2124
reiserfs_write_begin+0x20a/0x4c0 fs/reiserfs/inode.c:2771
generic_perform_write+0x2fb/0x5b0 mm/filemap.c:4031
generic_file_write_iter+0xaf/0x2e0 mm/filemap.c:4152
do_iter_readv_writev fs/read_write.c:-1 [inline]
do_iter_write+0x79a/0xc70 fs/read_write.c:860
vfs_writev fs/read_write.c:933 [inline]
do_pwritev+0x205/0x340 fs/read_write.c:1030
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f26f778f749
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:00007f26f8657038 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007f26f79e5fa0 RCX: 00007f26f778f749
RDX: 0000000000000001 RSI: 00002000000001c0 RDI: 0000000000000006
RBP: 00007f26f7813f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e7b R11: 0000000000000246 R12: 0000000000000000
R13: 00007f26f79e6038 R14: 00007f26f79e5fa0 R15: 00007ffc8633c6b8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:reiserfs_get_block+0x1612/0x3ed0 fs/reiserfs/inode.c:1052
Code: 5f 04 00 00 e8 8f c0 65 ff 4d 89 f0 e9 0b 02 00 00 44 8b bc 24 40 03 00 00 4c 89 74 24 38 4d 8d 74 9e fc 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 63 0d 00 00 4c 89 fb 45 89 3e 48 8b 44
RSP: 0018:ffffc9000cab72a0 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff888025ccbc00
RDX: 0000000000000002 RSI: 00000000000003f4 RDI: 0000000000000000
RBP: ffffc9000cab7810 R08: ffffc9000cab777f R09: 0000000000000000
R10: ffffc9000cab7760 R11: fffff52001956ef0 R12: dffffc0000000000
R13: 00000000000003f4 R14: 000000000000000c R15: 0000000000000217
FS: 00007f26f86576c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fc58cf652e8 CR3: 000000007c7e3000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000001 DR6: 00000000ffff0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess):
0: 5f pop %rdi
1: 04 00 add $0x0,%al
3: 00 e8 add %ch,%al
5: 8f c0 pop %rax
7: 65 ff 4d 89 decl %gs:-0x77(%rbp)
b: f0 e9 0b 02 00 00 lock jmp 0x21c
11: 44 8b bc 24 40 03 00 mov 0x340(%rsp),%r15d
18: 00
19: 4c 89 74 24 38 mov %r14,0x38(%rsp)
1e: 4d 8d 74 9e fc lea -0x4(%r14,%rbx,4),%r14
23: 4c 89 f0 mov %r14,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 63 0d 00 00 jne 0xd9a
37: 4c 89 fb mov %r15,%rbx
3a: 45 89 3e mov %r15d,(%r14)
3d: 48 rex.W
3e: 8b .byte 0x8b
3f: 44 rex.R


---
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,
Dec 9, 2025, 7:53:25 AM (9 days ago) Dec 9
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 5fa4793a2d2d Linux 6.6.119
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=164d2a1a580000
kernel config: https://syzkaller.appspot.com/x/.config?x=691a6769a86ac817
dashboard link: https://syzkaller.appspot.com/bug?extid=fb2b35129077a32ad1cc
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=115eaec2580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=108e9a1a580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/f5100f8e50d8/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=170e9a1a580000)

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

REISERFS (device loop0): Using tea hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [2 5 0x0 SD] (nlink == 1) not found (pos 2)
general protection fault, probably for non-canonical address 0xdffffc0000000001: 0000 [#1] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range [0x0000000000000008-0x000000000000000f]
CPU: 0 PID: 5925 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/25/2025
RIP: 0010:reiserfs_get_block+0x1612/0x3ed0 fs/reiserfs/inode.c:1052
Code: 5f 04 00 00 e8 8f c0 65 ff 4d 89 f0 e9 0b 02 00 00 44 8b bc 24 40 03 00 00 4c 89 74 24 38 4d 8d 74 9e fc 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 63 0d 00 00 4c 89 fb 45 89 3e 48 8b 44
RSP: 0018:ffffc900039372a0 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff88802b761e00
RDX: 0000000000000000 RSI: 00000000000003f4 RDI: 0000000000000000
RBP: ffffc90003937810 R08: ffffc9000393777f R09: 0000000000000000
R10: ffffc90003937760 R11: fffff52000726ef0 R12: dffffc0000000000
R13: 00000000000003f4 R14: 000000000000000c R15: 0000000000000217
FS: 0000555567419500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f891a593000 CR3: 00000000750f6000 CR4: 00000000003506f0
Call Trace:
<TASK>
__block_write_begin_int+0x566/0x1ad0 fs/buffer.c:2124
reiserfs_write_begin+0x20a/0x4c0 fs/reiserfs/inode.c:2771
generic_perform_write+0x2fb/0x5b0 mm/filemap.c:4031
generic_file_write_iter+0xaf/0x2e0 mm/filemap.c:4152
do_iter_readv_writev fs/read_write.c:-1 [inline]
do_iter_write+0x79a/0xc70 fs/read_write.c:860
vfs_writev fs/read_write.c:933 [inline]
do_pwritev+0x205/0x340 fs/read_write.c:1030
do_syscall_x64 arch/x86/entry/common.c:51 [inline]
do_syscall_64+0x55/0xb0 arch/x86/entry/common.c:81
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7fd9ba78f749
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:00007ffef0e82918 EFLAGS: 00000246 ORIG_RAX: 0000000000000148
RAX: ffffffffffffffda RBX: 00007fd9ba9e5fa0 RCX: 00007fd9ba78f749
RDX: 0000000000000001 RSI: 00002000000001c0 RDI: 0000000000000006
RBP: 00007fd9ba813f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000e7b R11: 0000000000000246 R12: 0000000000000000
R13: 00007fd9ba9e5fa0 R14: 00007fd9ba9e5fa0 R15: 0000000000000006
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:reiserfs_get_block+0x1612/0x3ed0 fs/reiserfs/inode.c:1052
Code: 5f 04 00 00 e8 8f c0 65 ff 4d 89 f0 e9 0b 02 00 00 44 8b bc 24 40 03 00 00 4c 89 74 24 38 4d 8d 74 9e fc 4c 89 f0 48 c1 e8 03 <42> 0f b6 04 20 84 c0 0f 85 63 0d 00 00 4c 89 fb 45 89 3e 48 8b 44
RSP: 0018:ffffc900039372a0 EFLAGS: 00010203
RAX: 0000000000000001 RBX: 0000000000000000 RCX: ffff88802b761e00
RDX: 0000000000000000 RSI: 00000000000003f4 RDI: 0000000000000000
RBP: ffffc90003937810 R08: ffffc9000393777f R09: 0000000000000000
R10: ffffc90003937760 R11: fffff52000726ef0 R12: dffffc0000000000
R13: 00000000000003f4 R14: 000000000000000c R15: 0000000000000217
FS: 0000555567419500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f891a593000 CR3: 00000000750f6000 CR4: 00000000003506f0
----------------
Code disassembly (best guess):
0: 5f pop %rdi
1: 04 00 add $0x0,%al
3: 00 e8 add %ch,%al
5: 8f c0 pop %rax
7: 65 ff 4d 89 decl %gs:-0x77(%rbp)
b: f0 e9 0b 02 00 00 lock jmp 0x21c
11: 44 8b bc 24 40 03 00 mov 0x340(%rsp),%r15d
18: 00
19: 4c 89 74 24 38 mov %r14,0x38(%rsp)
1e: 4d 8d 74 9e fc lea -0x4(%r14,%rbx,4),%r14
23: 4c 89 f0 mov %r14,%rax
26: 48 c1 e8 03 shr $0x3,%rax
* 2a: 42 0f b6 04 20 movzbl (%rax,%r12,1),%eax <-- trapping instruction
2f: 84 c0 test %al,%al
31: 0f 85 63 0d 00 00 jne 0xd9a
37: 4c 89 fb mov %r15,%rbx
3a: 45 89 3e mov %r15d,(%r14)
3d: 48 rex.W
3e: 8b .byte 0x8b
3f: 44 rex.R


---
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