syzbot
general protection fault in security_inode_getattr
Status:
upstream: reported C repro on 2020/08/16 14:26
Reported-by: syzbot+1e644f849da2a067c121@syzkaller.appspotmail.com
First crash: 2185d, last: 1404d
▶
▼
Fix bisection attempts (2)
Sample crash report:
Process accounting resumed
Process accounting resumed
Process accounting resumed
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: 0 PID: 27513 Comm: syz-executor864 Not tainted 4.19.141-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:d_backing_inode include/linux/dcache.h:543 [inline]
RIP: 0010:security_inode_getattr+0x46/0x140 security/security.c:722
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 04 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 5d 08 48 8d 7b 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d7 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffff8880819ef670 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 000000000000000b RSI: ffffffff831aedae RDI: 0000000000000058
RBP: ffff8880819ef7c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88807d005e00
R13: ffff8880819ef7c0 R14: 00000000000007ff R15: 0000000000000000
FS: 00007ff201222700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000240 CR3: 0000000091c7e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
vfs_getattr+0x22/0x60 fs/stat.c:113
ovl_copy_up_one+0x120/0xe60 fs/overlayfs/copy_up.c:775
ovl_copy_up_flags+0x14b/0x1c0 fs/overlayfs/copy_up.c:856
ovl_maybe_copy_up+0x140/0x190 fs/overlayfs/copy_up.c:888
ovl_open+0xb4/0x350 fs/overlayfs/file.c:126
do_dentry_open+0x4aa/0x1160 fs/open.c:796
do_last fs/namei.c:3421 [inline]
path_openat+0x793/0x2df0 fs/namei.c:3537
do_filp_open+0x18c/0x3f0 fs/namei.c:3567
file_open_name+0x269/0x380 fs/open.c:1032
acct_on kernel/acct.c:207 [inline]
__do_sys_acct kernel/acct.c:286 [inline]
__se_sys_acct+0xf2/0x930 kernel/acct.c:273
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446ed9
Code: e8 dc e6 ff ff 48 83 c4 18 c3 0f 1f 80 00 00 00 00 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 ab 05 fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ff201221db8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a3
RAX: ffffffffffffffda RBX: 00000000006dcc38 RCX: 0000000000446ed9
RDX: 0000000000402cb4 RSI: 5eb974f0897ce1b1 RDI: 0000000020000040
RBP: 00000000006dcc30 R08: 00007ff201222700 R09: 0000000000000000
R10: 00007ff201222700 R11: 0000000000000246 R12: 00000000006dcc3c
R13: 00007fff5f0f9edf R14: 00007ff2012229c0 R15: 0000000000000001
Modules linked in:
---[ end trace bf040f0623636f4c ]---
RIP: 0010:d_backing_inode include/linux/dcache.h:543 [inline]
RIP: 0010:security_inode_getattr+0x46/0x140 security/security.c:722
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 04 01 00 00 48 b8 00 00 00 00 00 fc ff df 49 8b 5d 08 48 8d 7b 58 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 d7 00 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b
RSP: 0018:ffff8880819ef670 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 000000000000000b RSI: ffffffff831aedae RDI: 0000000000000058
RBP: ffff8880819ef7c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff88807d005e00
R13: ffff8880819ef7c0 R14: 00000000000007ff R15: 0000000000000000
FS: 00007ff201222700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f1898546000 CR3: 0000000091c7e000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
* Struck through repros no longer work on HEAD.