syzbot


kernel BUG in reiserfs_in_journal

Status: upstream: reported C repro on 2023/04/12 19:31
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+4f14a27a1c6ce094fbcd@syzkaller.appspotmail.com
First crash: 952d, last: 25d
Fix commit to backport (bisect log) :
tree: upstream
commit fb6f20ecb121cef4d7946f834a6ee867c4e21b4a
Author: Jan Kara <jack@suse.cz>
Date: Thu Oct 17 10:28:23 2024 +0000

  reiserfs: The last commit

  
Fix bisection: failed (error log, bisect log)
  
Bug presence (3)
Date Name Commit Repro Result
2024/12/04 linux-6.1.y (ToT) e4d90d63d385 C [report] kernel BUG in reiserfs_in_journal
2023/09/22 upstream (ToT) 27bbf45eae9c C [report] kernel BUG in reiserfs_in_journal
2024/12/04 upstream (ToT) feffde684ac2 C Didn't crash
Similar bugs (5)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in reiserfs_in_journal -1 C 1 996d 1130d 0/1 upstream: reported C repro on 2022/10/16 08:57
linux-4.19 kernel BUG in reiserfs_in_journal reiserfs -1 C error 8 993d 1130d 0/1 upstream: reported C repro on 2022/10/16 07:52
linux-5.15 kernel BUG in reiserfs_in_journal missing-backport origin:upstream -1 C done 27 4d16h 940d 0/3 upstream: reported C repro on 2023/04/24 05:58
upstream kernel BUG in reiserfs_in_journal fs -1 C error done 179 667d 1131d 0/29 auto-obsoleted due to no activity on 2024/04/01 20:58
linux-6.6 kernel BUG in reiserfs_in_journal origin:lts-only -1 C inconclusive 5 54d 59d 0/2 upstream: reported C repro on 2025/09/22 04:09
Fix bisection attempts (11)
Created Duration User Patch Repo Result
2025/01/09 19:55 6h10m fix candidate upstream OK (1) job log
2024/10/15 01:51 0m bisect fix linux-6.1.y error job log
2024/09/10 09:54 1h04m bisect fix linux-6.1.y OK (0) job log log
2024/08/07 16:19 1h33m bisect fix linux-6.1.y OK (0) job log log
2024/06/28 05:57 1h21m bisect fix linux-6.1.y OK (0) job log log
2024/05/20 00:16 1h03m bisect fix linux-6.1.y OK (0) job log log
2024/02/22 22:54 1h15m bisect fix linux-6.1.y OK (0) job log log
2023/12/30 11:48 1h14m bisect fix linux-6.1.y OK (0) job log log
2023/11/30 09:04 1h13m bisect fix linux-6.1.y OK (0) job log log
2023/10/28 04:08 1h48m bisect fix linux-6.1.y OK (0) job log log
2023/09/02 09:38 1h36m bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
REISERFS (device loop0): journal params: device loop0, size 512, journal first block 18, max trans len 256, max batch 225, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using tea hash to sort names
REISERFS warning (device loop0): vs-13060 reiserfs_update_sd_size: stat data of object [1 2 0x0 SD] (nlink == 1) not found (pos 2)
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
------------[ cut here ]------------
kernel BUG at fs/reiserfs/journal.c:505!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 4429 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/02/2025
RIP: 0010:reiserfs_in_journal+0xa4a/0xa50 fs/reiserfs/journal.c:505
Code: 24 30 80 e2 07 80 c2 03 38 ca 0f 8c 73 fe ff ff 48 8b 7c 24 30 48 89 c3 e8 73 23 b9 ff 48 89 d8 e9 5e fe ff ff e8 66 f4 68 ff <0f> 0b 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 50 49 89 fc 48 bd
RSP: 0018:ffffc90003406fa8 EFLAGS: 00010293
RAX: ffffffff8217deaa RBX: ffff8880757c4000 RCX: ffff88807a348000
RDX: 0000000000000000 RSI: 0000000000000213 RDI: 0000000000000213
RBP: ffff8880757c4678 R08: ffffc900034070e0 R09: ffffed100b4fbc09
R10: ffffed100b4fbc09 R11: 1ffff1100b4fbc08 R12: ffffc9000343b048
R13: ffffc9000343b050 R14: dffffc0000000000 R15: 0000000000000213
FS:  0000555573c83500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000b000 CR3: 000000002b9e2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 is_block_in_journal fs/reiserfs/bitmap.c:125 [inline]
 scan_bitmap_block+0x486/0xde0 fs/reiserfs/bitmap.c:203
 scan_bitmap fs/reiserfs/bitmap.c:408 [inline]
 allocate_without_wrapping_disk fs/reiserfs/bitmap.c:1161 [inline]
 blocknrs_and_prealloc_arrays_from_search_start fs/reiserfs/bitmap.c:1274 [inline]
 reiserfs_allocate_blocknrs+0x370b/0x53b0 fs/reiserfs/bitmap.c:1375
 _allocate_block fs/reiserfs/inode.c:-1 [inline]
 reiserfs_get_block+0x266f/0x3ef0 fs/reiserfs/inode.c:756
 __block_write_begin_int+0x54b/0x1a70 fs/buffer.c:1991
 reiserfs_write_begin+0x206/0x4c0 fs/reiserfs/inode.c:2775
 generic_perform_write+0x2db/0x560 mm/filemap.c:3846
 __generic_file_write_iter+0x172/0x430 mm/filemap.c:3974
 generic_file_write_iter+0xab/0x2e0 mm/filemap.c:4006
 call_write_iter include/linux/fs.h:2265 [inline]
 new_sync_write fs/read_write.c:491 [inline]
 vfs_write+0x44c/0x960 fs/read_write.c:584
 ksys_write+0x143/0x240 fs/read_write.c:637
 do_syscall_x64 arch/x86/entry/common.c:51 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:81
 entry_SYSCALL_64_after_hwframe+0x68/0xd2
