Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp357264pxa; Fri, 21 Aug 2020 09:01:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw0X/noh3EZpH81g51SQeKQz4qI05UYCpgwSYxh4KdAzZl3IH/1ADvDbO4ADjbTp3hPC3KM X-Received: by 2002:a17:906:36c2:: with SMTP id b2mr3447061ejc.238.1598025716533; Fri, 21 Aug 2020 09:01:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598025716; cv=none; d=google.com; s=arc-20160816; b=yVzIEAVw6klZ4cm2pi7IRse3E7YZNuxNNWaXw1hkBM0CQBNdUzzzFvFCLwk/zXBQ9S qUF913WBjfZlom12ASXqod9KCQAC2cufMr6LvGy7ZPQE4N6Vjh9U0QTW2ecukhUnc4Hf gTnfK6yy/KlDk3VH8vS4jgEWYOpgg+rCywEGIcv/drxJfAAqsxeq4K/i+ivydG0x2EG2 hmM1UsQXWieyZMYxLlmPPKKiQfDw5k0LaFD3Z2Kc5+FnPURMnfHEoA7zS7SR48SRtJu0 JR9cB/mFYpAV/PA9rInFPHYyULuwypp3J5joE2zRkRJvmip1RuLsdRYZXU+5ylBW+wsq NaEg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dkim-signature; bh=fYmJxiZWMdQOy1fXzh3kYSU/yGBTfQ1oXQXK6Nxh6Ew=; b=o59i5cRWdA1WhUG58Hx5paTTxZgKwlxqYgkIBNP0HFHj5pKroiiu+h6pw5gVm02C2p QEJ8yBaur1Ua5EZldbZ8TJ90zDZmvByRlauK5Yty0nGwu+zl4MTHOymx7tW52hsS4MhJ VerSLRzMq6CsZYwMxyYENgkQg8ck4w0/u85UHoBEIWuFONqpjcH8eiIb5LJwAI/SLbtA Iq+P8d7XmVZLUP6N/ryWnKurMul6pne/AAHC9y+4wU5tH3yBVjf33eL4HEXcxTUqT3lL +gJsGgLaHpEXDjsxUlzVDGPkB3z6X1Shbz6cKWl356D9GzFgl7P9VBfj6PPHhArdqMcv hj/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b="GTU/6q48"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cumulusnetworks.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y11si1512366edt.52.2020.08.21.09.01.32; Fri, 21 Aug 2020 09:01:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@cumulusnetworks.com header.s=google header.b="GTU/6q48"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=cumulusnetworks.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728033AbgHUQAb (ORCPT + 99 others); Fri, 21 Aug 2020 12:00:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728004AbgHUQA1 (ORCPT ); Fri, 21 Aug 2020 12:00:27 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA1D8C061574 for ; Fri, 21 Aug 2020 09:00:27 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id k20so2321321wmi.5 for ; Fri, 21 Aug 2020 09:00:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cumulusnetworks.com; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=fYmJxiZWMdQOy1fXzh3kYSU/yGBTfQ1oXQXK6Nxh6Ew=; b=GTU/6q48hox9aJMTAGDunVmGbBpcmsKYjvy/ohusaD0ircSlB/Qf70HJ+lKmUWIzGK Jjn/wdPpC6e8BPoA+JG5bKuw90ddkaGfjRtBptts2FuNmju+FsubZY6eerHAYkfNDqGT l/7h94yMx/lrBcbUZu6I/0EOG7+W0fC8rkqEI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=fYmJxiZWMdQOy1fXzh3kYSU/yGBTfQ1oXQXK6Nxh6Ew=; b=XYgnXUXjkaiB4AvsXmgGl2U0BSe2VU0s17iWNVT+FveL/rD+qGFPjXTVktAGedLhzT tKzKlU+K/aJ3qPOnwvYo1xnk583/XF56LgfeY/ARoz4iV9gryyMcT0pS02cHqD+pTrwB Q1HqJWALHiYYCsDuMVv6ReiLyxueV7ML5pdAepdO1/IHurfJHU+aOudtDgk9xpCaAdeu aLZPqqAiBVXZeKUcxYYohYUgfYXAzDBkDODM9V/OEVLG+8+W8jIIuebCaab1YGMus/vW cIvLNJ+y8OON1O2GN50HpMLNLrj2mnUCd6PGRv3LMGBM3SQ1UrIM9IYvYysiUHaIGCa/ uENA== X-Gm-Message-State: AOAM531Gb6LE/JkShpqRPH4qjgXCsJbH0eKL7R7Orzf2HeXJunQsI14p wMvZbpjf9Wo8ihMacmQ9q3zeOA== X-Received: by 2002:a1c:f605:: with SMTP id w5mr3771327wmc.26.1598025626350; Fri, 21 Aug 2020 09:00:26 -0700 (PDT) Received: from [192.168.0.101] ([79.134.172.106]) by smtp.googlemail.com with ESMTPSA id 32sm5830132wrh.18.2020.08.21.09.00.24 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 21 Aug 2020 09:00:25 -0700 (PDT) Subject: Re: general protection fault in fib_dump_info (2) To: syzbot , davem@davemloft.net, dsahern@gmail.com, kuba@kernel.org, kuznet@ms2.inr.ac.ru, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, syzkaller-bugs@googlegroups.com, yoshfuji@linux-ipv6.org References: <00000000000039b10005ad64df20@google.com> From: Nikolay Aleksandrov Message-ID: <47e92c2b-c9c5-4c74-70c4-103e70e91630@cumulusnetworks.com> Date: Fri, 21 Aug 2020 19:00:18 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <00000000000039b10005ad64df20@google.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/21/20 6:27 PM, syzbot wrote: > Hello, > > syzbot found the following issue on: > > HEAD commit: da2968ff Merge tag 'pci-v5.9-fixes-1' of git://git.kernel... > git tree: upstream > console output: https://syzkaller.appspot.com/x/log.txt?x=137316ca900000 > kernel config: https://syzkaller.appspot.com/x/.config?x=a0437fdd630bee11 > dashboard link: https://syzkaller.appspot.com/bug?extid=a61aa19b0c14c8770bd9 > compiler: gcc (GCC) 10.1.0-syz 20200507 > userspace arch: i386 > syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12707051900000 > C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1150a046900000 > > The issue was bisected to: > > commit 0b5e2e39739e861fa5fc84ab27a35dbe62a15330 > Author: David Ahern > Date: Tue May 26 18:56:16 2020 +0000 > > nexthop: Expand nexthop_is_multipath in a few places > This seems like a much older bug to me, the code allows to pass 0 groups and thus we end up without any nh_grp_entry pointers. I reproduced it with a modified iproute2 that sends an empty NHA_GROUP and then just uses the new nexthop in any way (e.g. add a route with it). This is the same bug as the earlier report for: "general protection fault in fib_check_nexthop" I have a patch but I'll be able to send it tomorrow. Cheers, Nik