syzbot


general protection fault in open_xa_dir

Status: upstream: reported C repro on 2020/09/30 05:05
Reported-by: syzbot+266c024c60219d7e5474@syzkaller.appspotmail.com
First crash: 1301d, last: 1301d
Fix bisection: fixed by (bisect log) [no-op commit]:
commit c068e505f229ca5f778f825f1401817ce818e917
Author: Marek Vasut <marex@denx.de>
Date: Sat Oct 10 09:10:00 2020 +0000

  net: fec: Fix phy_device lookup for phy_reset_after_clk_enable()

  
Similar bugs (4)
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 369d 596d 0/26 auto-obsoleted due to no activity on 2023/08/18 00:17
upstream general protection fault in open_xa_dir reiserfs C done 3 1289d 1301d 15/26 fixed on 2020/11/16 12:12
upstream general protection fault in open_xa_dir (2) reiserfs 1 748d 744d 0/26 auto-closed as invalid on 2022/07/04 17:03
linux-4.14 general protection fault in open_xa_dir C done 1 1309d 1309d 1/1 fixed on 2020/10/22 20:19

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
CPU: 1 PID: 6492 Comm: syz-executor490 Not tainted 4.19.148-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:d_really_is_negative include/linux/dcache.h:466 [inline]
RIP: 0010:open_xa_root fs/reiserfs/xattr.c:124 [inline]
RIP: 0010:open_xa_dir+0xf6/0x690 fs/reiserfs/xattr.c:152
Code: 48 c1 ea 03 80 3c 02 00 0f 85 d2 04 00 00 4c 8b ad 70 05 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8d 75 58 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 be 04 00 00 49 8b 6d 58 4c 89 04 24 48 85 ed 0f
RSP: 0018:ffff8880852a76d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff88807fd8c740 RCX: ffffffff81edae4e
RDX: 000000000000000b RSI: ffffffff81ed86c6 RDI: ffff8880a386c570
RBP: ffff8880a386c000 R08: ffff88808499abc0 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000002 R12: 1ffff11010a54edc
R13: 0000000000000000 R14: 0000000000000058 R15: ffff88808499a540
FS:  000000000220f880(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f3b067e970 CR3: 000000009f98a000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 xattr_lookup+0x21/0x3e0 fs/reiserfs/xattr.c:395
 reiserfs_xattr_get+0x9d/0x9a0 fs/reiserfs/xattr.c:668
 reiserfs_get_acl+0x57/0x620 fs/reiserfs/xattr_acl.c:209
 get_acl.part.0+0x132/0x260 fs/posix_acl.c:140
 get_acl+0x41/0x60 fs/posix_acl.c:108
 check_acl fs/namei.c:279 [inline]
 acl_permission_check fs/namei.c:303 [inline]
 generic_permission+0x448/0x510 fs/namei.c:341
 reiserfs_permission+0x64/0x80 fs/reiserfs/xattr.c:944
 do_inode_permission fs/namei.c:386 [inline]
 inode_permission+0x34e/0x540 fs/namei.c:451
 lookup_one_len_common+0x279/0x3a0 fs/namei.c:2488
 lookup_one_len+0xe6/0x190 fs/namei.c:2539
 reiserfs_lookup_privroot+0x92/0x280 fs/reiserfs/xattr.c:963
 reiserfs_fill_super+0x21e8/0x2e60 fs/reiserfs/super.c:2179
 mount_bdev+0x2fc/0x3b0 fs/super.c:1158
 mount_fs+0xa3/0x318 fs/super.c:1261
 vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
 vfs_kern_mount fs/namespace.c:951 [inline]
 do_new_mount fs/namespace.c:2469 [inline]
 do_mount+0x51c/0x2f10 fs/namespace.c:2799
 ksys_mount+0xcf/0x130 fs/namespace.c:3015
 __do_sys_mount fs/namespace.c:3029 [inline]
 __se_sys_mount fs/namespace.c:3026 [inline]
 __x64_sys_mount+0xba/0x150 fs/namespace.c:3026
 do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x447dba
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 7d a3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 5a a3 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007fffbefcd288 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fffbefcd2e0 RCX: 0000000000447dba
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fffbefcd2a0
RBP: 00007fffbefcd2a0 R08: 00007fffbefcd2e0 R09: 0000000000000000
R10: 0000000000010000 R11: 0000000000000297 R12: 0000000000000007
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Modules linked in:
---[ end trace 1c9cd68c905fdaa1 ]---
RIP: 0010:d_really_is_negative include/linux/dcache.h:466 [inline]
RIP: 0010:open_xa_root fs/reiserfs/xattr.c:124 [inline]
RIP: 0010:open_xa_dir+0xf6/0x690 fs/reiserfs/xattr.c:152
Code: 48 c1 ea 03 80 3c 02 00 0f 85 d2 04 00 00 4c 8b ad 70 05 00 00 48 b8 00 00 00 00 00 fc ff df 4d 8d 75 58 4c 89 f2 48 c1 ea 03 <80> 3c 02 00 0f 85 be 04 00 00 49 8b 6d 58 4c 89 04 24 48 85 ed 0f
RSP: 0018:ffff8880852a76d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: ffff88807fd8c740 RCX: ffffffff81edae4e
RDX: 000000000000000b RSI: ffffffff81ed86c6 RDI: ffff8880a386c570
RBP: ffff8880a386c000 R08: ffff88808499abc0 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000002 R12: 1ffff11010a54edc
R13: 0000000000000000 R14: 0000000000000058 R15: ffff88808499a540
FS:  000000000220f880(0000) GS:ffff8880ae300000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055f3b067e970 CR3: 000000009f98a000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/09/30 05:04 linux-4.19.y 10ad6cfd5736 5abc3f1a .config console log report syz C ci2-linux-4-19
* Struck through repros no longer work on HEAD.