syzbot


kernel BUG in reiserfs_update_sd_size

Status: upstream: reported C repro on 2023/06/18 21:59
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+355f69812c866c9c66f8@syzkaller.appspotmail.com
First crash: 937d, last: 22d
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: the issue occurs on the latest tested release (bisect log)
Crash: kernel BUG in reiserfs_update_sd_size (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2024/12/17 linux-6.1.y (ToT) 52f863f820fd C [report] kernel BUG in reiserfs_update_sd_size
2023/09/16 upstream (ToT) 57d88e8a5974 C [report] kernel BUG in reiserfs_update_sd_size
2024/12/17 upstream (ToT) aef25be35d23 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 1044d 1112d 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 1051d 1938d 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 729d 1116d 0/29 auto-obsoleted due to no activity on 2024/04/22 14:33
linux-5.15 kernel BUG in reiserfs_update_sd_size missing-backport origin:upstream -1 C done 11 15d 1007d 0/3 upstream: reported C repro on 2023/04/10 10:33
Fix bisection attempts (14)
Created Duration User Patch Repo Result
2025/01/04 08:25 5h52m fix candidate upstream OK (1) job log
2024/11/19 23:26 2h04m bisect fix linux-6.1.y OK (0) job log log
2024/10/19 09:18 2h37m bisect fix linux-6.1.y OK (0) job log log
2024/09/17 19:21 1h55m bisect fix linux-6.1.y OK (0) job log log
2024/08/14 02:00 5h44m bisect fix linux-6.1.y OK (0) job log log
2024/07/02 09:42 3h01m bisect fix linux-6.1.y OK (0) job log log
2024/05/24 03:52 1h12m bisect fix linux-6.1.y OK (0) job log log
2024/04/20 11:06 1h17m bisect fix linux-6.1.y OK (0) job log log
2024/03/02 07:17 1h08m bisect fix linux-6.1.y OK (0) job log log
2024/01/25 03:36 1h11m bisect fix linux-6.1.y OK (0) job log log
2023/12/25 09:39 1h00m bisect fix linux-6.1.y OK (0) job log log
2023/11/24 06:35 1h39m bisect fix linux-6.1.y OK (0) job log log
2023/10/20 22:03 1h26m bisect fix linux-6.1.y OK (0) job log log
2023/08/07 12:09 4h06m (2) bisect fix linux-6.1.y OK (0) job log log

Sample crash report:
REISERFS (device loop0): Using r5 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: 1 PID: 4420 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_panic+0x13a/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 c0 46 7e 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 80 47 7e 8a 4c 89 fe 4c 89 f2 49 89 d8 49 c7 c1 00 90 b5 96 e8 76 83 ff ff <0f> 0b 0f 1f 40 00 53 48 89 fb e8 27 fd 7a f7 48 c7 c7 00 50 7e 8a
RSP: 0018:ffffc90003237660 EFLAGS: 00010246
RAX: 00000000000000a6 RBX: ffffffff8c2baa54 RCX: b6f695a0c37f6300
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90003237750 R08: dffffc0000000000 R09: fffff52000646e6d
R10: fffff52000646e6d R11: 1ffff92000646e6c R12: ffffffff8a7dfb20
R13: ffffc90003237680 R14: ffffffff8a7dfb00 R15: ffff8880793926a8
FS:  000055558f3e6500(0000) GS:ffff8880b8f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f21c577c000 CR3: 0000000029925000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 update_stat_data fs/reiserfs/inode.c:1424 [inline]
 reiserfs_update_sd_size+0xdb0/0xe30 fs/reiserfs/inode.c:1497
 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:882 [inline]
 reiserfs_xattr_init+0x331/0x720 fs/reiserfs/xattr.c:1005
 reiserfs_fill_super+0x1f81/0x2340 fs/reiserfs/super.c:2175
 mount_bdev+0x287/0x3c0 fs/super.c:1443
 legacy_get_tree+0xe6/0x180 fs/fs_context.c:632
 vfs_get_tree+0x88/0x270 fs/super.c:1573
 do_new_mount+0x24a/0xa40 fs/namespace.c:3078
 do_mount fs/namespace.c:3421 [inline]
 __do_sys_mount fs/namespace.c:3629 [inline]
 __se_sys_mount+0x2d6/0x3c0 fs/namespace.c:3606
 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:0x7f1aacf90eea
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:00007ffd723f9558 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd723f95e0 RCX: 00007f1aacf90eea
RDX: 0000200000000100 RSI: 0000200000000180 RDI: 00007ffd723f95a0
RBP: 0000200000000100 R08: 00007ffd723f95e0 R09: 0000000000008488
R10: 0000000000008488 R11: 0000000000000246 R12: 0000200000000180
R13: 00007ffd723f95a0 R14: 0000000000001104 R15: 00002000000000c0
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__reiserfs_panic+0x13a/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 c0 46 7e 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 80 47 7e 8a 4c 89 fe 4c 89 f2 49 89 d8 49 c7 c1 00 90 b5 96 e8 76 83 ff ff <0f> 0b 0f 1f 40 00 53 48 89 fb e8 27 fd 7a f7 48 c7 c7 00 50 7e 8a
RSP: 0018:ffffc90003237660 EFLAGS: 00010246
RAX: 00000000000000a6 RBX: ffffffff8c2baa54 RCX: b6f695a0c37f6300
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc90003237750 R08: dffffc0000000000 R09: fffff52000646e6d
R10: fffff52000646e6d R11: 1ffff92000646e6c R12: ffffffff8a7dfb20
R13: ffffc90003237680 R14: ffffffff8a7dfb00 R15: ffff8880793926a8
FS:  000055558f3e6500(0000) GS:ffff8880b8e00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f21c577e000 CR3: 0000000029925000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (6):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2025/12/19 20:52 linux-6.1.y 50cbba13faa2 d6526ea3 .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_update_sd_size
2023/09/15 22:45 linux-6.1.y 09045dae0d90 0b6a67ac .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan kernel BUG in reiserfs_update_sd_size
2024/03/18 09:17 linux-6.1.y d7543167affd d615901c .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_update_sd_size
2023/06/18 22:17 linux-6.1.y ca87e77a2ef8 f3921d4d .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_update_sd_size
2025/12/19 19:40 linux-6.1.y 50cbba13faa2 d6526ea3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan kernel BUG in reiserfs_update_sd_size
2023/06/18 21:58 linux-6.1.y ca87e77a2ef8 f3921d4d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-6-1-kasan-arm64 kernel BUG in reiserfs_update_sd_size
* Struck through repros no longer work on HEAD.