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=-0.4 required=3.0 tests=FROM_LOCAL_DIGITS, FROM_LOCAL_HEX,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS 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 334F0C433DF for ; Sun, 5 Jul 2020 07:20:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1A82420724 for ; Sun, 5 Jul 2020 07:20:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726662AbgGEHUT (ORCPT ); Sun, 5 Jul 2020 03:20:19 -0400 Received: from mail-io1-f72.google.com ([209.85.166.72]:49980 "EHLO mail-io1-f72.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725894AbgGEHUS (ORCPT ); Sun, 5 Jul 2020 03:20:18 -0400 Received: by mail-io1-f72.google.com with SMTP id d20so21807949iom.16 for ; Sun, 05 Jul 2020 00:20: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:message-id:subject:from:to; bh=pAcGC6+psa2V/SCa2Ha9u6KtoRKdEBhZ1vBT1tVTLzA=; b=mCnGSpiTEYl+ueUlofp0G8TY5Pv2I+NQEeF/1zEBcT/T4+VdL8gkPb+jj3ox1xKAme DXLdaYFJ8HoPYJPHi4yaTRdx/MpTM4e7frByBi102cVypW2BfnC6lmrhk4Ltbdg1zDOu vbQhH9yiHogj9fcOcZBxzcAbSYzU2LeXYl3cvrDGlUBxCBX39llaVJyQU9kryVB86C0R ou0S7j2uHKX3QAf4Q1NTpQKEx80ssjAT3UgsJnxxdqbPyIgqYFbYxCwXGSO1LaQP1flD chNE4J+QuwxRGKIO6HgBizG3fZ9QcAnJ0bUiZagVypU+TquVjF2rn6QuLB621gmSmAAr /o/g== X-Gm-Message-State: AOAM532M8eBjsJmY/R65bvedj7NVbkmzpXZpoD1u7IMoAWDTRAiPrBHh IjOM4H5xyxxsk1lQt1Q8MAPiJvrBjOQZ72PJPMPG5mtp9g4J X-Google-Smtp-Source: ABdhPJypt9Y88ghxSt7nKGHMiTroHIa8PUIpQE7HmqOZgR/TJrvXzaoQmIe5gSGdebYCw2uYqRXiWqiOvKXygaOqCvKxZyJ+3RoA MIME-Version: 1.0 X-Received: by 2002:a05:6602:2d89:: with SMTP id k9mr19915215iow.41.1593933618033; Sun, 05 Jul 2020 00:20:18 -0700 (PDT) Date: Sun, 05 Jul 2020 00:20:18 -0700 X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <0000000000001936ab05a9ac97d1@google.com> Subject: WARNING in bpf_xdp_adjust_tail 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, netdev@vger.kernel.org, songliubraving@fb.com, syzkaller-bugs@googlegroups.com, yhs@fb.com Content-Type: text/plain; charset="UTF-8" Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hello, syzbot found the following crash on: HEAD commit: 2ce578ca net: ipv4: Fix wrong type conversion from hint to.. git tree: net console output: https://syzkaller.appspot.com/x/log.txt?x=1190cf23100000 kernel config: https://syzkaller.appspot.com/x/.config?x=bf3aec367b9ab569 dashboard link: https://syzkaller.appspot.com/bug?extid=c3157bda041952444952 compiler: gcc (GCC) 10.1.0-syz 20200507 Unfortunately, I don't have any reproducer for this crash yet. IMPORTANT: if you fix the bug, please add the following tag to the commit: Reported-by: syzbot+c3157bda041952444952@syzkaller.appspotmail.com WARNING: CPU: 0 PID: 22595 at net/core/filter.c:3463 ____bpf_xdp_adjust_tail net/core/filter.c:3463 [inline] WARNING: CPU: 0 PID: 22595 at net/core/filter.c:3463 bpf_xdp_adjust_tail+0x18e/0x1e0 net/core/filter.c:3452 Kernel panic - not syncing: panic_on_warn set ... CPU: 0 PID: 22595 Comm: syz-executor.4 Not tainted 5.8.0-rc2-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+0x18f/0x20d lib/dump_stack.c:118 panic+0x2e3/0x75c kernel/panic.c:231 __warn.cold+0x20/0x45 kernel/panic.c:600 report_bug+0x1bd/0x210 lib/bug.c:198 exc_invalid_op+0x24d/0x400 arch/x86/kernel/traps.c:235 asm_exc_invalid_op+0x12/0x20 arch/x86/include/asm/idtentry.h:563 RIP: 0010:____bpf_xdp_adjust_tail net/core/filter.c:3463 [inline] RIP: 0010:bpf_xdp_adjust_tail+0x18e/0x1e0 net/core/filter.c:3452 Code: 37 fb 84 db 74 09 49 c7 c4 ea ff ff ff eb c7 e8 f8 f5 37 fb 44 89 e6 48 c7 c7 e0 fc fd 88 c6 05 dc f5 6d 04 01 e8 94 3b 09 fb <0f> 0b eb d8 e8 d9 48 77 fb e9 c5 fe ff ff e8 df 48 77 fb e9 92 fe RSP: 0018:ffffc900018878e0 EFLAGS: 00010286 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000 RDX: 0000000000040000 RSI: ffffffff815ce8d7 RDI: fffff52000310f0e RBP: 0000000000000000 R08: 0000000000000001 R09: ffff8880ae620fcb R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000020000 R13: ffff88804c20feef R14: ffff88804c20feef R15: 0000000000000000 bpf_prog_4add87e5301a4105+0x20/0x818 bpf_prog_run_xdp include/linux/filter.h:734 [inline] netif_receive_generic_xdp+0x70f/0x1760 net/core/dev.c:4647 do_xdp_generic net/core/dev.c:4735 [inline] do_xdp_generic+0x96/0x1a0 net/core/dev.c:4728 tun_get_user+0x22d2/0x35b0 drivers/net/tun.c:1905 tun_chr_write_iter+0xba/0x151 drivers/net/tun.c:1999 call_write_iter include/linux/fs.h:1907 [inline] new_sync_write+0x422/0x650 fs/read_write.c:484 __vfs_write+0xc9/0x100 fs/read_write.c:497 vfs_write+0x268/0x5d0 fs/read_write.c:559 ksys_write+0x12d/0x250 fs/read_write.c:612 do_syscall_64+0x60/0xe0 arch/x86/entry/common.c:359 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x416661 Code: Bad RIP value. RSP: 002b:00007f8bc3971c60 EFLAGS: 00000293 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000005095a0 RCX: 0000000000416661 RDX: 000000000000fdef RSI: 0000000020000080 RDI: 00000000000000f0 RBP: 000000000078bf00 R08: 0000000000000000 R09: 0000000000000000 R10: 00007f8bc39729d0 R11: 0000000000000293 R12: 00000000ffffffff R13: 0000000000000bfd R14: 00000000004ce559 R15: 00007f8bc39726d4 Kernel Offset: disabled --- 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.