Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp484279pxb; Sat, 21 Aug 2021 08:21:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrPHsVeMsfT2qvHiRjDKpcm75XFe1VFwuAKc0ZqkcvpTSsueegBTF7YoNS58eqHUhJ8LmL X-Received: by 2002:a5d:9681:: with SMTP id m1mr20086986ion.113.1629559308300; Sat, 21 Aug 2021 08:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629559308; cv=none; d=google.com; s=arc-20160816; b=dMYJDyvTI3cvB5++OfCY/8XCUpI2fy9YHu90B6OscJWSAf/L7K8N7JBi4ZLEpKJYnU PxYsrotvcbsEMnrSfjSNK5yvjT9sTgXehT5oy/Ey3ePX+Zo7acbaT7QGs4XrGZhjM/Y4 tCD3tkeSaLZpIetT+YQKR3p2e/HzqGR6njWzgvI3CNfdXGssoWYgjoGYR4LKoi/M/GQk xYljRGSo49PDp/gh0CMcgdAHSor6ywyWfX8uJbMVmM5094TlnEqi6nDbAQYUuncVxwRC 9JpoxjiOv/N/Xa4je08HQ/FPyDlZoAE3NMjKmitQXLkUAk32SpVhQgStnnl3cvEjFR+N lQzQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:subject:message-id:date:mime-version; bh=MWvlGvJX3+lC+CEYrV+NJHyCqoKq7RyLbTXAsQO2CkQ=; b=zx+BLx+Zb50NZyJ1zR2+3IgWjpZ9Kr4bx3v6AEZ5jmVHSBAldTLlOwwoEB4+HBWKk/ RiTyOq0/Tsfb2n+Nn4N69hIwMYPTxhLWj0vuys7/UtvHDxgEBDup71AaF/+thHjNg64P nwZAyIW/uXz2pJXzHQlFDvKxj0G1uO7BkBordLJCSt3os0tXQAileqoWpEdSJl4ovlKA pJNSGJx+CkMooxlBrh4Ia7rMTRLDxMo2lkLJrjDBlmGjRfp0dqV6/eStQ+Pk0xwFCLWH pTQ04w4LjSamboiH0FuOfzYH3ncrVSP6Ys/GCRvdEKBI2QF7H64AIeR9CrSgr5lj3EHP KfIw== 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 v2si5866666iot.49.2021.08.21.08.21.35; Sat, 21 Aug 2021 08:21:48 -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 S232213AbhHUPT7 (ORCPT + 99 others); Sat, 21 Aug 2021 11:19:59 -0400 Received: from mail-io1-f70.google.com ([209.85.166.70]:55884 "EHLO mail-io1-f70.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231732AbhHUPT6 (ORCPT ); Sat, 21 Aug 2021 11:19:58 -0400 Received: by mail-io1-f70.google.com with SMTP id f10-20020a6b620a0000b02904e5ab8bdc6cso7207016iog.22 for ; Sat, 21 Aug 2021 08:19:19 -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:message-id:subject:from:to; bh=MWvlGvJX3+lC+CEYrV+NJHyCqoKq7RyLbTXAsQO2CkQ=; b=rJU9k2KWOCl/lKau3mFAj8M7n78U8OK8zGDRAjZOCJ4VqAS1msQot00fw4c+RB9Ozg mr0L8pKeXa0qu80xqjDeHfLLXzGV3GxsZwvc+bfTwfPf1zErzIksJaFrYbkbCLLheFwI 71Vnz0jPQqy/ZjBoUweD2eS+yrOyNhtWBdw7R+UxXrAT+XwVjLNF0m6NYaZXAU1+zQCe 22ztKh8MFgZYywnWhMX0NuiOZUaVdOsVjSHBgUpEZe5VwUC0AiViElGdNQQjnEBZvzvk sfAtstbp3FR5na+Tzx8i79lcL6tMynaru6m124VqJeImfb9mQfgwi23lsd4Zm0gAmca/ 2OaA== X-Gm-Message-State: AOAM531/TDLXkWPFsAlJ1OUNfAEaNNx38IU1KCdrH98PZ378Cxk3VC3v m5RL4QEUwAZbOA7jLg+gPKTYDSkYwVmKwnjUHyDD4beKwK7H MIME-Version: 1.0 X-Received: by 2002:a92:6711:: with SMTP id b17mr17814117ilc.122.1629559158845; Sat, 21 Aug 2021 08:19:18 -0700 (PDT) Date: Sat, 21 Aug 2021 08:19:18 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000cdb89d05ca134e47@google.com> Subject: [syzbot] BUG: unable to handle kernel NULL pointer dereference in unix_shutdown From: syzbot To: Rao.Shoaib@oracle.com, andrii@kernel.org, ast@kernel.org, bpf@vger.kernel.org, cong.wang@bytedance.com, daniel@iogearbox.net, davem@davemloft.net, john.fastabend@gmail.com, kafai@fb.com, kpsingh@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk, yhs@fb.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, syzbot found the following issue on: HEAD commit: 9803fb968c8c Add linux-next specific files for 20210817 git tree: linux-next console output: https://syzkaller.appspot.com/x/log.txt?x=1727c65e300000 kernel config: https://syzkaller.appspot.com/x/.config?x=681282daead30d81 dashboard link: https://syzkaller.appspot.com/bug?extid=cd7ceee0d3b5892f07af compiler: gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.1 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13fb6ff9300000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=15272861300000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+cd7ceee0d3b5892f07af@syzkaller.appspotmail.com BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode #PF: error_code(0x0010) - not-present page PGD 6f812067 P4D 6f812067 PUD 6fe2f067 PMD 0 Oops: 0010 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6569 Comm: syz-executor133 Not tainted 5.14.0-rc6-next-20210817-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 0018:ffffc90002dcfe38 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffffff8d27cfa0 RCX: 0000000000000000 RDX: 1ffffffff1a4fa0a RSI: ffffffff87d03085 RDI: ffff888077074d80 RBP: ffff888077074d80 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff87d03004 R11: 0000000000000001 R12: 0000000000000001 R13: ffff888077075398 R14: ffff888077075b58 R15: ffff888077074e00 FS: 0000000001747300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000006f93f000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unix_shutdown+0x28a/0x5b0 net/unix/af_unix.c:2857 __sys_shutdown_sock net/socket.c:2242 [inline] __sys_shutdown_sock net/socket.c:2236 [inline] __sys_shutdown+0xf1/0x1b0 net/socket.c:2254 __do_sys_shutdown net/socket.c:2262 [inline] __se_sys_shutdown net/socket.c:2260 [inline] __x64_sys_shutdown+0x50/0x70 net/socket.c:2260 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x43ee29 Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 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 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007ffdc0b3c908 EFLAGS: 00000246 ORIG_RAX: 0000000000000030 RAX: ffffffffffffffda RBX: 0000000000400488 RCX: 000000000043ee29 RDX: 00000000004ac018 RSI: 0000000000000000 RDI: 0000000000000003 RBP: 0000000000402e10 R08: 0000000000000000 R09: 0000000000400488 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000402ea0 R13: 0000000000000000 R14: 00000000004ac018 R15: 0000000000400488 Modules linked in: CR2: 0000000000000000 ---[ end trace f541a02ac6ed69b5 ]--- RIP: 0010:0x0 Code: Unable to access opcode bytes at RIP 0xffffffffffffffd6. RSP: 0018:ffffc90002dcfe38 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffffffff8d27cfa0 RCX: 0000000000000000 RDX: 1ffffffff1a4fa0a RSI: ffffffff87d03085 RDI: ffff888077074d80 RBP: ffff888077074d80 R08: 0000000000000000 R09: 0000000000000001 R10: ffffffff87d03004 R11: 0000000000000001 R12: 0000000000000001 R13: ffff888077075398 R14: ffff888077075b58 R15: ffff888077074e00 FS: 0000000001747300(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffffffffffffd6 CR3: 000000006f93f000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ---------------- Code disassembly (best guess): 0: 28 c3 sub %al,%bl 2: e8 2a 14 00 00 callq 0x1431 7: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) e: 00 00 00 11: 48 89 f8 mov %rdi,%rax 14: 48 89 f7 mov %rsi,%rdi 17: 48 89 d6 mov %rdx,%rsi 1a: 48 89 ca mov %rcx,%rdx 1d: 4d 89 c2 mov %r8,%r10 20: 4d 89 c8 mov %r9,%r8 23: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 28: 0f 05 syscall 2a: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 30: 73 01 jae 0x33 32: c3 retq 33: 48 c7 c1 c0 ff ff ff mov $0xffffffffffffffc0,%rcx 3a: f7 d8 neg %eax 3c: 64 89 01 mov %eax,%fs:(%rcx) 3f: 48 rex.W --- 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 syzkaller@googlegroups.com. syzbot will keep track of this issue. See: https://goo.gl/tpsmEJ#status for how to communicate with syzbot. syzbot can test patches for this issue, for details see: https://goo.gl/tpsmEJ#testing-patches