syzbot
kernel BUG in balance_leaf
Status:
fixed on 2024/01/30 15:47
Subsystems:
fs
[Documentation on labels]
Reported-by: syzbot+6a0877ace12bfad107fc@syzkaller.appspotmail.com
Fix commit:
6f861765464f
fs: Block writes to mounted block devices
First crash: 1313d, last: 957d
▶
▼
Last patch testing requests (10)
▶
▼
Fix bisection attempts (6)
Sample crash report:
REISERFS (device loop0): Using r5 hash to sort names
REISERFS (device loop0): Created .reiserfs_priv - reserved for xattr storage.
REISERFS panic (device loop0): vs-12195 balance_leaf: CFR not initialized
------------[ cut here ]------------
kernel BUG at fs/reiserfs/prints.c:390!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 5185 Comm: syz-executor752 Not tainted 6.2.0-syzkaller-12017-g1ec35eadc3b4 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/16/2023
RIP: 0010:__reiserfs_panic+0xf7/0x150 fs/reiserfs/prints.c:390
Code: 65 ff 4d 89 e8 4c 89 f1 4c 89 e2 48 8d b3 a8 06 00 00 49 c7 c1 20 ee eb 91 48 c7 c7 40 b6 61 8a e8 be 8e 49 ff e8 29 eb 65 ff <0f> 0b 49 c7 c6 a0 b4 61 8a 4d 89 f4 eb c5 e8 16 eb 65 ff 4d 85 e4
RSP: 0018:ffffc90004a0ed48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071580000 RCX: 0000000000000000
RDX: ffff888026750000 RSI: ffffffff821f1737 RDI: 0000000000000005
RBP: ffffc90004a0ee18 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffffffff8a612c20
R13: ffffffff8a613600 R14: ffffffff8a61b4e0 R15: 0000000000000000
FS: 00007f9999ebc700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9999f51c60 CR3: 0000000076745000 CR4: 0000000000350ee0
Call Trace:
<TASK>
balance_leaf+0xd35f/0xddc0 fs/reiserfs/do_balan.c:1439
do_balance+0x319/0x810 fs/reiserfs/do_balan.c:1888
reiserfs_insert_item+0xd84/0x11a0 fs/reiserfs/stree.c:2261
reiserfs_new_inode+0xe55/0x2190 fs/reiserfs/inode.c:2054
reiserfs_create+0x351/0x730 fs/reiserfs/namei.c:668
lookup_open.isra.0+0x105a/0x1400 fs/namei.c:3416
open_last_lookups fs/namei.c:3484 [inline]
path_openat+0x975/0x2750 fs/namei.c:3712
do_filp_open+0x1ba/0x410 fs/namei.c:3742
do_sys_openat2+0x16d/0x4c0 fs/open.c:1312
do_sys_open fs/open.c:1328 [inline]
__do_sys_openat fs/open.c:1344 [inline]
__se_sys_openat fs/open.c:1339 [inline]
__x64_sys_openat+0x143/0x1f0 fs/open.c:1339
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9999f10589
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f9999ebc2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000101
RAX: ffffffffffffffda RBX: 00007f9999f967a0 RCX: 00007f9999f10589
RDX: 0000000000000241 RSI: 0000000020000000 RDI: 00000000ffffff9c
RBP: 00007f9999f632b0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f9999f631b8
R13: 0030656c69662f2e R14: 7366726573696572 R15: 00007f9999f967a8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:__reiserfs_panic+0xf7/0x150 fs/reiserfs/prints.c:390
Code: 65 ff 4d 89 e8 4c 89 f1 4c 89 e2 48 8d b3 a8 06 00 00 49 c7 c1 20 ee eb 91 48 c7 c7 40 b6 61 8a e8 be 8e 49 ff e8 29 eb 65 ff <0f> 0b 49 c7 c6 a0 b4 61 8a 4d 89 f4 eb c5 e8 16 eb 65 ff 4d 85 e4
RSP: 0018:ffffc90004a0ed48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff888071580000 RCX: 0000000000000000
RDX: ffff888026750000 RSI: ffffffff821f1737 RDI: 0000000000000005
RBP: ffffc90004a0ee18 R08: 0000000000000005 R09: 0000000000000000
R10: 0000000080000000 R11: 0000000000000000 R12: ffffffff8a612c20
R13: ffffffff8a613600 R14: ffffffff8a61b4e0 R15: 0000000000000000
FS: 00007f9999ebc700(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f9999f51c60 CR3: 0000000076745000 CR4: 0000000000350ee0
* Struck through repros no longer work on HEAD.