[v6.6] kernel BUG in do_journal_end

0 views
Skip to first unread message

syzbot

unread,
Sep 16, 2025, 8:42:27 PMSep 16
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 60a9e718726f Linux 6.6.106
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=160ffb12580000
kernel config: https://syzkaller.appspot.com/x/.config?x=12606d4b8832c7e4
dashboard link: https://syzkaller.appspot.com/bug?extid=374747cc9408d4e3981b
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/eca27e056a5a/disk-60a9e718.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bc64d4eeb7f6/vmlinux-60a9e718.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a345041561ac/bzImage-60a9e718.xz

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

REISERFS panic (device loop2): journal-2332 do_journal_end: Trying to log block 531, which is a log block
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6295 Comm: syz.1.95 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:__reiserfs_panic+0x13e/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 40 90 bc 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 00 91 bc 8a 4c 89 fe 4c 89 f2 49 89 d8 49 c7 c1 c0 90 fd 96 e8 12 66 ff ff <0f> 0b 66 0f 1f 00 53 48 89 fb e8 03 2b 22 f7 48 c7 c7 80 99 bc 8a
RSP: 0018:ffffc9000c4ef9e0 EFLAGS: 00010246
RAX: 0000000000000069 RBX: ffffffff8c7b8419 RCX: 2c725d2b42a92600
RDX: ffffc9000d825000 RSI: 000000000001364a RDI: 000000000001364b
RBP: ffffc9000c4efad0 R08: ffffc9000c4ef6e7 R09: 1ffff9200189dedc
R10: dffffc0000000000 R11: fffff5200189dedd R12: ffffffff8abcdd40
R13: ffffc9000c4efa00 R14: ffffffff8abcdd20 R15: ffff88805bc4c660
FS: 00007f104bac06c0(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b2e22421c CR3: 0000000030c26000 CR4: 00000000003506e0
Call Trace:
<TASK>
do_journal_end+0x3f66/0x4860 fs/reiserfs/journal.c:4156
reiserfs_sync_fs+0xd0/0x150 fs/reiserfs/super.c:78
iterate_supers+0xb2/0x170 fs/super.c:979
ksys_sync+0xa4/0x150 fs/sync.c:103
__ia32_sys_sync+0xe/0x20 fs/sync.c:113
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:0x7f104ab8eba9
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:00007f104bac0038 EFLAGS: 00000246 ORIG_RAX: 00000000000000a2
RAX: ffffffffffffffda RBX: 00007f104add5fa0 RCX: 00007f104ab8eba9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 00007f104add5fa0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f104add6038 R14: 00007f104add5fa0 R15: 00007fffc987e3e8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__reiserfs_panic+0x13e/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 40 90 bc 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 00 91 bc 8a 4c 89 fe 4c 89 f2 49 89 d8 49 c7 c1 c0 90 fd 96 e8 12 66 ff ff <0f> 0b 66 0f 1f 00 53 48 89 fb e8 03 2b 22 f7 48 c7 c7 80 99 bc 8a
RSP: 0018:ffffc9000c4ef9e0 EFLAGS: 00010246
RAX: 0000000000000069 RBX: ffffffff8c7b8419 RCX: 2c725d2b42a92600
RDX: ffffc9000d825000 RSI: 000000000001364a RDI: 000000000001364b
RBP: ffffc9000c4efad0 R08: ffffc9000c4ef6e7 R09: 1ffff9200189dedc
R10: dffffc0000000000 R11: fffff5200189dedd R12: ffffffff8abcdd40
R13: ffffc9000c4efa00 R14: ffffffff8abcdd20 R15: ffff88805bc4c660
FS: 00007f104bac06c0(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fceef3c9f98 CR3: 0000000030c26000 CR4: 00000000003506f0


---
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,
Sep 16, 2025, 9:58:26 PMSep 16
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 60a9e718726f Linux 6.6.106
git tree: linux-6.6.y
console output: https://syzkaller.appspot.com/x/log.txt?x=122f2f62580000
kernel config: https://syzkaller.appspot.com/x/.config?x=12606d4b8832c7e4
dashboard link: https://syzkaller.appspot.com/bug?extid=374747cc9408d4e3981b
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=16e00c7c580000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11e00c7c580000
mounted in repro: https://storage.googleapis.com/syzbot-assets/153fb3b49823/mount_0.gz
fsck result: failed (log: https://syzkaller.appspot.com/x/fsck.log?x=17400712580000)

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

REISERFS panic (device loop0): journal-2332 do_journal_end: Trying to log block 531, which is a log block
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 5902 Comm: syz-executor Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/18/2025
RIP: 0010:__reiserfs_panic+0x13e/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 40 90 bc 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 00 91 bc 8a 4c 89 fe 4c 89 f2 49 89 d8 49 c7 c1 c0 90 fd 96 e8 12 66 ff ff <0f> 0b 66 0f 1f 00 53 48 89 fb e8 03 2b 22 f7 48 c7 c7 80 99 bc 8a
RSP: 0018:ffffc900031c7880 EFLAGS: 00010246
RAX: 0000000000000069 RBX: ffffffff8c7b8419 RCX: f6bc1557e2d6c600
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900031c7970 R08: ffffc900031c7587 R09: 1ffff92000638eb0
R10: dffffc0000000000 R11: fffff52000638eb1 R12: ffffffff8abcdd40
R13: ffffc900031c78a0 R14: ffffffff8abcdd20 R15: ffff88802c588660
FS: 00005555644bb500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0000482f8 CR3: 0000000060d3d000 CR4: 00000000003506f0
Call Trace:
<TASK>
do_journal_end+0x3f66/0x4860 fs/reiserfs/journal.c:4156
reiserfs_sync_fs+0xd0/0x150 fs/reiserfs/super.c:78
sync_filesystem+0xea/0x220 fs/sync.c:56
generic_shutdown_super+0x6f/0x2b0 fs/super.c:666
kill_block_super+0x44/0x90 fs/super.c:1660
deactivate_locked_super+0x97/0x100 fs/super.c:481
cleanup_mnt+0x429/0x4c0 fs/namespace.c:1250
task_work_run+0x1ce/0x250 kernel/task_work.c:239
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xe6/0x110 kernel/entry/common.c:177
exit_to_user_mode_prepare+0xf6/0x180 kernel/entry/common.c:210
__syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline]
syscall_exit_to_user_mode+0x1a/0x50 kernel/entry/common.c:302
do_syscall_64+0x61/0xb0 arch/x86/entry/common.c:87
entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f084498fed7
Code: a8 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 a8 ff ff ff f7 d8 64 89 02 b8
RSP: 002b:00007fff4205f228 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 00007f0844a11c05 RCX: 00007f084498fed7
RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007fff4205f2e0
RBP: 00007fff4205f2e0 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007fff42060370
R13: 00007f0844a11c05 R14: 00000000000153a7 R15: 00007fff420603b0
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__reiserfs_panic+0x13e/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 40 90 bc 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 00 91 bc 8a 4c 89 fe 4c 89 f2 49 89 d8 49 c7 c1 c0 90 fd 96 e8 12 66 ff ff <0f> 0b 66 0f 1f 00 53 48 89 fb e8 03 2b 22 f7 48 c7 c7 80 99 bc 8a
RSP: 0018:ffffc900031c7880 EFLAGS: 00010246
RAX: 0000000000000069 RBX: ffffffff8c7b8419 RCX: f6bc1557e2d6c600
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc900031c7970 R08: ffffc900031c7587 R09: 1ffff92000638eb0
R10: dffffc0000000000 R11: fffff52000638eb1 R12: ffffffff8abcdd40
R13: ffffc900031c78a0 R14: ffffffff8abcdd20 R15: ffff88802c588660
FS: 00005555644bb500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fba2c422000 CR3: 0000000060d3d000 CR4: 00000000003506e0


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