Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1009543imu; Thu, 20 Dec 2018 08:41:06 -0800 (PST) X-Google-Smtp-Source: AFSGD/UDo2O8qZJzG/Qr6UTwnd+OJ3h1qhZ9CuPJB2+O6XNRGQrDABFg01dGt2xWdYP2VqPcR4yS X-Received: by 2002:a17:902:6f09:: with SMTP id w9mr25413587plk.309.1545324066538; Thu, 20 Dec 2018 08:41:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545324066; cv=none; d=google.com; s=arc-20160816; b=oqSBZqO/jTBMx5fJkwieamuwT21gqW++1RhMT0s82jL0EtzkOT1nBZER5I4ioYDEXK IHFa7uis9EpD4pAn3QjotsP4ZLsnaT5IwGnv8RrQnUvQ/EwPo8GK2ZZBIajoy76xfFOK RQpaGQky22q9W+Bb7w/RfMTf/vmQmd/oCiERjOMVWFIy1oaAIlmse+FHc9HrMZ+japrQ BWtGHpGINCwb6T67dPkuwZgkqZx1WZE9g4GMzsc7DWRhfLw5AJtnCNg6srJB/DMGo14i o/TktVY9RWtoI6uwN5DKHWCIpR39m6sm0k2hvuug02zpF9kOQaLXnBWA4GtDb5MzHwEu raOQ== 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=Nr/eDeoHWOyHFwgeDn1KutEor14eLDS4Jnn5BhMdPVg=; b=IDQT5Jaq9Gx48338zSg7qNRnKs7RosVHVhscOXU+1hjE50JzjotSMsO6Wbux4DHOKi zgLUS5hNa+sjpoi8F19tYP0HJjR3ZT1MLAlWp3S/UizArjFXsGptg5N4Qg2mBT4Smmfk DXlLtc34glqk1NtxSFnJrgdUS4fS3gC24T7499BWrnceq6catOqJ1f0yRixgZya0xYe/ Qa5YdJAiJDU0SYv9FNegnZqpqSuLHmjJoR+QyhCN4m3H4zWkh6UCaob3B5XjfLiqLrxv arPw+ugUE168XAL8td8ELyxhZ7POpbEtV49DSvLrwgdC4lai7r09OuLscpsaToRjsrwy ZzSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b="hB237u/P"; 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 c16si18369791pgn.222.2018.12.20.08.40.51; Thu, 20 Dec 2018 08:41:06 -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="hB237u/P"; 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 S1731606AbeLTPhG (ORCPT + 99 others); Thu, 20 Dec 2018 10:37:06 -0500 Received: from mail-io1-f68.google.com ([209.85.166.68]:36258 "EHLO mail-io1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731191AbeLTPhG (ORCPT ); Thu, 20 Dec 2018 10:37:06 -0500 Received: by mail-io1-f68.google.com with SMTP id m19so1142592ioh.3 for ; Thu, 20 Dec 2018 07:37:05 -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=Nr/eDeoHWOyHFwgeDn1KutEor14eLDS4Jnn5BhMdPVg=; b=hB237u/PvNBLUMxBlpjYNgdVALQZlLaxCSLYFYyRaLY8R0gqjFo5Z+NYNJKTZfRRJN eKKdIUPWEr5AqNZ16/Mk06+Tk2OLbH4OGUTmHYTWhx16mGgm3vz64tK5ITG8KXTh7Y5H Al2F1EucuUggh2RrO9LIz96smDUAFlfYL7OuMpHUvKJLBulmscPRV2DRpjRJnR0xNDLF /iK37YQfIlTWC1hs+SSIZn+g+UByHFXmb4DlYznkTMcqejEg3O/QlRv0ZFk+ZHlETIHV vL4gfOr7HQ68O4MX9ZRECWzKU4DaSGFrKdaeEMWWYSkbcQFtyHXNEPfLQFruaRSgDHFs velg== 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=Nr/eDeoHWOyHFwgeDn1KutEor14eLDS4Jnn5BhMdPVg=; b=gwBqwfg9RFP4VQabtNzAIz8alF2H7/MGO8Nm0WJONbG3AshDSRIQv9yanEGoz1Pb4G gSL/oPOx7yRd+U0MeRKgwfbzW31N39bA1z1HvC6+EjOBj0y3rwYEhrmBXcHJWr+fIAGs XWMzwJmUTcbeEQyrmIBw3JY7bVF6d66rrdHkPB9wZnYoQ3/fDfNbs4QtEnZ/A0egHTg/ gbWmlk2XC7zV4AHad30FQkNiensEQfshs+wH+sIKLS1xCDKg5bdYezo2Ey/kDAEcv4cy rWgB5DY8NhiSqanOrRM5PASRvQ8mUbvc4yojxaUYyVwguyNRWyvOAz9usNB4xTiJmGg2 uXYQ== X-Gm-Message-State: AA+aEWZ01OJa28bRkShbaBsJeulehuie6SAE3Zq/Xd5Kub447psmavFU HGUfMiffC2u/ROfLVn6JekV4qrmjc+AEZZUPyXXoZI8jQTr9xw== X-Received: by 2002:a6b:fa0e:: with SMTP id p14mr19562063ioh.271.1545320225046; Thu, 20 Dec 2018 07:37:05 -0800 (PST) MIME-Version: 1.0 References: <00000000000051ee78057cc4d98f@google.com> In-Reply-To: From: Dmitry Vyukov Date: Thu, 20 Dec 2018 16:36:53 +0100 Message-ID: Subject: Re: general protection fault in put_pid To: Manfred Spraul Cc: syzbot+1145ec2e23165570c3ac@syzkaller.appspotmail.com, Andrew Morton , David Howells , "Eric W. Biederman" , ktsanaktsidis@zendesk.com, LKML , Michal Hocko , Mike Rapoport , Stephen Rothwell , syzkaller-bugs , Matthew Wilcox , Davidlohr Bueso 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, Dec 19, 2018 at 10:04 AM Manfred Spraul wrote: > > Hello Dmitry, > > On 12/12/18 11:55 AM, Dmitry Vyukov wrote: > > On Tue, Dec 11, 2018 at 9:23 PM syzbot > > wrote: > >> Hello, > >> > >> syzbot found the following crash on: > >> > >> HEAD commit: f5d582777bcb Merge branch 'for-linus' of git://git.kernel... > >> git tree: upstream > >> console output: https://syzkaller.appspot.com/x/log.txt?x=135bc547400000 > >> kernel config: https://syzkaller.appspot.com/x/.config?x=c8970c89a0efbb23 > >> dashboard link: https://syzkaller.appspot.com/bug?extid=1145ec2e23165570c3ac > >> compiler: gcc (GCC) 8.0.1 20180413 (experimental) > >> syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16803afb400000 > > +Manfred, this looks similar to the other few crashes related to > > semget$private(0x0, 0x4000, 0x3f) that you looked at. > > I found one unexpected (incorrect?) locking, see the attached patch. > > But I doubt that this is the root cause of the crashes. But why? These one-off sporadic crashes reported by syzbot looks exactly like a subtle race and your patch touches sem_exit_ns involved in all reports. So if you don't spot anything else, I would say close these 3 reports with this patch (I see you already included Reported-by tags which is great!) and then wait for syzbot reaction. Since we got 3 of them, if it's still not fixed I would expect that syzbot will be able to retrigger this later again. > Any remarks on the patch? > > I would continue to search, and then send a series with all findings. > > -- > > Manfred >