RIP: 0033:0x7f42c698efc9
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:00007fffe03a0bc8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f42c6be5fa0 RCX: 00007f42c698efc9
RDX: 000000000000fea7 RSI: 0000200000000080 RDI: 0000000000000005
RBP: 00007f42c6a11f91 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007f42c6be5fa0 R14: 00007f42c6be5fa0 R15: 0000000000000003
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:reiserfs_in_journal+0xa4a/0xa50 fs/reiserfs/journal.c:505
Code: 24 30 80 e2 07 80 c2 03 38 ca 0f 8c 73 fe ff ff 48 8b 7c 24 30 48 89 c3 e8 73 23 b9 ff 48 89 d8 e9 5e fe ff ff e8 66 f4 68 ff <0f> 0b 0f 1f 40 00 55 41 57 41 56 41 55 41 54 53 50 49 89 fc 48 bd
RSP: 0018:ffffc90003406fa8 EFLAGS: 00010293
RAX: ffffffff8217deaa RBX: ffff8880757c4000 RCX: ffff88807a348000
RDX: 0000000000000000 RSI: 0000000000000213 RDI: 0000000000000213
RBP: ffff8880757c4678 R08: ffffc900034070e0 R09: ffffed100b4fbc09
R10: ffffed100b4fbc09 R11: 1ffff1100b4fbc08 R12: ffffc9000343b048
R13: ffffc9000343b050 R14: dffffc0000000000 R15: 0000000000000213
FS:  0000555573c83500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000020000000b000 CR3: 000000002b9e2000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (22):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/10/25 13:13 linux-6.1.y 8e6e2188d949 c0460fcd .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-6-1-kasan kernel BUG in reiserfs_in_journal
2023/09/22 08:33 linux-6.1.y a356197db198 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in reiserfs_in_journal
2025/04/14 18:01 linux-6.1.y 420102835862 0bd6db41 .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 reiserfs_in_journal
2024/04/15 08:33 linux-6.1.y cd5d98c0556c c8349e48 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/03/03 06:17 linux-6.1.y a3eb3a74aa8c 25905f5d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/01/13 16:23 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/06/25 10:08 linux-6.1.y e84a4e368abe 79782afc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/09/22 10:59 linux-6.1.y a356197db198 0b6a67ac .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in reiserfs_in_journal
2025/08/25 07:03 linux-6.1.y 0bc96de781b4 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2025/08/24 08:49 linux-6.1.y 0bc96de781b4 bf27483f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2025/05/04 11:37 linux-6.1.y b6736e03756f b0714e37 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2025/04/14 17:27 linux-6.1.y 420102835862 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2025/02/17 01:03 linux-6.1.y 0cbb5f65e52f 40a34ec9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2025/01/31 15:21 linux-6.1.y 75cefdf153f5 4c6ac32f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2025/01/08 15:33 linux-6.1.y 7dc732d24ff7 f3558dbf .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2025/01/02 02:28 linux-6.1.y 563edd786f0a d3ccff63 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/04/08 19:34 linux-6.1.y 347385861c50 53df08b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/03/12 19:37 linux-6.1.y 61adba85cc40 c35c26ec .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2024/01/13 16:04 linux-6.1.y 7c58bfa711cb 551587c1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/10/30 02:46 linux-6.1.y 32c9cdbe383c 3c418d72 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/09/26 00:06 linux-6.1.y d23900f974e0 0b6a67ac .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
2023/04/12 19:29 linux-6.1.y 543aff194ab6 1a1596b6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_in_journal
* Struck through repros no longer work on HEAD.