general protection fault in security_inode_getattr

9 views
Skip to first unread message

syzbot

unread,
Aug 16, 2020, 10:26:20 AM8/16/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c14d30dc Linux 4.19.139
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=127e2c7a900000
kernel config: https://syzkaller.appspot.com/x/.config?x=93b261233af4719e
dashboard link: https://syzkaller.appspot.com/bug?extid=1e644f849da2a067c121
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

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

kasan: GPF could be caused by NULL-ptr deref or user memory access
IPv6: ADDRCONF(NETDEV_UP): bond9: link is not ready
8021q: adding VLAN 0 to HW filter on device bond9
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 14622 Comm: syz-executor.3 Not tainted 4.19.139-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:ffff88804180f670 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000c3fe000
RDX: 000000000000000b RSI: ffffffff831ae55e RDI: 0000000000000058
RBP: ffff88804180f7c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888082f181a0
R13: ffff88804180f7c0 R14: 00000000000007ff R15: 0000000000000000
FS: 00007f8258275700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 000000009eb88000 CR4: 00000000001406e0
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:0x45d239
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:00007f8258274c78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a3
RAX: ffffffffffffffda RBX: 0000000000000700 RCX: 000000000045d239
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040
RBP: 000000000118d010 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cfec
R13: 00007ffc5945bbcf R14: 00007f82582759c0 R15: 000000000118cfec
Modules linked in:
netlink: 12 bytes leftover after parsing attributes in process `syz-executor.1'.
device bond10 entered promiscuous mode
IPv6: ADDRCONF(NETDEV_UP): bond10: link is not ready
8021q: adding VLAN 0 to HW filter on device bond10
---[ end trace f91b3bd2aae4bf73 ]---
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:ffff88804180f670 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc9000c3fe000
overlayfs: upperdir is in-use as upperdir/workdir of another mount, mount with '-o index=off' to override exclusive upperdir protection.
RDX: 000000000000000b RSI: ffffffff831ae55e RDI: 0000000000000058
RBP: ffff88804180f7c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: ffff888082f181a0
R13: ffff88804180f7c0 R14: 00000000000007ff R15: 0000000000000000
FS: 00007f8258275700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563b031c3970 CR3: 000000009eb88000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


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

unread,
Aug 24, 2020, 7:31:16 PM8/24/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: d18b78ab Linux 4.19.141
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12bdf241900000
kernel config: https://syzkaller.appspot.com/x/.config?x=434d9db52d13a8e1
dashboard link: https://syzkaller.appspot.com/bug?extid=1e644f849da2a067c121
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=11afac96900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=148af972900000

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

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
Reply all
Reply to author
Forward
0 new messages