syzbot


general protection fault in security_inode_getattr

Status: upstream: reported syz repro on 2020/09/08 02:23
Reported-by: syzbot+80af3add22f1afdb306b@syzkaller.appspotmail.com
First crash: 813d, last: 813d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream general protection fault in security_inode_getattr C done inconclusive 52 17d 854d 0/24 upstream: reported C repro on 2020/07/29 20:23
linux-4.19 general protection fault in security_inode_getattr C error 29 55d 836d 0/1 upstream: reported C repro on 2020/08/16 14:26
Patch testing requests:
Created Duration User Patch Repo Result
2022/08/29 01:27 0m https://android.googlesource.com/kernel/common android-5.4 error

Sample crash report:
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: 3409 Comm: syz-executor.2 Not tainted 5.4.63-syzkaller-01129-gc99fd3bf1076 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:d_backing_inode include/linux/dcache.h:551 [inline]
RIP: 0010:security_inode_getattr+0x42/0x140 security/security.c:1221
Code: 69 ff 49 8d 5e 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 6c f0 96 ff 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 4f f0 96 ff 48 8b 1b 48 83 c3 0c
RSP: 0018:ffff8881d38af978 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffff8881c6ec3e00
RDX: 0000000000000000 RSI: ffff8881d38afb90 RDI: ffff8881d38afaa0
RBP: ffff8881d38afb90 R08: dffffc0000000000 R09: ffff8881d38afaa0
R10: ffffed103a715f56 R11: 0000000000000000 R12: 0000000000000400
R13: ffff8881d38afaa0 R14: ffff8881d38afaa0 R15: dffffc0000000000
FS:  00007fc78d96a700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562c8b83e798 CR3: 00000001cf925001 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 vfs_getattr+0x27/0x6e0 fs/stat.c:115
 ovl_getattr+0x313/0xe60 fs/overlayfs/inode.c:236
 vfs_statx fs/stat.c:191 [inline]
 vfs_stat include/linux/fs.h:3340 [inline]
 __do_sys_newstat fs/stat.c:341 [inline]
 __se_sys_newstat+0x105/0x8c0 fs/stat.c:337
 do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45d5b9
Code: 5d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 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 0f 83 2b b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007fc78d969c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000004
RAX: ffffffffffffffda RBX: 00000000000339c0 RCX: 000000000045d5b9
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000280
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec
R13: 00007fff5423bdcf R14: 00007fc78d96a9c0 R15: 000000000118cfec
Modules linked in:
---[ end trace c1546054af02b65e ]---
RIP: 0010:d_backing_inode include/linux/dcache.h:551 [inline]
RIP: 0010:security_inode_getattr+0x42/0x140 security/security.c:1221
Code: 69 ff 49 8d 5e 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 6c f0 96 ff 48 8b 1b 48 83 c3 30 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 4f f0 96 ff 48 8b 1b 48 83 c3 0c
RSP: 0018:ffff8881d38af978 EFLAGS: 00010206
RAX: 0000000000000006 RBX: 0000000000000030 RCX: ffff8881c6ec3e00
RDX: 0000000000000000 RSI: ffff8881d38afb90 RDI: ffff8881d38afaa0
RBP: ffff8881d38afb90 R08: dffffc0000000000 R09: ffff8881d38afaa0
R10: ffffed103a715f56 R11: 0000000000000000 R12: 0000000000000400
R13: ffff8881d38afaa0 R14: ffff8881d38afaa0 R15: dffffc0000000000
FS:  00007fc78d96a700(0000) GS:ffff8881db900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff26b94630 CR3: 00000001cf925002 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (2):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-4-kasan 2020/09/08 02:40 https://android.googlesource.com/kernel/common android-5.4 c99fd3bf1076 abf9ba4f .config log report syz
ci2-android-5-4-kasan 2020/09/08 02:22 https://android.googlesource.com/kernel/common android-5.4 c99fd3bf1076 abf9ba4f .config log report
* Struck through repros no longer work on HEAD.