Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2385179pxa; Mon, 24 Aug 2020 12:38:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoTF1DKrg6z4vdeNxbr4+8MenzKop4f0ff6ZqD3mAO0lv4kRzCu2LZFpkJ/2QQocL2x5na X-Received: by 2002:a17:906:fa19:: with SMTP id lo25mr6825788ejb.274.1598297918602; Mon, 24 Aug 2020 12:38:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598297918; cv=none; d=google.com; s=arc-20160816; b=h4uXLDR5LV3ojk9hxLnGBjz7WvHEG0qILN5K2VEgghpThZW0rpBhodBRMAeMMzxg+i EiTxR8k+SiW1RxmMF8021rPhO0hq8a+owCXHCNM8DbehW1cB5lJHcsElCRx9KE7HKNDI u0m7Pghom0zThy1IPdD3+fO2F3pGBP+aN8BDvHmQns8zIAoIg7YLKVgUeAPPmQZZIlbv 1IOr+SCq0bic/lS0iLFU0ZzfPeVSLJ5f/BXVfmwMsW2+9R28dDBsXHFEPzYe1gJFzwKB dN7PHV9q2tAa5AT+3owyGx1XI3qGBikqaGLow9PC7L9IzvG88w6W7OV3B74lLYZP/0at d8ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:subject:message-id:in-reply-to :date:mime-version; bh=vsgtHuVnx0ZvzeehfUfHgJ33sOPqjeFQQzciJ80PJFc=; b=n8GUiE/eygeWoxl1OS6LghyVuLCTxvBtB+1UP5EbXgiIC62kFkE6S8vtKKOJrAcAvf gyVzN3kSFdgUUL7CTQWR7ECNgoZ/pKt+RO/XdjTxdqpWweNVlMz50FPPODRFd2J1G2TV M5dze/7WCMwRgQjug5izmqLbG6/5WwQOUdZVE4DFuJz58MCXdO7wy6/gCbWTQ1EQ4nHL C1uSVcJ3bROacgwrJIj/J23wKGjWSta/1yCI/5DnUAeCBlX5WfIhEx2GkkPVtj2MuBWR F1V5c7dg9hFuiWbVbXml4/+YNYxCQcsreYgHXIlpadRMYHQTyvGUCqIa6zGR8T+XgeK3 peaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp16si11315762ejc.687.2020.08.24.12.38.15; Mon, 24 Aug 2020 12:38:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726806AbgHXThR (ORCPT + 99 others); Mon, 24 Aug 2020 15:37:17 -0400 Received: from mail-il1-f198.google.com ([209.85.166.198]:54192 "EHLO mail-il1-f198.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbgHXThP (ORCPT ); Mon, 24 Aug 2020 15:37:15 -0400 Received: by mail-il1-f198.google.com with SMTP id o18so7361548ill.20 for ; Mon, 24 Aug 2020 12:37:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id:subject :from:to; bh=vsgtHuVnx0ZvzeehfUfHgJ33sOPqjeFQQzciJ80PJFc=; b=qdmm0/IeuzwPP19iVA7B+JL2Nu4bTeHxfdTAzFPG+wkJFJ2AxGUsGEbqFXTTT7GLd4 YA8p+NhQSN79s7FNP1dZtPDP7To5PyjjrMYN/ozl8tQT77sCnrgTb+zyVGbocjS8BSJD d/zgVgCRYZ9I8CiMbmyMwVQIQjLdA6lnvrZ1+5fmiqXmTCAbaig7kTZDBeIMK7+VUsPb XS5AMq5jvTa01BWqjNZoxKwMHT5g7jzdDb1O+yDWxDHV7mf7wdnfd8nv2m+wUYM8+Ubs pauCsAbAc+onsavziO1yCnkD78wt0VH4wzuLwTMgFs9BrTRZzBsfjfyYJ7l/tbm/H5SL 4EHQ== X-Gm-Message-State: AOAM531e25mpRQAblFbv4AHpz3MgBQQQnlN646Dx+CpkdfmC12UPMxWj l3+FxaNr8zR7W0cox8l2V8+m4uT6UXdj9QOxWFu1KW2tjWSW MIME-Version: 1.0 X-Received: by 2002:a05:6638:1393:: with SMTP id w19mr7060480jad.113.1598297834201; Mon, 24 Aug 2020 12:37:14 -0700 (PDT) Date: Mon, 24 Aug 2020 12:37:14 -0700 In-Reply-To: <0000000000008caae305ab9a5318@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000a726a405ada4b6cf@google.com> Subject: Re: general protection fault in security_inode_getattr From: syzbot To: andriin@fb.com, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, jmorris@namei.org, john.fastabend@gmail.com, kafai@fb.com, kpsingh@chromium.org, linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org, netdev@vger.kernel.org, serge@hallyn.com, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, yhs@fb.com Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: d012a719 Linux 5.9-rc2 git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=14aa130e900000 kernel config: https://syzkaller.appspot.com/x/.config?x=891ca5711a9f1650 dashboard link: https://syzkaller.appspot.com/bug?extid=f07cc9be8d1d226947ed compiler: clang version 10.0.0 (https://github.com/llvm/llvm-project/ c2443155a0fb245c8f17f2c1c72b6ea391e86e81) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=104a650e900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+f07cc9be8d1d226947ed@syzkaller.appspotmail.com general protection fault, probably for non-canonical address 0xdffffc000000000d: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000068-0x000000000000006f] CPU: 1 PID: 32288 Comm: syz-executor.3 Not tainted 5.9.0-rc2-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:549 [inline] RIP: 0010:security_inode_getattr+0x42/0x140 security/security.c:1276 Code: 1b fe 49 8d 5e 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 bc b4 5b fe 48 8b 1b 48 83 c3 68 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 9f b4 5b fe 48 8b 1b 48 83 c3 0c RSP: 0018:ffffc9000a017750 EFLAGS: 00010202 RAX: 000000000000000d RBX: 0000000000000068 RCX: ffff888093ec6180 RDX: 0000000000000000 RSI: ffffc9000a017860 RDI: ffffc9000a017850 RBP: ffffc9000a017850 R08: dffffc0000000000 R09: ffffc9000a017850 R10: fffff52001402f0c R11: 0000000000000000 R12: ffffc9000a017860 R13: 0000000000008401 R14: ffffc9000a017850 R15: dffffc0000000000 FS: 00007f292d4ef700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b30920074 CR3: 00000000937fd000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: vfs_getattr+0x21/0x60 fs/stat.c:121 ovl_copy_up_one fs/overlayfs/copy_up.c:850 [inline] ovl_copy_up_flags+0x2ef/0x2a00 fs/overlayfs/copy_up.c:931 ovl_maybe_copy_up+0x154/0x180 fs/overlayfs/copy_up.c:963 ovl_open+0xa2/0x200 fs/overlayfs/file.c:147 do_dentry_open+0x7c8/0x1010 fs/open.c:817 do_open fs/namei.c:3251 [inline] path_openat+0x2794/0x3840 fs/namei.c:3368 do_filp_open+0x191/0x3a0 fs/namei.c:3395 file_open_name+0x321/0x430 fs/open.c:1113 acct_on kernel/acct.c:207 [inline] __do_sys_acct kernel/acct.c:286 [inline] __se_sys_acct+0x122/0x6f0 kernel/acct.c:273 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x45d579 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:00007f292d4eec78 EFLAGS: 00000246 ORIG_RAX: 00000000000000a3 RAX: ffffffffffffffda RBX: 0000000000000700 RCX: 000000000045d579 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000040 RBP: 000000000118cf70 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118cf4c R13: 00007ffc8e04bc4f R14: 00007f292d4ef9c0 R15: 000000000118cf4c Modules linked in: ---[ end trace 7e4f1041b188e411 ]--- RIP: 0010:d_backing_inode include/linux/dcache.h:549 [inline] RIP: 0010:security_inode_getattr+0x42/0x140 security/security.c:1276 Code: 1b fe 49 8d 5e 08 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 bc b4 5b fe 48 8b 1b 48 83 c3 68 48 89 d8 48 c1 e8 03 <42> 80 3c 38 00 74 08 48 89 df e8 9f b4 5b fe 48 8b 1b 48 83 c3 0c RSP: 0018:ffffc9000a017750 EFLAGS: 00010202 RAX: 000000000000000d RBX: 0000000000000068 RCX: ffff888093ec6180 RDX: 0000000000000000 RSI: ffffc9000a017860 RDI: ffffc9000a017850 RBP: ffffc9000a017850 R08: dffffc0000000000 R09: ffffc9000a017850 R10: fffff52001402f0c R11: 0000000000000000 R12: ffffc9000a017860 R13: 0000000000008401 R14: ffffc9000a017850 R15: dffffc0000000000 FS: 00007f292d4ef700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fef820e7000 CR3: 00000000937fd000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400