Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp2252133imb; Sun, 3 Mar 2019 23:46:14 -0800 (PST) X-Google-Smtp-Source: APXvYqxVcIZOo9UM55UCyIau+C1b83iAXcbULJaxPkK5les1y/4OlpbY/wOpATLlrcyXnw+TDZkV X-Received: by 2002:a17:902:290b:: with SMTP id g11mr19063939plb.269.1551685573988; Sun, 03 Mar 2019 23:46:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551685573; cv=none; d=google.com; s=arc-20160816; b=A/OZ0A0/4IncOVg0/EQ6mGEsibvf2yiensmDEMJWBp743/HcVVkkbVTIOctil5E5Ca K09gw0y4iE/wAcKLnaG5J/UT8V71b3e0ftrbJ2ynYj3m30mEDspaIA4ssHxmU664cQEF 6cpvcbPXlAqjC1AYUXkBQP9Sg+m+0dVaFaeM/UU23v0nBgzXYoa1QBQOV88+78Ebz00d Cxs+yQAHionjJgV76FUiAwsbEji62aRKq/GSzT2IIKy9QjY8aPsM2xxtiIXGDt8JYJez DqtEpcJXNNRN92Pj8ET/1TvN0qWutCX7SeQmB2V389YXikjL+S1ieQvVkjDU0SE/+KsY bpDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=XXy+ybRj+2giDU6/v1ws6l0BVvnWRNgYBms1bq/pHuo=; b=wAPDiDX93TeZtusr3H3u42dH8rnTMe1C1MwtdwoTgh8tIUpQ94S2k6dsfFpleshWV8 JRAtHkwx1fn25Teq9l3zTNl1jdYOit+qb68SLWq5dMKftv4D5jtWFWH/o7wbt7uP0q6B ddEwmexIwdMIraIheBDp+iQF/pY4B6ALr46XqbqvyoKFbdDR7Wx/krsS/chsshQGQof+ iOfD3LBj4Eb/nD1toCQWZRDjX5RkZJ3BAXncKwaRsQ9dRoPTV6nHw+8LWY4uy+e9RyXh 0JP87aDcd0/gbQIyVHoLvSbXzEFKaA3kC2FouwMmsmVXmIBN0HceTAEw2ydGZkJ5sES/ w1zg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=leFGJ6ms; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p87si4757369pfa.48.2019.03.03.23.45.58; Sun, 03 Mar 2019 23:46:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=leFGJ6ms; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725982AbfCDHpf (ORCPT + 99 others); Mon, 4 Mar 2019 02:45:35 -0500 Received: from mail-it1-f195.google.com ([209.85.166.195]:36435 "EHLO mail-it1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725974AbfCDHpe (ORCPT ); Mon, 4 Mar 2019 02:45:34 -0500 Received: by mail-it1-f195.google.com with SMTP id v83so6189995itf.1 for ; Sun, 03 Mar 2019 23:45:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=XXy+ybRj+2giDU6/v1ws6l0BVvnWRNgYBms1bq/pHuo=; b=leFGJ6msj3wDq3jvR86bP56bbB04oB4YH2gpvQ39LhabPOLOQKRwEECQeh2q3sqp4A deI5UgnY0zh8TDnoGJstIJbR4gMy9wzHOf8RcX88c67jpWnPzANM3od+yyiQte3Qx69c L9JsrUpwhirM+22yEHou2wLA8u3IecdMQzeLohfGHddCuGkQk5lonWgNgG1DWgcN3AuH qi29WRWb4EvYVS8glIsq0+O4Hg0VIfjtMol6cdeOdvMWNdzi962QpqxXe3qoecXfbuHc H4i2K/BlapPI+dBhssjrZSCaHTT0GgMuw9+AqGXlPJN7ap07CzOgc05vsTXPzwYbhjO5 JHuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=XXy+ybRj+2giDU6/v1ws6l0BVvnWRNgYBms1bq/pHuo=; b=lhrzrxBKEIEBA36UZEStZsTCHkUYEY+rA6jqvWcXZFWWIFeEKALcJlcztqJm/JtmO+ s9JOQUnaq6Z12m0Foa/pdId7ekd78CWJVQ7ZtgX7Ww1iD83hjW/lWH25EDiqPFpRjW/2 vBDaMdYGci/GKDvzPwQMvFkJQu/CVQBFtqO6Zg8XraOkd5vvWCnQOoO4ySNSXIV+1sBM KZ6q9CUIWnyCOAhqjutIls8vS/u7c62kcca9wpg9ipMxnVQ2qrlr5P3IO2mKBAe5DbP+ wtXCgor4dgAVR/2HU2Hk/yUlVlxZZ0ICD1CzEp5ssK2iW3rP8OjXB+H6rC28uCzWi7vA 4vfw== X-Gm-Message-State: APjAAAVqTpJcJ5b3E6WpRnRFSjdkbvcP/D4spzULNjiB7UTOqmfd5a/G sOaifu09N3xbb+uaYRDYiRWLCTP90MOlVrXVfBXb2Q== X-Received: by 2002:a02:84ab:: with SMTP id f40mr8776933jai.72.1551685533321; Sun, 03 Mar 2019 23:45:33 -0800 (PST) MIME-Version: 1.0 References: <0000000000009417ef0575802d44@google.com> In-Reply-To: <0000000000009417ef0575802d44@google.com> From: Dmitry Vyukov Date: Mon, 4 Mar 2019 08:45:22 +0100 Message-ID: Subject: Re: BUG: unable to handle kernel paging request in bpf_prog_kallsyms_add To: syzbot Cc: Alexei Starovoitov , Daniel Borkmann , LKML , netdev , syzkaller-bugs 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 On Mon, Sep 10, 2018 at 10:31 AM syzbot wrote: > > Hello, > > syzbot found the following crash on: > > HEAD commit: f6f3bac08ff9 tools/bpf: bpftool: add net support > git tree: bpf-next > console output: https://syzkaller.appspot.com/x/log.txt?x=17940056400000 > kernel config: https://syzkaller.appspot.com/x/.config?x=8f59875069d721b6 > dashboard link: https://syzkaller.appspot.com/bug?extid=c827a78260579449ad39 > compiler: gcc (GCC) 8.0.1 20180413 (experimental) > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1611c7e1400000 This is still very actively happening. See the dashboard link for info about more crashes. > IMPORTANT: if you fix the bug, please add the following tag to the commit: > Reported-by: syzbot+c827a78260579449ad39@syzkaller.appspotmail.com > > ** NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE NOTICE ** > ********************************************************** > BUG: unable to handle kernel paging request at ffffc90001930002 > PGD 1da948067 P4D 1da948067 PUD 1da949067 PMD 1d49da067 PTE 0 > Oops: 0000 [#1] PREEMPT SMP KASAN > CPU: 0 PID: 12601 Comm: syz-executor3 Not tainted 4.19.0-rc2+ #93 > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > Google 01/01/2011 > RIP: 0010:bpf_prog_kallsyms_candidate kernel/bpf/core.c:472 [inline] > RIP: 0010:bpf_prog_kallsyms_add+0xbe/0x9b0 kernel/bpf/core.c:483 > Code: d0 31 c0 e8 14 68 f3 ff 49 8d 7c 24 02 48 89 f8 48 89 fa 48 c1 e8 03 > 83 e2 07 0f b6 04 18 38 d0 7f 08 84 c0 0f 85 39 07 00 00 <41> 0f b6 5c 24 > 02 31 ff 83 e3 01 89 de e8 b0 68 f3 ff 84 db 0f 84 > RSP: 0018:ffff8801bc2af9c0 EFLAGS: 00010246 > RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffffff818c8b39 > RDX: 0000000000000002 RSI: ffffffff818b671c RDI: ffffc90001930002 > RBP: ffff8801bc2afb30 R08: ffff8801bf750100 R09: ffffed003b584732 > R10: ffffed003b584732 R11: ffff8801dac23993 R12: ffffc90001930000 > R13: ffff8801bc2afd18 R14: 0000000000000000 R15: 1ffff10037855f3d > FS: 00007fb5d21c9700(0000) GS:ffff8801dac00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: ffffc90001930002 CR3: 00000001bcd1c000 CR4: 00000000001406f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > Call Trace: > bpf_prog_load+0x13d1/0x1cb0 kernel/bpf/syscall.c:1442 > __do_sys_bpf kernel/bpf/syscall.c:2371 [inline] > __se_sys_bpf kernel/bpf/syscall.c:2333 [inline] > __x64_sys_bpf+0x36c/0x510 kernel/bpf/syscall.c:2333 > do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 > entry_SYSCALL_64_after_hwframe+0x49/0xbe > RIP: 0033:0x457099 > Code: fd 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 cb b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 > RSP: 002b:00007fb5d21c8c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 > RAX: ffffffffffffffda RBX: 00007fb5d21c96d4 RCX: 0000000000457099 > RDX: 0000000000000048 RSI: 0000000020000000 RDI: 0000000000000005 > RBP: 00000000009300a0 R08: 0000000000000000 R09: 0000000000000000 > R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff > R13: 00000000004cb9c8 R14: 00000000004c335d R15: 0000000000000000 > Modules linked in: > Dumping ftrace buffer: > (ftrace buffer empty) > CR2: ffffc90001930002 > ---[ end trace fcb4474011e9b55c ]--- > RIP: 0010:bpf_prog_kallsyms_candidate kernel/bpf/core.c:472 [inline] > RIP: 0010:bpf_prog_kallsyms_add+0xbe/0x9b0 kernel/bpf/core.c:483 > Code: d0 31 c0 e8 14 68 f3 ff 49 8d 7c 24 02 48 89 f8 48 89 fa 48 c1 e8 03 > 83 e2 07 0f b6 04 18 38 d0 7f 08 84 c0 0f 85 39 07 00 00 <41> 0f b6 5c 24 > 02 31 ff 83 e3 01 89 de e8 b0 68 f3 ff 84 db 0f 84 > RSP: 0018:ffff8801bc2af9c0 EFLAGS: 00010246 > RAX: 0000000000000000 RBX: dffffc0000000000 RCX: ffffffff818c8b39 > RDX: 0000000000000002 RSI: ffffffff818b671c RDI: ffffc90001930002 > RBP: ffff8801bc2afb30 R08: ffff8801bf750100 R09: ffffed003b584732 > R10: ffffed003b584732 R11: ffff8801dac23993 R12: ffffc90001930000 > R13: ffff8801bc2afd18 R14: 0000000000000000 R15: 1ffff10037855f3d > FS: 00007fb5d21c9700(0000) GS:ffff8801dac00000(0000) knlGS:0000000000000000 > CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 > CR2: ffffc90001930002 CR3: 00000001bcd1c000 CR4: 00000000001406f0 > DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 > DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 > > > --- > This bug 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 bug report. See: > https://goo.gl/tpsmEJ#bug-status-tracking for how to communicate with > syzbot. > syzbot can test patches for this bug, for details see: > https://goo.gl/tpsmEJ#testing-patches > > -- > You received this message because you are subscribed to the Google Groups "syzkaller-bugs" group. > To unsubscribe from this group and stop receiving emails from it, send an email to syzkaller-bugs+unsubscribe@googlegroups.com. > To view this discussion on the web visit https://groups.google.com/d/msgid/syzkaller-bugs/0000000000009417ef0575802d44%40google.com. > For more options, visit https://groups.google.com/d/optout.