[reiserfs?] kernel BUG in reiserfs_update_sd_size

5 views
Skip to first unread message

syzbot

unread,
Dec 25, 2022, 8:36:35 PM12/25/22
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c4215ee4771b Linux 4.14.302
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=15d749a8480000
kernel config: https://syzkaller.appspot.com/x/.config?x=4a9988fe055c9527
dashboard link: https://syzkaller.appspot.com/bug?extid=acad71e54b60e3117c8c
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=168a4d60480000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=121ec6e4480000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/c93ba055d204/disk-c4215ee4.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/bfbc929a33c1/vmlinux-c4215ee4.xz
kernel image: https://storage.googleapis.com/syzbot-assets/444658051770/bzImage-c4215ee4.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/353c5f0cf546/mount_0.gz

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

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


---
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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches
Reply all
Reply to author
Forward
0 new messages