[v5.15] kernel BUG in reiserfs_update_sd_size

0 views
Skip to first unread message

syzbot

unread,
Apr 10, 2023, 6:33:48 AM4/10/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d86dfc4d95cd Linux 5.15.106
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=134ae903c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=dca379fe384dda80
dashboard link: https://syzkaller.appspot.com/bug?extid=1d8952dadd354ddd7793
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2c159eb4fcae/disk-d86dfc4d.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/5f50187f87c7/vmlinux-d86dfc4d.xz
kernel image: https://storage.googleapis.com/syzbot-assets/f787f3f09c09/bzImage-d86dfc4d.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1d8952...@syzkaller.appspotmail.com

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: 10265 Comm: syz-executor.0 Not tainted 5.15.106-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/30/2023
RIP: 0010:__reiserfs_panic+0x13a/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 80 17 9b 8a 48 0f 44 c8 48 0f 44 d8 48 c7 c7 40 18 9b 8a 4c 89 fe 48 89 da 4d 89 f0 49 c7 c1 a0 43 4d 91 e8 af 1f 09 08 <0f> 0b 0f 1f 40 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4
RSP: 0018:ffffc90005eb7680 EFLAGS: 00010246
RAX: 00000000000000a6 RBX: ffffffff8a9acd00 RCX: 0fa966dee0a52f00
RDX: ffffc90002f61000 RSI: 000000000000ce56 RDI: 000000000000ce57
RBP: ffffc90005eb7770 R08: ffffffff816612ec R09: ffffed10173667a0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8a9acd20
R13: ffffc90005eb76a0 R14: ffffffff8c159188 R15: ffff88803bb5e6a8
FS: 00007f4e99436700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c037cad000 CR3: 000000005f444000 CR4: 00000000003506e0
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+0xfde/0x10b0 fs/reiserfs/inode.c:1505
reiserfs_update_sd fs/reiserfs/reiserfs.h:3099 [inline]
reiserfs_mkdir+0x758/0x8f0 fs/reiserfs/namei.c:877
xattr_mkdir fs/reiserfs/xattr.c:76 [inline]
create_privroot fs/reiserfs/xattr.c:889 [inline]
reiserfs_xattr_init+0x348/0x730 fs/reiserfs/xattr.c:1012
reiserfs_remount+0x12b8/0x18e0 fs/reiserfs/super.c:1588
reconfigure_super+0x3c5/0x7c0 fs/super.c:916
do_remount fs/namespace.c:2656 [inline]
path_mount+0xceb/0x10a0 fs/namespace.c:3316
do_mount fs/namespace.c:3337 [inline]
__do_sys_mount fs/namespace.c:3545 [inline]
__se_sys_mount+0x2d5/0x3c0 fs/namespace.c:3522
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f4e9aec569a
Code: 48 c7 c2 b8 ff ff ff f7 d8 64 89 02 b8 ff ff ff ff eb d2 e8 b8 04 00 00 0f 1f 84 00 00 00 00 00 49 89 ca b8 a5 00 00 00 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:00007f4e99435f88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f4e9aec569a
RDX: 00000000200000c0 RSI: 0000000020000100 RDI: 0000000000000000
RBP: 00007f4e99436020 R08: 00007f4e99436020 R09: 0000000001a484bc
R10: 0000000001a484bc R11: 0000000000000202 R12: 00000000200000c0
R13: 0000000020000100 R14: 00007f4e99435fe0 R15: 0000000020000e80
</TASK>
Modules linked in:
---[ end trace eacfd73b373cd728 ]---
RIP: 0010:__reiserfs_panic+0x13a/0x140 fs/reiserfs/prints.c:390
Code: c7 c1 80 17 9b 8a 48 0f 44 c8 48 0f 44 d8 48 c7 c7 40 18 9b 8a 4c 89 fe 48 89 da 4d 89 f0 49 c7 c1 a0 43 4d 91 e8 af 1f 09 08 <0f> 0b 0f 1f 40 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83 e4
RSP: 0018:ffffc90005eb7680 EFLAGS: 00010246
RAX: 00000000000000a6 RBX: ffffffff8a9acd00 RCX: 0fa966dee0a52f00
RDX: ffffc90002f61000 RSI: 000000000000ce56 RDI: 000000000000ce57
RBP: ffffc90005eb7770 R08: ffffffff816612ec R09: ffffed10173667a0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8a9acd20
R13: ffffc90005eb76a0 R14: ffffffff8c159188 R15: ffff88803bb5e6a8
FS: 00007f4e99436700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000555555912888 CR3: 000000005f444000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Jun 18, 2023, 7:05:45 PM6/18/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 471e639e59d1 Linux 5.15.117
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13332697280000
kernel config: https://syzkaller.appspot.com/x/.config?x=eeb4064efec7aa39
dashboard link: https://syzkaller.appspot.com/bug?extid=1d8952dadd354ddd7793
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1253d65b280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16b373cf280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/2e7359ecba67/disk-471e639e.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/ef6d17e44bc3/vmlinux-471e639e.xz
kernel image: https://storage.googleapis.com/syzbot-assets/99b68dbd7e00/Image-471e639e.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/16da09c5a727/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+1d8952...@syzkaller.appspotmail.com

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 ]---


---
If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.
Reply all
Reply to author
Forward
0 new messages