syzbot


kernel BUG in reiserfs_update_sd_size

Status: upstream: reported C repro on 2022/12/26 01:36
Subsystems: reiserfs
[Documentation on labels]
Reported-by: syzbot+acad71e54b60e3117c8c@syzkaller.appspotmail.com
First crash: 540d, last: 472d
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 kernel BUG at fs/reiserfs/journal.c:LINE! reiserfs C error 139 479d 1366d 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 157d 544d 0/27 auto-obsoleted due to no activity on 2024/04/22 14:33
linux-5.15 kernel BUG in reiserfs_update_sd_size origin:upstream C error 5 36d 435d 0/3 upstream: reported C repro on 2023/04/10 10:33
linux-6.1 kernel BUG in reiserfs_update_sd_size origin:upstream C 4 25d 365d 0/3 upstream: reported C repro on 2023/06/18 21:59
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/03/03 21:53 23m bisect fix linux-4.14.y job log (0) log
2023/02/01 17:22 27m bisect fix linux-4.14.y job log (0) 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 r5 hash to sort names
REISERFS panic (device loop0): vs-13065 update_stat_data: key [1 2 0x0 DIRECT], found item *3.6* [1 2 0x0 DIRECT], item_len 44, item_location 4052, free_space(entry_count) 0
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 7961 Comm: syz-executor392 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b4ffe580 task.stack: ffff888096770000
RIP: 0010:__reiserfs_panic.cold+0x37/0x8a fs/reiserfs/prints.c:390
RSP: 0018:ffff888096777740 EFLAGS: 00010297
RAX: ffff8880b4ffe580 RBX: ffff8880b34b8740 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bd020 RDI: ffffed1012ceeede
RBP: ffff8880967777f0 R08: 00000000000000ad R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff8796ddc0
R13: ffffffff8796e920 R14: ffffffff87974280 R15: 0000000000000002
FS:  0000555556ee7300(0000) GS:ffff8880ba500000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055ac13269160 CR3: 00000000ad80f000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 update_stat_data fs/reiserfs/inode.c:1433 [inline]
 reiserfs_update_sd_size+0x714/0xa70 fs/reiserfs/inode.c:1506
 reiserfs_update_sd fs/reiserfs/reiserfs.h:3101 [inline]
 reiserfs_mkdir+0x608/0x8b0 fs/reiserfs/namei.c:873
 create_privroot fs/reiserfs/xattr.c:880 [inline]
 reiserfs_xattr_init+0x393/0xa50 fs/reiserfs/xattr.c:1002
 reiserfs_fill_super+0x1d4a/0x2990 fs/reiserfs/super.c:2188
 mount_bdev+0x2b3/0x360 fs/super.c:1134
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f94daf66afa
RSP: 002b:00007ffd1b99d6c8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f94daf66afa
RDX: 0000000020000000 RSI: 0000000020000040 RDI: 00007ffd1b99d6e0
RBP: 00007ffd1b99d6e0 R08: 00007ffd1b99d720 R09: 0000000000001105
R10: 0000000000208000 R11: 0000000000000286 R12: 0000000000000004
R13: 0000555556ee72c0 R14: 0000000000208000 R15: 00007ffd1b99d720
Code: 42 97 87 74 6d e8 16 65 50 fa 4c 89 e9 4c 89 f2 4c 89 e6 49 c7 c0 c0 f8 f3 8b 48 c7 c7 40 44 97 87 e8 84 43 fe ff e8 f5 64 50 fa <0f> 0b e8 ee 64 50 fa 4d 85 e4 49 c7 c6 80 42 97 87 75 0a 49 c7 
RIP: __reiserfs_panic.cold+0x37/0x8a fs/reiserfs/prints.c:390 RSP: ffff888096777740
---[ end trace f3754116108c6fbf ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/26 01:35 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 kernel BUG in reiserfs_update_sd_size
* Struck through repros no longer work on HEAD.