Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp195973ybl; Wed, 4 Dec 2019 00:54:00 -0800 (PST) X-Google-Smtp-Source: APXvYqz9uJgyo36SKMnZfyr66axqw8b3o7BjhQgLlzk3HL+xKgdWNAa0SJ0YwrdroMDmBlkLZORp X-Received: by 2002:a9d:7483:: with SMTP id t3mr1688842otk.262.1575449639952; Wed, 04 Dec 2019 00:53:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575449639; cv=none; d=google.com; s=arc-20160816; b=SZ52kVcnmWTGFFO2odu4kMsIGU78qL8zbV037gt8Gnv6SOHlD/OzsQa8FaxfwG/Q9U 1hjUBw/phd0DPbt/7En/0u4KdENjzDBAEMLsBUyCB/5kar7qDBjQIa5Q/hzuMRT13VXu Y4dJUssuu1sr+tCI8KQerys6VnGbr4Mbl0hohgCy2abQNJ+3TJQGDpm/ZiOuIQPhwrki Vrx4bg2sJIGT4cuC/MKvHLj6PhNa9c1ANnwTcuw9OWVnC/as/HRNJeVOJPnbzuMaDehS Rb43nhkkB4DCMmpEdheda1+Oe9YH4tJ4+fFMmxLoGAbDwY2KFhs0FyvUoPWhS017dHab j3+Q== 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=eFxpjE5vqC11Qb7kVYdyl3QjT2lQv9V/mzQLuWIL6ow=; b=SbU7oYDiVbTPtXLhPWY2u82zgxQEx8OCVo0GKk2YLbizxZLBrBqYEOilvmNkHU2tQ9 zNbLGbWr4fT2pPFZwqclw9SuHt2yE4u3YjlHJCKqkE1SSE+CxaH/jLXf2gzqAoSEZEYe P6Tx6WcLMxDDe1WFanqDE/NkOnrKHQDLWyZGNRxo2+aYCNTvBLt3LcP3u/F6Ntp1KKK6 8v9odtSDcQaZAEIhBe5zL+mqbsdl6TDjN20D0T/AXmTvg1gLmH8LKHKcbsRq8WBYChPM rjcel2YaclNrafLWFNr7rLyozFclwtnEJrj8n6XNSJNVujDovYE5YglYTuZ0mSi1np9X EECA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qtzjdrFq; 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 j23si2733725otr.48.2019.12.04.00.53.46; Wed, 04 Dec 2019 00:53:59 -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=qtzjdrFq; 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 S1727213AbfLDIw2 (ORCPT + 99 others); Wed, 4 Dec 2019 03:52:28 -0500 Received: from mail-qk1-f196.google.com ([209.85.222.196]:38052 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726926AbfLDIw0 (ORCPT ); Wed, 4 Dec 2019 03:52:26 -0500 Received: by mail-qk1-f196.google.com with SMTP id k6so647344qki.5 for ; Wed, 04 Dec 2019 00:52:25 -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=eFxpjE5vqC11Qb7kVYdyl3QjT2lQv9V/mzQLuWIL6ow=; b=qtzjdrFqUraz67iCJUJLMgk648tBILdd6AFOARTl4AbtEz6pGnUuLD28JHPtptGCpp hrSw77YmYLT0+uRXl94NZbBnkUTyKqA02oZGjzw4WOOrGByi2ONdhTmOBspy3JJOIb+6 dq/sTGBjBsgjq19la6I+K/cumYUb5sX28XQg2UtQIWCuFCjpqVLv8Dirv0yIhQCEGNBk odLoCo2bIbzC1rzU3BbX2Lp83PkNvKEYKmAmK375sLYvQn2Gqy4XpUZDQXTC13e2MaY7 3l2aZ1uEsnd3TOA7uBwo7eDG+OnomdzPuOC5hQD5tylegy4HtM903gQE3UyNJhCU+ynn kbHg== 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=eFxpjE5vqC11Qb7kVYdyl3QjT2lQv9V/mzQLuWIL6ow=; b=lO+U6qzDD55ece6/K+0Y31vA3ILIpE8Nqftp8Sy+/e7QiYarcuvUCxbxfVQjyc8JRV lSlb22Bk3x6rs22T2Bmn6iZyrMTHu/MEphyxJ4AUPky9HAp0ndhTVPUHs6j/rGvzMp/6 bLA0t4278btFnbewgdT1pOlsoJI9tFCN+hYMgdP6y/itjb1QIx0/S4Iu0p3emdbqVz/H aGJVfEAHPanUwvM3l9TwpV+I5IzRi8PJn2FyEyehrTGvKcQR/CsKUR8QstpvkcQAs09i zz/cM8HoX9/ufalL3uQTkq1xasuHqf/RdVBW/lXmrKE/Ksn2sjPN6N0dAuvR7exz24F4 hiLw== X-Gm-Message-State: APjAAAWzLuDGDKjZtRsspkcaxQSsvF1p71sdhFGI58FvJNi2xsqkZ8WZ nqonas9Vj7WMGun5yhNL7dqcVNcVbhaurXYEHPvOxw== X-Received: by 2002:a37:76c5:: with SMTP id r188mr1747286qkc.256.1575449544636; Wed, 04 Dec 2019 00:52:24 -0800 (PST) MIME-Version: 1.0 References: <001a114372a6074e6505642b7f72@google.com> <000000000000039751059891760e@google.com> <20191202183912.GC377783@localhost.localdomain> <20191203115616.GA4707@hmswarspite.think-freely.org> In-Reply-To: <20191203115616.GA4707@hmswarspite.think-freely.org> From: Dmitry Vyukov Date: Wed, 4 Dec 2019 09:52:13 +0100 Message-ID: Subject: Re: kernel BUG at net/core/skbuff.c:LINE! (3) To: Neil Horman Cc: Marcelo Ricardo Leitner , syzbot , David Miller , Alexey Kuznetsov , LKML , linux-sctp@vger.kernel.org, Xin Long , mvohra@vmware.com, netdev , syzkaller-bugs , William Tu , Vladislav Yasevich , websitedesignservices4u@gmail.com, Hideaki YOSHIFUJI 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 Tue, Dec 3, 2019 at 12:56 PM Neil Horman wrote: > > On Tue, Dec 03, 2019 at 09:42:14AM +0100, Dmitry Vyukov wrote: > > On Mon, Dec 2, 2019 at 7:39 PM Marcelo Ricardo Leitner > > wrote: > > > > > > On Sat, Nov 30, 2019 at 04:37:56PM +0100, Dmitry Vyukov wrote: > > > > On Sat, Nov 30, 2019 at 3:50 PM syzbot > > > > wrote: > > > > > > > > > > syzbot has bisected this bug to: > > > > > > > > > > commit 84e54fe0a5eaed696dee4019c396f8396f5a908b > > > > > Author: William Tu > > > > > Date: Tue Aug 22 16:40:28 2017 +0000 > > > > > > > > > > gre: introduce native tunnel support for ERSPAN > > > > > > > > > > bisection log: https://syzkaller.appspot.com/x/bisect.txt?x=158a2f86e00000 > > > > > start commit: f9f1e414 Merge tag 'for-linus-4.16-rc1-tag' of git://git.k.. > > > > > git tree: upstream > > > > > final crash: https://syzkaller.appspot.com/x/report.txt?x=178a2f86e00000 > > > > > console output: https://syzkaller.appspot.com/x/log.txt?x=138a2f86e00000 > > > > > kernel config: https://syzkaller.appspot.com/x/.config?x=34a80ee1ac29767b > > > > > dashboard link: https://syzkaller.appspot.com/bug?extid=b2bf2652983d23734c5c > > > > > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=147bfebd800000 > > > > > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13d8d543800000 > > > > > > > > > > Reported-by: syzbot+b2bf2652983d23734c5c@syzkaller.appspotmail.com > > > > > Fixes: 84e54fe0a5ea ("gre: introduce native tunnel support for ERSPAN") > > > > > > > > > > For information about bisection process see: https://goo.gl/tpsmEJ#bisection > > > > > > > > Humm... the repro contains syz_emit_ethernet, wonder if it's > > > > remote-triggerable... > > > > > > The call trace is still from the tx path. Packet never left the system > > > in this case. > > > > My understanding is that this does not necessarily mean that the > > remote side is not involved. There is enough state on the host for L4 > > protocols, so that the remote side can mess things and then the bad > > thing will happen with local trigger. But that local trigger can be > > just anything trivial that everybody does. > > > But thats not really helpful. Unless you see an explicit path from the receive > side to ip6_append_data, Theres no real way for a received packet to reach this > code, so we can't really call it remotely triggerable. > > My guess is, since this is coming from the rawv6_sendmsg path, that the raw > protocol is somehow not marshaling its data in a way that ip6_append_data > expects. If it's in the local send path and does not use any remotely controllable data, then this should be good enough estimation of not being a remote attack vector.