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: 1222d, last: 24d
▶
▼
Last patch testing requests (10)
▶
▼
Fix bisection attempts (2)
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: 0 PID: 4359 Comm: syz.0.17 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/18/2026
RIP: 0010:__reiserfs_panic+0x167/0x170 fs/reiserfs/prints.c:390
Code: 60 66 3b 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 20 67 3b 8a 4c 89 fe 4c 89 f2 4c 8b 44 24 10 49 c7 c1 20 1e 40 96 e8 79 4e ff ff <0f> 0b 0f 1f 80 00 00 00 00 53 48 89 fb e8 a7 52 c6 f7 48 c7 c7 e0
RSP: 0018:ffffc9000406f600 EFLAGS: 00010246
RAX: 00000000000000a6 RBX: 1ffff9200080dec4 RCX: 53aad88e6945bf00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000406f710 R08: ffff8880b9033d7f R09: 1ffff110172067af
R10: dffffc0000000000 R11: ffffed10172067b0 R12: ffffc9000406f640
R13: dffffc0000000000 R14: ffffffff8a3b1b80 R15: ffff88807aa2a6a8
FS: 000055556563e500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fefec7db000 CR3: 0000000025c12000 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+0xd92/0xe10 fs/reiserfs/inode.c:1505
reiserfs_update_sd fs/reiserfs/reiserfs.h:3099 [inline]
reiserfs_mkdir+0x755/0x920 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+0x1fe6/0x2440 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:3034
do_mount fs/namespace.c:3377 [inline]
__do_sys_mount fs/namespace.c:3585 [inline]
__se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3562
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:0x7fa88b5d40ca
Code: 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff c3 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffd39036af8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd39036b80 RCX: 00007fa88b5d40ca
RDX: 0000200000000000 RSI: 00002000000000c0 RDI: 00007ffd39036b40
RBP: 0000200000000000 R08: 00007ffd39036b80 R09: 0000000000008488
R10: 0000000000008488 R11: 0000000000000246 R12: 00002000000000c0
R13: 00007ffd39036b40 R14: 00000000000010fd R15: 0000200000000780
</TASK>
Modules linked in:
---[ end trace 97547a1786684c91 ]---
RIP: 0010:__reiserfs_panic+0x167/0x170 fs/reiserfs/prints.c:390
Code: 60 66 3b 8a 48 0f 44 c8 4c 0f 44 f0 48 c7 c7 20 67 3b 8a 4c 89 fe 4c 89 f2 4c 8b 44 24 10 49 c7 c1 20 1e 40 96 e8 79 4e ff ff <0f> 0b 0f 1f 80 00 00 00 00 53 48 89 fb e8 a7 52 c6 f7 48 c7 c7 e0
RSP: 0018:ffffc9000406f600 EFLAGS: 00010246
RAX: 00000000000000a6 RBX: 1ffff9200080dec4 RCX: 53aad88e6945bf00
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: ffffc9000406f710 R08: ffff8880b9033d7f R09: 1ffff110172067af
R10: dffffc0000000000 R11: ffffed10172067b0 R12: ffffc9000406f640
R13: dffffc0000000000 R14: ffffffff8a3b1b80 R15: ffff88807aa2a6a8
FS: 000055556563e500(0000) GS:ffff8880b9000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fefec7db000 CR3: 0000000025c12000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.