From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.7 required=3.0 tests=BAYES_00,FROM_LOCAL_HEX, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1D2BC47420 for ; Tue, 22 Sep 2020 19:11:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id CC81F2068D for ; Tue, 22 Sep 2020 19:11:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726770AbgIVTLV (ORCPT ); Tue, 22 Sep 2020 15:11:21 -0400 Received: from mail-io1-f71.google.com ([209.85.166.71]:41759 "EHLO mail-io1-f71.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726752AbgIVTLT (ORCPT ); Tue, 22 Sep 2020 15:11:19 -0400 Received: by mail-io1-f71.google.com with SMTP id j4so13430241iob.8 for ; Tue, 22 Sep 2020 12:11:18 -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=lAjFh73hmiU/WBQf5ax9GK7qWeGlhNJIYvF2cOOSRUQ=; b=buj46ftYpZyay2yIhQ6+oKu5k897o4GlGA+W9pZ4GMklyRY5kemRM7IH0SL5G4d+U7 zApKqzLRgqAqf43LVwy0K3mBkbjtxlg7HiVIBnIcP8Y+RV0WSxLpcZ33BJN+m8twPW0B F/iZYxVTIS3YqeQ9Om3Yme0F6UnLnwAnyJihtn9MknhHaYPL0X0t315pIuunCYJ/pS6j lFDw9L6KhfYHF6GirkXYayBjh0EuPsIOPoBAo9GVOAV6AtcWrWNleQ2dcc2Eh2RjfG9L 8HaX76GIUFIh10Or9aKa4AHEv1THjgNy0To+T/2iueS5f80q6nc3AAG2GC9oaOtFezoI i6GA== X-Gm-Message-State: AOAM531s95Awd35AXTXzCHXu/4C927uX7V6jUDmi+6mmen+z+cigkFGF 5sRQP0bxtQ/QTMXdHTNFeLBy0ccXwtDJ4MwSxmuAV4xF9ImT X-Google-Smtp-Source: ABdhPJy8yniI8MFudEaNa9KgbVwMWsCfxkZEpKwbgKb//f1MXSr5YF5rRi9LeZkJA0mjo9KaWhZAE7dguw2wjioqrH7T9AZEbBtW MIME-Version: 1.0 X-Received: by 2002:a05:6602:2003:: with SMTP id y3mr4532911iod.203.1600801877916; Tue, 22 Sep 2020 12:11:17 -0700 (PDT) Date: Tue, 22 Sep 2020 12:11:17 -0700 In-Reply-To: <000000000000680f2905afd0649c@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000004a0dd105afebbb10@google.com> Subject: Re: BUG: unable to handle kernel paging request in bpf_trace_run2 From: syzbot To: andriin@fb.com, ast@kernel.org, bpf@vger.kernel.org, daniel@iogearbox.net, davem@davemloft.net, hawk@kernel.org, john.fastabend@gmail.com, kafai@fb.com, kpsingh@chromium.org, kuba@kernel.org, linux-kernel@vger.kernel.org, mingo@redhat.com, netdev@vger.kernel.org, rostedt@goodmis.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, yhs@fb.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org syzbot has found a reproducer for the following issue on: HEAD commit: 12450081 libbpf: Fix native endian assumption when parsing.. git tree: bpf console output: https://syzkaller.appspot.com/x/log.txt?x=17fedf8b900000 kernel config: https://syzkaller.appspot.com/x/.config?x=5ac0d21536db480b dashboard link: https://syzkaller.appspot.com/bug?extid=cc36fd07553c0512f5f7 compiler: gcc (GCC) 10.1.0-syz 20200507 syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1365d2c3900000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16d5f08d900000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+cc36fd07553c0512f5f7@syzkaller.appspotmail.com BUG: unable to handle page fault for address: ffffc90000ed0030 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page PGD aa000067 P4D aa000067 PUD aa169067 PMD a9031067 PTE 0 Oops: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 6868 Comm: syz-executor454 Not tainted 5.9.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:bpf_dispatcher_nop_func include/linux/bpf.h:586 [inline] RIP: 0010:__bpf_trace_run kernel/trace/bpf_trace.c:1887 [inline] RIP: 0010:bpf_trace_run2+0x12e/0x3d0 kernel/trace/bpf_trace.c:1924 Code: f7 ff 48 8d 7b 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 8e 02 00 00 48 8d 73 38 48 8d 7c 24 28 53 30 e8 fa 03 f7 ff e8 45 c8 a4 06 31 ff 89 c3 89 c6 e8 4a 00 RSP: 0018:ffffc900018e7e90 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffc90000ed0000 RCX: ffffffff817f2b88 RDX: 0000000000000000 RSI: ffffc90000ed0038 RDI: ffffc900018e7eb8 RBP: 1ffff9200031cfd3 R08: 0000000000000000 R09: ffffffff8d0b69e7 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: ffffc900018e7f58 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000001079880(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90000ed0030 CR3: 000000009f63f000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: trace_sys_enter include/trace/events/syscalls.h:18 [inline] syscall_trace_enter kernel/entry/common.c:64 [inline] syscall_enter_from_user_mode+0x22c/0x290 kernel/entry/common.c:82 do_syscall_64+0xf/0x70 arch/x86/entry/common.c:41 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4441da Code: 25 18 00 00 00 00 74 01 f0 48 0f b1 3d cf f9 28 00 48 39 c2 75 da f3 c3 0f 1f 84 00 00 00 00 00 48 63 ff b8 e4 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 06 f3 c3 0f 1f 40 00 48 c7 c2 d0 ff ff ff f7 RSP: 002b:00007ffc59deef98 EFLAGS: 00000246 ORIG_RAX: 00000000000000e4 RAX: ffffffffffffffda RBX: 0000000000001ae1 RCX: 00000000004441da RDX: 0000000000000000 RSI: 00007ffc59deefa0 RDI: 0000000000000001 RBP: 000000000000ee75 R08: 0000000000001ad4 R09: 0000000001079880 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000004022f0 R13: 0000000000402380 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: CR2: ffffc90000ed0030 ---[ end trace 7a32b71ba0e36806 ]--- RIP: 0010:bpf_dispatcher_nop_func include/linux/bpf.h:586 [inline] RIP: 0010:__bpf_trace_run kernel/trace/bpf_trace.c:1887 [inline] RIP: 0010:bpf_trace_run2+0x12e/0x3d0 kernel/trace/bpf_trace.c:1924 Code: f7 ff 48 8d 7b 30 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 8e 02 00 00 48 8d 73 38 48 8d 7c 24 28 53 30 e8 fa 03 f7 ff e8 45 c8 a4 06 31 ff 89 c3 89 c6 e8 4a 00 RSP: 0018:ffffc900018e7e90 EFLAGS: 00010286 RAX: 0000000000000000 RBX: ffffc90000ed0000 RCX: ffffffff817f2b88 RDX: 0000000000000000 RSI: ffffc90000ed0038 RDI: ffffc900018e7eb8 RBP: 1ffff9200031cfd3 R08: 0000000000000000 R09: ffffffff8d0b69e7 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 R13: ffffc900018e7f58 R14: 0000000000000000 R15: 0000000000000000 FS: 0000000001079880(0000) GS:ffff8880ae500000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: ffffc90000ed0030 CR3: 000000009f63f000 CR4: 00000000001506e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400