syzbot


general protection fault in open_xa_dir

Status: fixed on 2020/10/22 20:19
Reported-by: syzbot+c8034d963b9b582ac547@syzkaller.appspotmail.com
Fix commit: e2b6b34324c4 reiserfs: Fix oops during mount
First crash: 1541d, last: 1541d
Fix bisection: fixed by (bisect log) :
commit e2b6b34324c44944051bc11477ecf2b3a45ec0f4
Author: Jan Kara <jack@suse.cz>
Date: Wed Sep 30 15:08:20 2020 +0000

  reiserfs: Fix oops during mount

  
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream BUG: unable to handle kernel paging request in open_xa_dir reiserfs C 82 601d 827d 0/28 auto-obsoleted due to no activity on 2023/08/18 00:17
upstream general protection fault in open_xa_dir reiserfs C done 3 1521d 1532d 15/28 fixed on 2020/11/16 12:12
linux-6.1 general protection fault in open_xa_dir 9 140d 140d 0/3 auto-obsoleted due to no activity on 2024/11/01 02:44
upstream general protection fault in open_xa_dir (2) reiserfs 1 980d 976d 0/28 auto-closed as invalid on 2022/07/04 17:03
linux-4.19 general protection fault in open_xa_dir C unreliable 1 1533d 1533d 0/1 upstream: reported C repro on 2020/09/30 05:05

Sample crash report:
REISERFS (device loop0): journal params: device loop0, size 8192, journal first block 18, max trans len 1024, max batch 900, max commit age 30, max trans age 30
REISERFS (device loop0): checking transaction log (loop0)
REISERFS (device loop0): Using tea hash to sort names
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 6362 Comm: syz-executor923 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888084600440 task.stack: ffff888092890000
RIP: 0010:d_really_is_negative include/linux/dcache.h:470 [inline]
RIP: 0010:open_xa_root fs/reiserfs/xattr.c:124 [inline]
RIP: 0010:open_xa_dir+0xdf/0x600 fs/reiserfs/xattr.c:152
RSP: 0018:ffff8880928977f8 EFLAGS: 00010202
RAX: ffff88809754ac80 RBX: ffff88807c811748 RCX: 000000000000000b
RDX: dffffc0000000000 RSI: 0000000000000002 RDI: ffff8880862baf48
RBP: ffff8880862bad80 R08: ffff88809754b300 R09: 0000000000000002
R10: 0000000000000000 R11: ffff888084600440 R12: 1ffff11012512f01
R13: 0000000000000000 R14: 0000000000000002 R15: 0000000000000058
FS:  0000000002144880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557769261970 CR3: 000000009fdea000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 xattr_lookup+0x1f/0x350 fs/reiserfs/xattr.c:395
 reiserfs_xattr_get+0x8b/0x840 fs/reiserfs/xattr.c:668
 reiserfs_get_acl+0x48/0x520 fs/reiserfs/xattr_acl.c:209
 get_acl fs/posix_acl.c:140 [inline]
 get_acl+0x11f/0x210 fs/posix_acl.c:95
 check_acl fs/namei.c:277 [inline]
 acl_permission_check fs/namei.c:301 [inline]
 generic_permission+0x31e/0x3c0 fs/namei.c:339
 reiserfs_permission+0x53/0x70 fs/reiserfs/xattr.c:944
 do_inode_permission fs/namei.c:384 [inline]
 __inode_permission+0x1f1/0x2f0 fs/namei.c:426
 inode_permission fs/namei.c:476 [inline]
 lookup_one_len+0x25d/0x3a0 fs/namei.c:2535
 reiserfs_lookup_privroot+0x92/0x270 fs/reiserfs/xattr.c:963
 reiserfs_fill_super+0x1ad8/0x28b6 fs/reiserfs/super.c:2179
 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:2549 [inline]
 do_mount+0xe53/0x2a00 fs/namespace.c:2879
 SYSC_mount fs/namespace.c:3095 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3072
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x446f6a
RSP: 002b:00007ffd51f04728 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffd51f04780 RCX: 0000000000446f6a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffd51f04740
RBP: 00007ffd51f04740 R08: 00007ffd51f04780 R09: 00007ffd00000015
R10: 0000000000010000 R11: 0000000000000297 R12: 0000000000000007
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Code: f9 48 c1 e9 03 80 3c 11 00 0f 85 67 04 00 00 4c 8b ad c8 01 00 00 48 ba 00 00 00 00 00 fc ff df 4d 8d 7d 58 4c 89 f9 48 c1 e9 03 <80> 3c 11 00 0f 85 18 04 00 00 49 8b 6d 58 4c 89 44 24 08 48 89 
RIP: d_really_is_negative include/linux/dcache.h:470 [inline] RSP: ffff8880928977f8
RIP: open_xa_root fs/reiserfs/xattr.c:124 [inline] RSP: ffff8880928977f8
RIP: open_xa_dir+0xdf/0x600 fs/reiserfs/xattr.c:152 RSP: ffff8880928977f8
---[ end trace 3b87c4858f8bb4bd ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/22 01:40 linux-4.14.y cbfa1702aaf6 9e1fa68e .config console log report syz C ci2-linux-4-14
* Struck through repros no longer work on HEAD.