Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp974429imu; Fri, 4 Jan 2019 10:31:10 -0800 (PST) X-Google-Smtp-Source: AFSGD/XksxUvWSOPWTRce5VPHMkTiPBW1bd+xVeM+eNLdEFSuN1tTQVkS4ssIBw97ywFF1Iq0De1 X-Received: by 2002:a62:7792:: with SMTP id s140mr53178617pfc.26.1546626670697; Fri, 04 Jan 2019 10:31:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546626670; cv=none; d=google.com; s=arc-20160816; b=FHBQJxMZrXJnqvpyky9qJcyhGNPQDxUATDN1HuJ3wP1SDSCTXftmvKJfe/OwSVWKO5 U8QQgXCGVgGq0j/LY7l6k+ag1dvrUwYcZ3juMJOaJWHBtmqsZcj1vaNp34keishZQzDc TWXnjaWsCXxVjynKp4WbA1/IVALyEQAahdoL9a0cKGK2pKNH1aKdS9m9N7shgk4ADTp0 TGTMgn9/FgUL8zeIEXkFxEjBQ7jnSvQJXB+Us/GutF02pyPTdCcxITKCDTz/DDw2/gyX Wb78lbDZYeLq7cTXkCEDDFb/YZKhiylFwYI6KecWXipJi9ihutyVbNgfbfJGcd6NXyZQ lboA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=pRP8eQOOnTUSKd4W5/qcN9L3NdAsq39HpJbTpQLYs2E=; b=MgNpEERTqKAQN4125DzoyvOW8ElWCxp+M/oTuxjGu9UhufUpqZrY6P/QdVTcfTqZ8I K7yItte2G00w6cMCK5ZSu1NAnRAUxZ57OKcFILbBpklAGwAEcb5lZ9wkkCxnl5F8VMsa MJQUpX1l1homt/phM5sDn9nKb/hQqVQ/fi4t2o5cwr6u/eOEmCCuUo8eZzUJqXdaPtje RiOBafpNkZeHZMRZHZlJqLq0KhxHF0589l7nQ9Nva+Pt+G0SJ1G3SSQ7vLR2Dnu4qWG9 /oU7H5o3bc7T67LBSVUDwEcVo9ZhgjeP61juDaooEA3jxh41cvI27b543zXFufA+BnKe Nluw== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m35si42345364pgb.246.2019.01.04.10.30.55; Fri, 04 Jan 2019 10:31:10 -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; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728065AbfADROe (ORCPT + 99 others); Fri, 4 Jan 2019 12:14:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41288 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726256AbfADROd (ORCPT ); Fri, 4 Jan 2019 12:14:33 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id F201281DE2; Fri, 4 Jan 2019 17:14:32 +0000 (UTC) Received: from localhost (ovpn-200-16.brq.redhat.com [10.40.200.16]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 91CC8101F97D; Fri, 4 Jan 2019 17:14:29 +0000 (UTC) Date: Fri, 4 Jan 2019 18:14:24 +0100 From: Stefano Brivio To: Dmitry Vyukov Cc: Willem de Bruijn , Eric Dumazet , syzbot , David Miller , Alexey Kuznetsov , linux-kernel , Network Development , syzkaller-bugs , Hideaki YOSHIFUJI Subject: Re: kernel panic: stack is corrupted in udp4_lib_lookup2 Message-ID: <20190104181424.5ad4b1de@redhat.com> In-Reply-To: References: <000000000000513fb7057e8d7013@google.com> <20190103210743.6518841e@redhat.com> <20190103225404.66b0ec9f@redhat.com> <20190104115435.478b4b4a@redhat.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Fri, 04 Jan 2019 17:14:33 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Jan 2019 12:05:04 +0100 Dmitry Vyukov wrote: > On Fri, Jan 4, 2019 at 11:54 AM Stefano Brivio wrote: > > > > On Fri, 4 Jan 2019 11:32:12 +0100 > > Dmitry Vyukov wrote: > > > > > On Thu, Jan 3, 2019 at 10:54 PM Stefano Brivio wrote: > > > > > > > > On Thu, 3 Jan 2019 15:15:06 -0600 > > > > Willem de Bruijn wrote: > > > > > > > > > syzbot generated stack traces with > > > > > > > > > > [ 183.517380] udpv6_err+0x46/0x60 > > > > > [ 183.520739] ? __udp6_lib_err+0x1890/0x1890 > > > > > [ 183.525054] gue6_err_proto_handler+0x199/0x280 > > > > > > > > Where? I can't find that in any logs linked from the dashboard at > > > > https://syzkaller.appspot.com/bug?extid=4ad25edc7a33e4ab91e0 :( > > > > > > Stefano, there are these 4 bugs reported that have similarly looking > > > reproducers involving udp sockets and that crash modes that looks like > > > stack corruption/overflow: > > > > > > https://syzkaller.appspot.com/bug?extid=14005fa30c9a07192934 > > > https://syzkaller.appspot.com/bug?extid=d14090007dc9ba5fa9b7 > > > https://syzkaller.appspot.com/bug?extid=137ed32ec9a6d5b0d5fe > > > https://syzkaller.appspot.com/bug?id=d5bc3e0c66d200d72216ab343a67c4327e4a3452 > > > > > > Are these the same bug as this? > > > > Judging from the reproducers for the first three, they seem to be. > > OK, then I will mark them as dups of this one. syzbot just finished the tests I requested and couldn't reproduce the first three issues with the fix I posted (fou6: Prevent unbounded recursion in GUE error handler). This should prove they are in fact the same issue. > > I > > guess I can trigger tests also for those by sending a (sharp)syz > > test ... e-mail with the patch to the Reported-by: addresses, right? > > Correct. > These should be on LKML, but as you noted you can just add the syzbot > email with tag to TO/CC. That email is available in the Reported-by > tag (and also shown on the dashboard). Okay, thanks for confirming. > > And the three reports you pointed out from the pile of corrupted > > reports also seem to match, others look unrelated. > > I've added these as tests: > > https://github.com/google/syzkaller/blob/master/pkg/report/testdata/linux/report/341 > https://github.com/google/syzkaller/blob/master/pkg/report/testdata/linux/report/342 > https://github.com/google/syzkaller/blob/master/pkg/report/testdata/linux/report/343 > https://github.com/google/syzkaller/blob/master/pkg/report/testdata/linux/report/344 > > Will try to figure out how to distinguish them from true corrupted > reports. Usually when Call Trace does not have any frames, it's a sign > of a corrupted report, and in other crashes we see the same report but > with a stack trace. But some stack-corruption-related reliably don't > have stack traces (not corrupted). But then some other > stack-corruption-related crashes do have stack traces, and for these > no stack trace again means a corrupted kernel output. Amusingly this > is one of the most complex parts of syzkaller. I'm not sure how complicated that would be, but what about some metric based on valid symbol names being reported? -- Stefano