Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp972363ybh; Thu, 12 Mar 2020 14:38:21 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtv923z8NtTjDUKffDkh/YXEmDRLYAQKuShk1sZmZ5gZh3r/XEm4G2NXV/LsMcyvTedYzrq X-Received: by 2002:aca:f541:: with SMTP id t62mr4485367oih.172.1584049101056; Thu, 12 Mar 2020 14:38:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584049101; cv=none; d=google.com; s=arc-20160816; b=ujVyPDKL1HUH9XGPEJubyjKR3KsQ+8rnwlrfUVba7RGRzgfadUBZokVQRkzeDwrWmK hbhCXinkeXfKsJuuaAoBmNgedE7eofsM61a2zaJLP+QSrHCRjfRtkzrVcv0b1CsTENXt k1j2bgIrMQZLHjS47XIpBKCldBQYAnxpYckX1zWyulegf8ShX5vsORDYA6SA+dOjZeuD gKrm07euMgqZKrZOGmVtW3R2ipkO/rHBUqA6Ww2230zCSp3DdTKVML0axBSxwBwpQjNm 8AoZg0sW7Dt8bl2aPsIiVF3lOTSN4OmBrWu0tfaNB/HJMoO7/nLTpw1JyfTytI73WSgP Q9+Q== 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:date :mime-version; bh=otDTyif1JxNxdhkmFkrhZBBAigUQx1pxkqJwd5II138=; b=hP86++OYlSIma1PbHisghqD1eR68HWbei5HFVy9vdcbPEQNQ5qsymTljs0k32A0Qry ftaSQFb7jckpGEj9qsZMFKfMh8kjN6N7LcmWXMDZOFZGXBDASNbkyQqcCEI1cSC2jmn4 wadJ9OWdwXAbsHgqA6bfXta+KlwFC1ZnF+wLPZmp4M1dPQp0qdm7CaHNsBigWarC3mMN IawCS8JT377rS9cXbpvDUrWczRhEwAfu1nwhLjc/oS0jjq9QEVKvqWU0MQraj/XNROz8 0hnvqx7loyyGczCOREYUKgRvxuBpp2u8kVUNw7IJLzDRp9YGrfxR0Odb/doHaYRz27Z1 Njew== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8si1986619otk.163.2020.03.12.14.38.07; Thu, 12 Mar 2020 14:38:21 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=appspotmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726680AbgCLVhN (ORCPT + 99 others); Thu, 12 Mar 2020 17:37:13 -0400 Received: from mail-il1-f199.google.com ([209.85.166.199]:36087 "EHLO mail-il1-f199.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgCLVhM (ORCPT ); Thu, 12 Mar 2020 17:37:12 -0400 Received: by mail-il1-f199.google.com with SMTP id v14so5000311ilq.3 for ; Thu, 12 Mar 2020 14:37:12 -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=otDTyif1JxNxdhkmFkrhZBBAigUQx1pxkqJwd5II138=; b=aNXf/jSj8684IUgWCXniO/vG1XAL+7sfCLvfMMQdpxiG5pyXwsAZdycU3+4KarWl9s m5S03zJVcPggt24qskkk/4eBW5B6P6+c5aOTwCN07kO1YnP5Elh7YBQv8odniRZ8PSHW BJISV7BXTP4NOk4FP+Tr/Uv6HAOE8RvY+usTRE3CMZ0EBpXcgJpGpDV1Ru7vwB3sWQPC pvpdIogZXNA2pe1KEMe6j5kfmMYFY0fJYNY3BssiNy52r1MzY1hRtI52Cb66Kt1ZGXMh Z2TIK6/biXhRBVqtQMeMjr383diAqQS7zRIphsXIVfcJlWWENY/os2DF87zmHcYlEvy2 uY8A== X-Gm-Message-State: ANhLgQ35Ev7PGLM/SsE41tck/kRx1FZrsYb/8GU9ZZw4XUYhVoso3GQ+ VJvQvR/x7MzB5wObAL6jBfPQfvgemygn1wrrsZwLT2p+hvYJ MIME-Version: 1.0 X-Received: by 2002:a92:5b56:: with SMTP id p83mr10329254ilb.70.1584049032035; Thu, 12 Mar 2020 14:37:12 -0700 (PDT) Date: Thu, 12 Mar 2020 14:37:12 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <000000000000dc81b705a0af279c@google.com> Subject: WARNING in bpf_check (3) From: syzbot To: andriin@fb.com, ast@kernel.org, bpf@vger.kernel.org, clang-built-linux@googlegroups.com, daniel@iogearbox.net, davem@davemloft.net, hawk@kernel.org, john.fastabend@gmail.com, kafai@fb.com, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, tglx@linutronix.de, 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 Hello, syzbot found the following crash on: HEAD commit: 13fac1d8 bpf: Fix trampoline generation for fmod_ret progr.. git tree: bpf-next console output: https://syzkaller.appspot.com/x/log.txt?x=167ba061e00000 kernel config: https://syzkaller.appspot.com/x/.config?x=888f81f5410adfa2 dashboard link: https://syzkaller.appspot.com/bug?extid=245129539c27fecf099a compiler: gcc (GCC) 9.0.0 20181231 (experimental) syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12ba39c3e00000 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12bbb981e00000 The bug was bisected to: commit 94dacdbd5d2dfa2cffd308f128d78c99f855f5be Author: Thomas Gleixner Date: Mon Feb 24 14:01:32 2020 +0000 bpf: Tighten the requirements for preallocated hash maps bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=1300a2b1e00000 final crash: https://syzkaller.appspot.com/x/report.txt?x=1080a2b1e00000 console output: https://syzkaller.appspot.com/x/log.txt?x=1700a2b1e00000 IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+245129539c27fecf099a@syzkaller.appspotmail.com Fixes: 94dacdbd5d2d ("bpf: Tighten the requirements for preallocated hash maps") ------------[ cut here ]------------ trace type BPF program uses run-time allocation WARNING: CPU: 1 PID: 9523 at kernel/bpf/verifier.c:8187 check_map_prog_compatibility kernel/bpf/verifier.c:8187 [inline] WARNING: CPU: 1 PID: 9523 at kernel/bpf/verifier.c:8187 replace_map_fd_with_map_ptr kernel/bpf/verifier.c:8282 [inline] WARNING: CPU: 1 PID: 9523 at kernel/bpf/verifier.c:8187 bpf_check+0x6dcb/0xa49b kernel/bpf/verifier.c:10112 Kernel panic - not syncing: panic_on_warn set ... CPU: 1 PID: 9523 Comm: syz-executor700 Not tainted 5.6.0-rc3-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 panic+0x2e3/0x75c kernel/panic.c:221 __warn.cold+0x2f/0x35 kernel/panic.c:582 report_bug+0x27b/0x2f0 lib/bug.c:195 fixup_bug arch/x86/kernel/traps.c:174 [inline] fixup_bug arch/x86/kernel/traps.c:169 [inline] do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027 RIP: 0010:check_map_prog_compatibility kernel/bpf/verifier.c:8187 [inline] RIP: 0010:replace_map_fd_with_map_ptr kernel/bpf/verifier.c:8282 [inline] RIP: 0010:bpf_check+0x6dcb/0xa49b kernel/bpf/verifier.c:10112 Code: ff 48 8b bd 20 fe ff ff e8 02 56 2c 00 e9 bc cf ff ff e8 88 a0 ef ff 48 c7 c7 c0 8c 11 88 c6 05 c0 c7 de 08 01 e8 bd b3 c1 ff <0f> 0b e9 f3 ae ff ff c7 85 c0 fe ff ff f4 ff ff ff e9 d3 c6 ff ff RSP: 0018:ffffc90001ec7990 EFLAGS: 00010282 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000000000 RSI: ffffffff815bfd81 RDI: fffff520003d8f24 RBP: ffffc90001ec7b90 R08: ffff88809ae22380 R09: ffffed1015ce45c9 R10: ffffed1015ce45c8 R11: ffff8880ae722e43 R12: 0000000000000002 R13: ffffc90000d36048 R14: ffff88809a7d4800 R15: dffffc0000000000 bpf_prog_load+0xd92/0x15f0 kernel/bpf/syscall.c:2105 __do_sys_bpf+0x16f2/0x4020 kernel/bpf/syscall.c:3594 do_syscall_64+0xf6/0x790 arch/x86/entry/common.c:294 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x440539 Code: 18 89 d0 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 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 fb 13 fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffdd65517e8 EFLAGS: 00000246 ORIG_RAX: 0000000000000141 RAX: ffffffffffffffda RBX: 00000000004002c8 RCX: 0000000000440539 RDX: 0000000000000014 RSI: 0000000020fed000 RDI: 0000000000000005 RBP: 00000000006ca018 R08: 0000000000000000 R09: 00000000004002c8 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000401dc0 R13: 0000000000401e50 R14: 0000000000000000 R15: 0000000000000000 Kernel Offset: disabled Rebooting in 86400 seconds.. --- 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#status for how to communicate with syzbot. For information about bisection process see: https://goo.gl/tpsmEJ#bisection syzbot can test patches for this bug, for details see: https://goo.gl/tpsmEJ#testing-patches