syzbot


kernel BUG in reiserfs_update_sd_size

Status: upstream: reported C repro on 2023/04/10 10:33
Bug presence: origin:upstream
[Documentation on labels]
Reported-by: syzbot+1d8952dadd354ddd7793@syzkaller.appspotmail.com
First crash: 375d, last: 228d
Fix bisection: failed (error log, bisect log)
  
Bug presence (1)
Date Name Commit Repro Result
2023/06/19 upstream (ToT) 45a3e24f65e9 C [report] kernel BUG in reiserfs_update_sd_size
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in reiserfs_update_sd_size reiserfs C 1 413d 481d 0/1 upstream: reported C repro on 2022/12/26 01:36
linux-4.19 kernel BUG at fs/reiserfs/journal.c:LINE! reiserfs C error 139 420d 1307d 0/1 upstream: reported C repro on 2020/09/21 00:32
upstream kernel BUG in reiserfs_update_sd_size reiserfs C error done 32 97d 485d 0/26 upstream: reported C repro on 2022/12/21 23:39
linux-6.1 kernel BUG in reiserfs_update_sd_size origin:upstream C 4 33d 306d 0/3 upstream: reported C repro on 2023/06/18 21:59

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!
Internal error: Oops - BUG: 0 [#1] PREEMPT SMP
Modules linked in:
CPU: 1 PID: 3962 Comm: syz-executor435 Not tainted 5.15.117-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : __reiserfs_panic+0x150/0x154 fs/reiserfs/prints.c:384
lr : __reiserfs_panic+0x150/0x154 fs/reiserfs/prints.c:384
sp : ffff800018f27220
x29: ffff800018f272e0 x28: dfff800000000000 x27: ffff0000df442740
x26: ffff800018f273e8 x25: ffff0000df442740 x24: ffff800018f272a0
x23: ffff800018f27260 x22: ffff800011b948a0 x21: ffff0000c8bb8000
x20: ffff800011b94880 x19: ffff80001402da57 x18: 0000000000000001
x17: ff80800008335ea8 x16: ffff8000119534fc x15: ffff800008335ea8
x14: 00000000ffffffff x13: ffffffffffffffff x12: 0000000000000000
x11: ff8080000832d950 x10: 0000000000000000 x9 : 3bfbfa3c61bef300
x8 : 3bfbfa3c61bef300 x7 : 0000000000000001 x6 : 0000000000000001
x5 : ffff800018f26998 x4 : ffff8000149cfca0 x3 : ffff80000854dc88
x2 : 0000000000000001 x1 : 0000000100000000 x0 : 00000000000000a6
Call trace:
 __reiserfs_panic+0x150/0x154 fs/reiserfs/prints.c:384
 update_stat_data fs/reiserfs/inode.c:1432 [inline]
 reiserfs_update_sd_size+0xd00/0xdb8 fs/reiserfs/inode.c:1505
 reiserfs_update_sd fs/reiserfs/reiserfs.h:3099 [inline]
 reiserfs_mkdir+0x60c/0x77c fs/reiserfs/namei.c:877
 xattr_mkdir fs/reiserfs/xattr.c:76 [inline]
 create_privroot fs/reiserfs/xattr.c:889 [inline]
 reiserfs_xattr_init+0x2b0/0x6dc fs/reiserfs/xattr.c:1012
 reiserfs_fill_super+0x1b28/0x1e8c fs/reiserfs/super.c:2179
 mount_bdev+0x274/0x370 fs/super.c:1378
 get_super_block+0x44/0x58 fs/reiserfs/super.c:2608
 legacy_get_tree+0xd4/0x16c fs/fs_context.c:610
 vfs_get_tree+0x90/0x274 fs/super.c:1508
 do_new_mount+0x25c/0x8c4 fs/namespace.c:2994
 path_mount+0x590/0x104c fs/namespace.c:3324
 do_mount fs/namespace.c:3337 [inline]
 __do_sys_mount fs/namespace.c:3545 [inline]
 __se_sys_mount fs/namespace.c:3522 [inline]
 __arm64_sys_mount+0x510/0x5e0 fs/namespace.c:3522
 __invoke_syscall arch/arm64/kernel/syscall.c:38 [inline]
 invoke_syscall+0x98/0x2b8 arch/arm64/kernel/syscall.c:52
 el0_svc_common+0x138/0x258 arch/arm64/kernel/syscall.c:142
 do_el0_svc+0x58/0x14c arch/arm64/kernel/syscall.c:181
 el0_svc+0x7c/0x1f0 arch/arm64/kernel/entry-common.c:596
 el0t_64_sync_handler+0x84/0xe4 arch/arm64/kernel/entry-common.c:614
 el0t_64_sync+0x1a0/0x1a4 arch/arm64/kernel/entry.S:584
Code: b007c285 912800a5 aa1303e4 95c9c5ed (d4210000) 
---[ end trace 5a4a8db0a6275791 ]---

Crashes (4):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
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
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
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.