syzbot


kernel BUG in reiserfs_update_sd_size

Status: upstream: reported C repro on 2023/04/10 10:33
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+1d8952dadd354ddd7793@syzkaller.appspotmail.com
First crash: 915d, last: 9d11h
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/11 linux-5.15.y (ToT) 0a51d2d4527b C [report] kernel BUG in reiserfs_update_sd_size
2024/09/10 upstream (ToT) bc83b4d1f086 C [report] kernel BUG in reiserfs_update_sd_size
2024/12/11 upstream (ToT) f92f4749861b C Didn't crash
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in reiserfs_update_sd_size reiserfs -1 C 1 953d 1021d 0/1 upstream: reported C repro on 2022/12/26 01:36
linux-4.19 kernel BUG at fs/reiserfs/journal.c:LINE! reiserfs -1 C error 139 960d 1847d 0/1 upstream: reported C repro on 2020/09/21 00:32
upstream kernel BUG in reiserfs_update_sd_size fs -1 C error done 32 637d 1025d 0/29 auto-obsoleted due to no activity on 2024/04/22 14:33
linux-6.1 kernel BUG in reiserfs_update_sd_size origin:upstream missing-backport -1 C done 4 298d 846d 0/3 upstream: reported C repro on 2023/06/18 21:59
Last patch testing requests (10)
Created Duration User Patch Repo Result
2025/10/02 20:00 14m retest repro linux-5.15.y report log
2025/09/17 02:21 14m retest repro linux-5.15.y report log
2025/08/26 12:51 14m retest repro linux-5.15.y report log
2025/08/26 12:51 12m retest repro linux-5.15.y report log
2025/08/08 08:59 50m retest repro linux-5.15.y report log
2025/08/08 08:59 12m retest repro linux-5.15.y report log
2025/07/12 04:32 10m retest repro linux-5.15.y report log
2025/06/11 21:00 13m retest repro linux-5.15.y report log
2025/06/11 21:00 10m retest repro linux-5.15.y report log
2025/05/27 08:48 11m retest repro linux-5.15.y report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2025/03/11 15:36 8h27m fix candidate upstream OK (1) job log
2023/10/12 15:16 7m bisect fix linux-5.15.y error job 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 panic (device loop0): vs-13065 update_stat_data: key [1 2 0x0 SD], found item *3.5*[1 2 0(0) DIR], item_len 80, item_location 3972, free_space(entry_count) 3
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 4308 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2025
RIP: 0010:__reiserfs_panic+0x13a/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 c0 31 1b 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 80 32 1b 8a 4c 89 fe 4c 89 f2 49 89 d8 49 c7 c1 e0 6d 1e 96 e8 16 52 ff ff <0f> 0b 0f 1f 40 00 53 48 89 fb e8 b7 ad d8 f7 48 c7 c7 40 3b 1b 8a
RSP: 0018:ffffc9000306f660 EFLAGS: 00010246
RAX: 00000000000000a6 RBX: ffffffff8baaece2 RCX: 1cd27c019dde6100
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000306f750 R08: dffffc0000000000 R09: ffffed10172067a8
R10: ffffed10172067a8 R11: 1ffff110172067a7 R12: ffffffff8a1ae760
R13: ffffc9000306f680 R14: ffffffff8a1ae740 R15: ffff88807eb3a6a8
FS:  00005555850a0500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe3fcddcd4 CR3: 0000000022456000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 update_stat_data fs/reiserfs/inode.c:1432 [inline]
 reiserfs_update_sd_size+0xdb0/0xe30 fs/reiserfs/inode.c:1505
 reiserfs_update_sd fs/reiserfs/reiserfs.h:3099 [inline]
 reiserfs_mkdir+0x737/0x970 fs/reiserfs/namei.c:877
 xattr_mkdir fs/reiserfs/xattr.c:76 [inline]
 create_privroot fs/reiserfs/xattr.c:889 [inline]
 reiserfs_xattr_init+0x331/0x720 fs/reiserfs/xattr.c:1012
 reiserfs_fill_super+0x1fa6/0x23e0 fs/reiserfs/super.c:2179
 mount_bdev+0x287/0x3c0 fs/super.c:1400
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:611
 vfs_get_tree+0x88/0x270 fs/super.c:1530
 do_new_mount+0x24a/0xa40 fs/namespace.c:3025
 do_mount fs/namespace.c:3368 [inline]
 __do_sys_mount fs/namespace.c:3576 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3553
 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:0x7f7c9636c38a
Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007ffc65d49e58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc65d49ee0 RCX: 00007f7c9636c38a
RDX: 0000200000001100 RSI: 0000200000001140 RDI: 00007ffc65d49ea0
RBP: 0000200000001100 R08: 00007ffc65d49ee0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000200000001140
R13: 00007ffc65d49ea0 R14: 00000000000010ef R15: 0000200000001180
 </TASK>
Modules linked in:
---[ end trace 0377c637c599c448 ]---
RIP: 0010:__reiserfs_panic+0x13a/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 c0 31 1b 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 80 32 1b 8a 4c 89 fe 4c 89 f2 49 89 d8 49 c7 c1 e0 6d 1e 96 e8 16 52 ff ff <0f> 0b 0f 1f 40 00 53 48 89 fb e8 b7 ad d8 f7 48 c7 c7 40 3b 1b 8a
RSP: 0018:ffffc9000306f660 EFLAGS: 00010246
RAX: 00000000000000a6 RBX: ffffffff8baaece2 RCX: 1cd27c019dde6100
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000306f750 R08: dffffc0000000000 R09: ffffed10172067a8
R10: ffffed10172067a8 R11: 1ffff110172067a7 R12: ffffffff8a1ae760
R13: ffffc9000306f680 R14: ffffffff8a1ae740 R15: ffff88807eb3a6a8
FS:  00005555850a0500(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007efede93c000 CR3: 0000000022456000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/08/31 08:34 linux-5.15.y 01879f56bdde 807a3b61 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (clean fs)] ci2-linux-5-15-kasan kernel BUG in reiserfs_update_sd_size
2025/02/26 03:44 linux-5.15.y c16c81c81336 d34966d1 .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro (corrupt fs)] ci2-linux-5-15-kasan kernel BUG in reiserfs_update_sd_size
2024/09/09 01:28 linux-5.15.y 14e468424d3e 9750182a .config console log report syz / log C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in reiserfs_update_sd_size
2023/07/31 11:51 linux-5.15.y 09996673e313 2a0d0f29 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in reiserfs_update_sd_size
2024/05/13 03:20 linux-5.15.y 284087d4f7d5 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in reiserfs_update_sd_size
2023/06/18 23:04 linux-5.15.y 471e639e59d1 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in reiserfs_update_sd_size
2025/02/26 03:30 linux-5.15.y c16c81c81336 d34966d1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in reiserfs_update_sd_size
2024/09/09 01:18 linux-5.15.y 14e468424d3e 9750182a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in reiserfs_update_sd_size
2025/04/14 05:53 linux-5.15.y f7347f400572 0bd6db41 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in reiserfs_update_sd_size
2023/09/05 00:41 linux-5.15.y 8f790700c974 db3306a6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in reiserfs_update_sd_size
2023/04/10 10:33 linux-5.15.y d86dfc4d95cd 71147e29 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in reiserfs_update_sd_size
* Struck through repros no longer work on HEAD.