Received: by 10.213.65.68 with SMTP id h4csp1861978imn; Sun, 8 Apr 2018 13:11:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx48tugi/OTe61NySHOopLyKmLjrhReWqN1GrkQJM9r2uL8g7cjwazF8KF/Oz9nkZQzllgUpu X-Received: by 2002:a17:902:3041:: with SMTP id u59-v6mr34932406plb.208.1523218294115; Sun, 08 Apr 2018 13:11:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523218294; cv=none; d=google.com; s=arc-20160816; b=fvkrhNKtc7XoZUh1GnKL6XoynSwYbd0DMDJcg0h1wvDXvufqW5iHF2mhLw0DURlMcF rZLHgCTCI/+mHkUXxKBvh49anMmIyFxbvwQH6dv7KUBXUucm4IwpMWKfzVx8PyIDPdoc PygErwE/Mz6QKm9he7/Een2JBy2w6/NfscUlm3C9Vjxd9HZEXIpSkR5hk7zdAYLV2A10 U619iG8FdOtE3hMnO2MYUy4kVFaN8/eFpEJWv4uueUlryFUzBG9vpqQVFqjdyPHghtSF QxR0KBy1l29F3BfEhTuXCs55WxyJo1YrVVBM4RlX5BUxL0l+z45BrMBSzziLiEobdvHS x1Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=5c1NbWy8Xyal0vnWOq3InW5FPs05DJboyBVEYSU4OQs=; b=CyksuwgJlk7et5Whsypv80eZXgw1xOrDE9kM/URFoRWUkdtUogDhrDRJO+JoNWvNrD ZNEslSSZ5JBTuWqIxDeHaDmuBNlRAkHjCWJo4WvbbPjqDyzV8uK/GioFIxS+5rgCQX8J bwKRAjnS3Toze5Ln6Lfujhqjdr16dM7fVMm3mkA/jmVQk5vWyxcCbyW4dRqq+m1M40C3 eCcOiYeiAR5i/64jRlysaqVzHMHkdH98h7PUjo5yYxZC7S7UPkxuch2o6P+M9z/e5cpz BMPWpbXS+XZzVu2qsTSAGGew9ct0Ezatz88dqFelFhFQAFKbK8myV7nwBoHcZCfFTo+H 4cwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XA6QpFh6; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h23-v6si863338plr.576.2018.04.08.13.10.54; Sun, 08 Apr 2018 13:11:34 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=XA6QpFh6; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752737AbeDHTw1 (ORCPT + 99 others); Sun, 8 Apr 2018 15:52:27 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:35457 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752061AbeDHTwZ (ORCPT ); Sun, 8 Apr 2018 15:52:25 -0400 Received: by mail-pl0-f66.google.com with SMTP id 61-v6so3833001plb.2; Sun, 08 Apr 2018 12:52:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=5c1NbWy8Xyal0vnWOq3InW5FPs05DJboyBVEYSU4OQs=; b=XA6QpFh6iFZeZTilOCF5OZgH29gaTzpKrw+lrdJB/xel3Go1Awir3YhDz92z9/s4Rh MA7sCra0YYeZGUFKXd+Irzt3AtzI/9GGopF0jNf87h9pbeMba3O44Q09odGu2Eh1uvd3 jHFGqXf3Mmw59JJNW+IibKaJuqALw1S2okU2ujls7WkcqC1JMKQNqRqYZ/WhEPWM8Fh/ ZBtGE+QV8+8i0JhAY/ZU/88VGEaA4QiOsyEcc8k8Do7sFn+vT1Q3/LiwpJL4RByoV9vh TQofwQ5Ed66uKY3KUGxzmUonyI/VgnyCPxbE9506+j6eMh+uvLkDGL4hvU9c1bbBkDWA cWyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=5c1NbWy8Xyal0vnWOq3InW5FPs05DJboyBVEYSU4OQs=; b=n/dV6MNLv5Q3BQuiFI6b2CxCw77dBa1u7hezqUtbLuLmYnUlSykIugHns+ui2RlRDH FaGbX8FTjd/b2aEacUqi6Mv8DdG+t95sMdd1Fi9K2d5TU9dePChpq7JGxy7700vQhyC2 IeZXtjD6FioqQQByNAfT/tZh2r6348qd5vTqx3WLxAllChQTrwE4e1fmskwc2ExT5uPX hDkDnsJPjDVQzku1orSj6qIQ/WUM5pO4/CONfEgAtE/wy0Z2dafLmYzUXd0t+63700bg kKPDuZIhDsP/wIZU02fXrhKPTP1G5qaARtqutfL1A6uQZNsLxCJdG2edE9wt04ol65pQ iKow== X-Gm-Message-State: AElRT7HnPHPPqWGTt33bpCxplLHEF2ApxcxToDs+R3gCDu7k/d3tTQrz GbBjnuOnhki3/Yrnc7ldAsU= X-Received: by 2002:a17:902:8ec8:: with SMTP id x8-v6mr36602306plo.179.1523217144902; Sun, 08 Apr 2018 12:52:24 -0700 (PDT) Received: from sol.localdomain (c-67-185-97-198.hsd1.wa.comcast.net. [67.185.97.198]) by smtp.gmail.com with ESMTPSA id j83sm33618566pfe.178.2018.04.08.12.52.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 08 Apr 2018 12:52:24 -0700 (PDT) Date: Sun, 8 Apr 2018 12:53:07 -0700 From: Eric Biggers To: syzbot Cc: Willem de Bruijn , Dmitry Vyukov , David Miller , Jamal Hadi Salim , =?utf-8?B?SmnFmcOtIFDDrXJrbw==?= , LKML , netdev , syzkaller-bugs@googlegroups.com, Cong Wang Subject: Re: WARNING in skb_warn_bad_offload Message-ID: <20180408195307.GD685@sol.localdomain> References: <001a11425c8667f897055cf052ff@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 01, 2017 at 09:50:18PM +0300, 'Dmitry Vyukov' via syzkaller-bugs wrote: > On Wed, Nov 1, 2017 at 9:48 PM, syzbot > > wrote: > > Hello, > > > > syzkaller hit the following crash on > > 720bbe532b7c8f5613b48dea627fc58ed9ace707 > > git://git.cmpxchg.org/linux-mmots.git/master > > compiler: gcc (GCC) 7.1.1 20170620 > > .config is attached > > Raw console output is attached. > > C reproducer is attached > > syzkaller reproducer is attached. See https://goo.gl/kgGztJ > > for information about syzkaller reproducers > > > This also happens on more recent commits, including linux-next > 36ef71cae353f88fd6e095e2aaa3e5953af1685d (Oct 20): > > syz0: caps=(0x00000400000058c1, 0x0000000000000000) len=4203 > data_len=2810 gso_size=8465 gso_type=3 ip_summed=0 > ------------[ cut here ]------------ > WARNING: CPU: 0 PID: 3473 at net/core/dev.c:2618 > skb_warn_bad_offload.cold.139+0x224/0x261 net/core/dev.c:2613 > Kernel panic - not syncing: panic_on_warn set ... > > CPU: 0 PID: 3473 Comm: a.out Not tainted 4.14.0-rc5-next-20171018 #15 > Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS Bochs 01/01/2011 > Call Trace: > __dump_stack lib/dump_stack.c:16 [inline] > dump_stack+0x1a8/0x272 lib/dump_stack.c:52 > panic+0x21e/0x4b7 kernel/panic.c:183 > __warn.cold.6+0x182/0x187 kernel/panic.c:546 > report_bug+0x232/0x330 lib/bug.c:183 > fixup_bug+0x3f/0x90 arch/x86/kernel/traps.c:177 > do_trap_no_signal arch/x86/kernel/traps.c:211 [inline] > do_trap+0x132/0x280 arch/x86/kernel/traps.c:260 > do_error_trap+0x11f/0x390 arch/x86/kernel/traps.c:297 > do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:310 > invalid_op+0x18/0x20 arch/x86/entry/entry_64.S:905 > RIP: 0010:skb_warn_bad_offload.cold.139+0x224/0x261 net/core/dev.c:2613 > RSP: 0018:ffff880064797038 EFLAGS: 00010286 > RAX: 000000000000006f RBX: ffff88006365efe8 RCX: 0000000000000000 > RDX: 000000000000006f RSI: ffffffff815c88c1 RDI: ffffed000c8f2dfd > RBP: ffff880064797090 R08: ffff8800686f86c0 R09: 0000000000000002 > R10: ffff8800686f86c0 R11: 0000000000000000 R12: ffff8800538b1680 > R13: 0000000000000000 R14: ffff8800538b1680 R15: 0000000000002111 > __skb_gso_segment+0x69e/0x860 net/core/dev.c:2824 > skb_gso_segment include/linux/netdevice.h:3971 [inline] > validate_xmit_skb+0x29f/0xca0 net/core/dev.c:3074 > validate_xmit_skb_list+0xb7/0x120 net/core/dev.c:3125 > sch_direct_xmit+0x5b5/0x710 net/sched/sch_generic.c:181 > __dev_xmit_skb net/core/dev.c:3206 [inline] > __dev_queue_xmit+0x1e41/0x2350 net/core/dev.c:3473 > dev_queue_xmit+0x17/0x20 net/core/dev.c:3538 > packet_snd net/packet/af_packet.c:2956 [inline] > packet_sendmsg+0x487a/0x64b0 net/packet/af_packet.c:2981 > sock_sendmsg_nosec net/socket.c:632 [inline] > sock_sendmsg+0xd2/0x120 net/socket.c:642 > ___sys_sendmsg+0x7cc/0x900 net/socket.c:2048 > __sys_sendmsg+0xe6/0x220 net/socket.c:2082 > SYSC_sendmsg net/socket.c:2093 [inline] > SyS_sendmsg+0x36/0x60 net/socket.c:2089 > entry_SYSCALL_64_fastpath+0x1f/0xbe > RIP: 0033:0x44bab9 > RSP: 002b:00000000007eff18 EFLAGS: 00000246 ORIG_RAX: 000000000000002e > RAX: ffffffffffffffda RBX: 0000000020001046 RCX: 000000000044bab9 > RDX: 0000000000004010 RSI: 00000000207fcfc8 RDI: 0000000000000004 > RBP: 0000000000000086 R08: 850b2da14d2a3706 R09: 0000000000000000 > R10: 1b91126b7f398aaa R11: 0000000000000246 R12: 0000000000000000 > R13: 0000000000407950 R14: 00000000004079e0 R15: 0000000000000000 > > > > > > > ------------[ cut here ]------------ > > WARNING: CPU: 0 PID: 2986 at net/core/dev.c:2585 > > skb_warn_bad_offload+0x2a9/0x380 net/core/dev.c:2580 > > Kernel panic - not syncing: panic_on_warn set ... > > > > CPU: 0 PID: 2986 Comm: syzkaller546001 Not tainted 4.13.0-mm1+ #7 > > Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS > > Google 01/01/2011 > > Call Trace: > > __dump_stack lib/dump_stack.c:16 [inline] > > dump_stack+0x194/0x257 lib/dump_stack.c:52 > > panic+0x1e4/0x417 kernel/panic.c:181 > > __warn+0x1c4/0x1d9 kernel/panic.c:542 > > report_bug+0x211/0x2d0 lib/bug.c:183 > > fixup_bug+0x40/0x90 arch/x86/kernel/traps.c:178 > > do_trap_no_signal arch/x86/kernel/traps.c:212 [inline] > > do_trap+0x260/0x390 arch/x86/kernel/traps.c:261 > > do_error_trap+0x120/0x390 arch/x86/kernel/traps.c:298 > > do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:311 > > invalid_op+0x18/0x20 arch/x86/entry/entry_64.S:905 > > RIP: 0010:skb_warn_bad_offload+0x2a9/0x380 net/core/dev.c:2580 > > RSP: 0018:ffff8801ce73f0a0 EFLAGS: 00010282 > > RAX: 000000000000006f RBX: ffff8801cd84cde0 RCX: 0000000000000000 > > RDX: 000000000000006f RSI: 1ffff10039ce7dd4 RDI: ffffed0039ce7e08 > > RBP: ffff8801ce73f0f8 R08: ffff8801ce73e790 R09: 0000000000000000 > > R10: 0000000000000000 R11: 0000000000000000 R12: ffff8801ce7802c0 > > R13: 0000000000000000 R14: ffff8801ce7802c0 R15: 0000000000002111 > > __skb_gso_segment+0x607/0x7f0 net/core/dev.c:2791 > > skb_gso_segment include/linux/netdevice.h:3951 [inline] > > validate_xmit_skb+0x4ba/0xb20 net/core/dev.c:3041 > > validate_xmit_skb_list+0xb7/0x120 net/core/dev.c:3092 > > sch_direct_xmit+0x3b6/0x6d0 net/sched/sch_generic.c:181 > > __dev_xmit_skb net/core/dev.c:3173 [inline] > > __dev_queue_xmit+0x15fe/0x1e40 net/core/dev.c:3440 > > dev_queue_xmit+0x17/0x20 net/core/dev.c:3505 > > packet_snd net/packet/af_packet.c:2950 [inline] > > packet_sendmsg+0x3bbf/0x6030 net/packet/af_packet.c:2975 > > sock_sendmsg_nosec net/socket.c:633 [inline] > > sock_sendmsg+0xca/0x110 net/socket.c:643 > > ___sys_sendmsg+0x75b/0x8a0 net/socket.c:2049 > > __sys_sendmsg+0xe5/0x210 net/socket.c:2083 > > SYSC_sendmsg net/socket.c:2094 [inline] > > SyS_sendmsg+0x2d/0x50 net/socket.c:2090 > > entry_SYSCALL_64_fastpath+0x1f/0xbe > > RIP: 0033:0x445489 > > RSP: 002b:00000000007efe68 EFLAGS: 00000217 ORIG_RAX: 000000000000002e > > RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000445489 > > RDX: 0000000000004010 RSI: 00000000207fcfc8 RDI: 0000000000000004 > > RBP: 0000000000000082 R08: 000000000000cdf3 R09: 000000000000cdf3 > > R10: 0000000000000004 R11: 0000000000000217 R12: 0000000000402ae0 > > R13: 0000000000402b70 R14: 0000000000000000 R15: 0000000000000000 > > Dumping ftrace buffer: > > (ftrace buffer empty) > > Kernel Offset: disabled > > Rebooting in 86400 seconds.. > > > > > > --- > > This bug is generated by a dumb bot. It may contain errors. > > See https://goo.gl/tpsmEJ for details. > > Direct all questions to syzkaller@googlegroups.com. > > Please credit me with: Reported-by: syzbot > > > > syzbot will keep track of this bug report. > > Once a fix for this bug is committed, please reply to this email with: > > #syz fix: exact-commit-title Apparently fixed by commit 8d74e9f88d65a, so telling syzbot: #syz fix: net: avoid skb_warn_bad_offload on IS_ERR - Eric