Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp654287imu; Fri, 4 Jan 2019 04:49:11 -0800 (PST) X-Google-Smtp-Source: ALg8bN7DtxJSt4GfiyeNgCfMt4Of7ag0Fcl6s6FPThbAsYyzqtJK4DIeNrVpXpc7UvhBtBCsNF6d X-Received: by 2002:a65:4381:: with SMTP id m1mr1519066pgp.358.1546606151864; Fri, 04 Jan 2019 04:49:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546606151; cv=none; d=google.com; s=arc-20160816; b=Ne2ztVReIDe9Mbfn5IkyxcmfzRc2q99E64t1T0+2wTt/Dj1u41S9RucM74KTLYZGSF tcQBFuZ2JZg2nlPQ+ttf6KQ1L0Nkez3fjVR7KxHSJawtfzB7i7XxmFlYDAAXjh7MKUMw wOQyq7++66tvPxnfd/fftC2d0w8P16IIQvFl3rg0K2Ej+b9nSSvmNvXLV5K3w1fnnQUL KkZvOg1cltcD05p0N7HgREBZixHgLBwYMhXVy/484ndUhY4goqJnAWQFcNybzpACV1F8 UnL0X5Ecp8kvb7713LXAC1EI6yq5BcAnMdogN92dGV7YpMoOEQFVOFaVIOMP3dFzYHEj UOcA== 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=/uoWL0t0iMkvXvq5HcdVPIlDfpkDMSDIYS2Wnw4EHBM=; b=pc5uwhIofAQ8mk6DlPs6OyN7tM39yHLj7DXKeMvH0/42i69ivpUS5FT8y7/zPj9RXL /4TUPwo3C9RJAqK0bf5RJ0yuS8ZtYkZUifCjyBCvfc7uq5KK933BUEQ1gkr6NCPCWk1A RmeVo1aqNIFGudEQF5HRloRPk3aYwqOl3ThTQRoHK4O5L9GyEPlQhAzU5lcF0VA+/W3e SQMomFYuaHJlhDOCXBPpXtLuAQczL/sBVti5lFowZ8pvP4TXHGDqkDpAGOZiWCLSgIT8 iESmd6heYbGTN3B4xzf4Ql5rSdi3hyX619gf3I4GryB/IIvIg27MyGkqRdiDdFS/VOEK 8xXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=im8xgItr; 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 s123si11121790pfb.274.2019.01.04.04.48.54; Fri, 04 Jan 2019 04:49:11 -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=im8xgItr; 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 S1727551AbfADLFT (ORCPT + 99 others); Fri, 4 Jan 2019 06:05:19 -0500 Received: from mail-it1-f194.google.com ([209.85.166.194]:56111 "EHLO mail-it1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726028AbfADLFT (ORCPT ); Fri, 4 Jan 2019 06:05:19 -0500 Received: by mail-it1-f194.google.com with SMTP id m62so1099027ith.5 for ; Fri, 04 Jan 2019 03:05:17 -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=/uoWL0t0iMkvXvq5HcdVPIlDfpkDMSDIYS2Wnw4EHBM=; b=im8xgItrHCINn5sJaxU1Yv98xg5jzvEAlhpvXTahtyU42hFD+gTSBDOEyt33DSFCUU AMOX7EaSBnALuxrEY2xVs1dVl3qKD/MQLU2Pn7QtNnbXHM1n1qNYYzoFBRoxLHtGh9Gd l6t/3mgRkZx5mskZu+HcgPg62mj0neUO2Sfm3zjj2eVFSE/11cDTF4DT7deepABPKgEt DE28xbIYVzgaVw16E0Qb9Qn1ZpfOvxvFELirjWA6sGALcuj0nw4Jhtq/K1Avc06QvbON b6jh4f19B4vqAYy0IeypfUXvhOn8/gLNHfSTefTFhG30xuDaoFrtx/OlDV5N4pr0rDsb qD7g== 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=/uoWL0t0iMkvXvq5HcdVPIlDfpkDMSDIYS2Wnw4EHBM=; b=sI+D28gIBRK4Sj14lArha97qtHlMO+5TbG2sAo1l1HnAd8cYaxylOBt+QywRAQKAS0 GaaBGfb1osuQwYDRoxNy1r3RrH3PFUt8dPmIXeWIBwJK5koUojDrOYP+L8PYbKUY01uq Lmuia/OwoEcoMhQovIJXID0ekvIrQj200giY9N/Otzn+ismtFlOk8FdWGDV7YZvjpda/ m6DB/a0/EwVgpIyNM+WkeqTAm8FR37sdiO8yZcpmT/2kjo7Y5J46ujY++4Jblcx31izE r7u0FJESTh0OBDPpnq3QMS3WLR/wrsZuX6XIVW9Ci1t7QpN3geUo9AbIzsPpdnC/GJhD nutw== X-Gm-Message-State: AJcUuke33VAV4QkCTyVBYKPFC/qbTVZajAdJJO9iwluWOdZAqU5Kq4Ac wxwlEobYAMXBxTwPJUCs+01NEkVTvWOPEWkmDlZKxA== X-Received: by 2002:a24:6511:: with SMTP id u17mr650010itb.12.1546599916677; Fri, 04 Jan 2019 03:05:16 -0800 (PST) MIME-Version: 1.0 References: <000000000000513fb7057e8d7013@google.com> <20190103210743.6518841e@redhat.com> <20190103225404.66b0ec9f@redhat.com> <20190104115435.478b4b4a@redhat.com> In-Reply-To: <20190104115435.478b4b4a@redhat.com> From: Dmitry Vyukov Date: Fri, 4 Jan 2019 12:05:04 +0100 Message-ID: Subject: Re: kernel panic: stack is corrupted in udp4_lib_lookup2 To: Stefano Brivio Cc: Willem de Bruijn , Eric Dumazet , syzbot , David Miller , Alexey Kuznetsov , linux-kernel , Network Development , syzkaller-bugs , 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 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. > 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). > 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.