Received: by 10.223.176.5 with SMTP id f5csp464905wra; Wed, 7 Feb 2018 02:12:40 -0800 (PST) X-Google-Smtp-Source: AH8x227SwdKt30ipqCUX6R9NaMXZmHekC3U3RVVwA2+X27sdB/TfjagtJB4gOV1NOpkkqTfDJIjX X-Received: by 10.101.74.68 with SMTP id a4mr4434238pgu.176.1517998360103; Wed, 07 Feb 2018 02:12:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517998360; cv=none; d=google.com; s=arc-20160816; b=gpQxTtgRyMIzJpKFZrTa/PGKx/u0r3XzBUOEPkGEY8IYwQz690uW5KZQI+wqaMqAix arkhJGmAcVPHXNBz12tONqb72dYFMoRhcnrNd85QhbUWsD4CALKKHydT46eqsQ1VPlCh 04bz7e5bPAl0ofw7P9MxQnzopM01IqAskkVP2/Wzk6TZPPgAxy/Y5tEny+HRFko8CJfC NYBl+jLR/LOV2A/GHAr+JtUTXHHiuZV21UPGiiCp3xlkxMbMkLyQl6WI9lJqSpV/uib2 KIAYVwimG8h+ons9N3FKJ2svRABlW7WxAq3C/8/C4d+3SWm0gJ6i7iQz9uqezMXRQ31S booA== 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 :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=hVMzGj4p0ByHHGrnh9ot/k8je2AigPW/dJwQrdZ4GFA=; b=sNRYnC3E12Dg1/0sWjPixgnCiOONFo8DZf++ufAoRFD7uy0yci3YbgSfn7GbsvROwO ty8Jb3w1Ow93FeKNyqyoxEghk0zSl6PauTwawPpfHGOTl5wq7TC/1siu8WwrZ9F8uSru MOBjqboY9jtlwyoRCeYFVBkODsd9bdfMsHiN1J5mDmfPN+icBR0NwHb6SOMVRw2XORuG 46G02ORBW9h5Q1+kxFcQP/FsonaT4O7VQsdDZ83z88EZBGb/NTcXxh0K0rfWI/ST9Wja eVsVsRrxTdIjQm1YgRzDRtmPqOQd2D8TEfx3UQvdIk/+1pn6CqI2YFwhwwZ1lmc38MvH Xrrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=F7JZPe1p; 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 c19-v6si871599plo.278.2018.02.07.02.12.25; Wed, 07 Feb 2018 02:12:40 -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=F7JZPe1p; 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 S1753597AbeBGKLr (ORCPT + 99 others); Wed, 7 Feb 2018 05:11:47 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:45319 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752992AbeBGKLp (ORCPT ); Wed, 7 Feb 2018 05:11:45 -0500 Received: by mail-pf0-f193.google.com with SMTP id w83so119694pfi.12 for ; Wed, 07 Feb 2018 02:11:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=hVMzGj4p0ByHHGrnh9ot/k8je2AigPW/dJwQrdZ4GFA=; b=F7JZPe1ppIiOZZzW71p/+UMrsLX+9LWJ3ZCqi4jDo9/W+oAXh3WeeuDmPFcOVO1RMS FM+B6htzRhEvAQjATuJKmqJFQaIKwhl+SubyvDXKeKYXuYCcVT2fLm3KsBTNi5NtMi1g YVsw5pDjlBCItW7F6c68Dg3ncUIsAvLqsY2B23eXJYsvGvnGZdkCmbFMQoUD2wTt6QAk UTg45v4osZHsfzYxJRwhw2pwLKm1hMhxyYGbFPewYklTyqqw9ijteJKcXOKAcO7Xsc9G 22Y/rgDkLlojA5r4+QKyr7A37kJ0zw7CGflmdNASzOfWRuUWg1jcz39tLJqGOa8j/fP5 6zoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=hVMzGj4p0ByHHGrnh9ot/k8je2AigPW/dJwQrdZ4GFA=; b=YFG2Hx95l0WVglPbYjbava769+YkEqtSplMir6UXmQLhCG/v04Z+Oa/tEBFO3zq11t rL2JWkGTQcgbYn+t0iuNv9d6aAr40igAg5a6xUvYdRvsm8xpbtaJgkHsS53ArhF7tsWC keobs3MPdmpfXFAE/+Fe/eJp0xzK5+ulRRevaH7xDIBwQSphIBWV+L09PvPQjaw5tUHq AwC11HwRWb1ZkfJ7r+rJI6fwH0bQr+/yMW4e1kxyqSQ1+EB72do54KInC3tW3FsQWbbS j93y8i9OOCDUB7cCm8JaGgSHAu/eElLwsaAvl3oX5p5QfdaoFyNe+OVO922/iY/5X1Uz 9ifQ== X-Gm-Message-State: APf1xPCW76lH4zxbFWOUXffYxIi4STNecyU24QAOXZS1LfCUOPNlTsIE V2I7O3Bua0P3BP74YXFPGTlfUejFPoaYD+dBeK2MQA== X-Received: by 10.98.155.13 with SMTP id r13mr5443495pfd.94.1517998305049; Wed, 07 Feb 2018 02:11:45 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.140.151 with HTTP; Wed, 7 Feb 2018 02:11:24 -0800 (PST) In-Reply-To: <1517994487.3996.7.camel@redhat.com> References: <94eb2c07fd4c75cd8705648eeb87@google.com> <1517994487.3996.7.camel@redhat.com> From: Dmitry Vyukov Date: Wed, 7 Feb 2018 11:11:24 +0100 Message-ID: Subject: Re: possible deadlock in rtnl_lock (3) To: Paolo Abeni Cc: syzbot , Christian Brauner , Daniel Borkmann , David Miller , David Ahern , Florian Westphal , Jakub Kicinski , Jiri Benc , LKML , Xin Long , netdev , syzkaller-bugs@googlegroups.com, Vladislav Yasevich 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 Wed, Feb 7, 2018 at 10:08 AM, Paolo Abeni wrote: > On Tue, 2018-02-06 at 19:00 +0100, Dmitry Vyukov wrote: >> On Tue, Feb 6, 2018 at 6:58 PM, syzbot >> wrote: >> > Hello, >> > >> > syzbot hit the following crash on net-next commit >> > 617aebe6a97efa539cc4b8a52adccd89596e6be0 (Sun Feb 4 00:25:42 2018 +0000) >> > Merge tag 'usercopy-v4.16-rc1' of >> > git://git.kernel.org/pub/scm/linux/kernel/git/kees/linux >> > >> > So far this crash happened 2510 times on net-next, upstream. >> > C reproducer is attached. >> > syzkaller reproducer is attached. >> > Raw console output is attached. >> > compiler: gcc (GCC) 7.1.1 20170620 >> > .config is attached. >> > >> > IMPORTANT: if you fix the bug, please add the following tag to the commit: >> > Reported-by: syzbot+63682ce11532e0da2b9d@syzkaller.appspotmail.com >> > It will help syzbot understand when the bug is fixed. See footer for >> > details. >> > If you forward the report, please keep this part and the footer. >> >> >> Paolo, was this also fixed by "netfilter: on sockopt() acquire sock >> lock only in the required scope"? > > I *think* this is fixed by the above commit, anyway I'll probably be > unable to verify such statement soon. Thanks, Paolo. This is good enough for now. If this is wrong, syzbot will hit it again later, but at that point we will know that the patch is present in the tested tree. #syz fix: netfilter: on sockopt() acquire sock lock only in the required scope