From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 017CFC433F5 for ; Thu, 30 Sep 2021 13:07:28 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D156D6126A for ; Thu, 30 Sep 2021 13:07:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351331AbhI3NJJ (ORCPT ); Thu, 30 Sep 2021 09:09:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:32824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1351400AbhI3NI0 (ORCPT ); Thu, 30 Sep 2021 09:08:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 45CAC6126A; Thu, 30 Sep 2021 13:06:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633007203; bh=2E12lxsILybA6TcVpH3Clkx1XYrdgQW3E8uFB2oiPBg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=lgdiosn93AauLXFMrr9Usc2pvpe/W79Bk/F24VYCqaajlvOZW38VnA1SHe8Q5ZSSR +k3SeIa2jPtwhRk/pPRUWlUZAStkuID2g1hXF+eOCILkYNcrT6F8tgExarm1azlP59 IWMXzzwDbwBujNxfnprNQQlud94H2E+Bmzn6p3LmfTJuG7yY0eIt98OHAl85+m5PCg luTsXtXHX+um80MmKnbFnREoX1fuqEi2ClAZZ80vQbX5NZHKPJtFHxjEqzojsCMrAZ y67L2Yqv8blaQ8m0lyqaSvs1+3vuj0jv3FxirIFYE4mOx2dQSqgynxx5qXjAKnP1Fh 5VbBl+zV7oh/A== Date: Thu, 30 Sep 2021 15:06:40 +0200 From: Alexey Gladkov To: Jordan Glover Cc: ebiederm@xmission.com, LKML , linux-mm@kvack.org, containers@lists.linux-foundation.org, Yu Zhao Subject: Re: linux 5.14.3: free_user_ns causes NULL pointer dereference Message-ID: <20210930130640.wudkpmn3cmah2cjz@example.org> References: <1M9_d6wrcu6rdPe1ON0_k0lOxJMyyot3KAb1gdyuwzDPC777XVUWPHoTCEVmcK3fYfgu7sIo3PSaLe9KulUdm4TWVuqlbKyYGxRAjsf_Cpk=@protonmail.ch> <87ee9pa6xw.fsf@disp2133> <878rzw77i3.fsf@disp2133> <20210929173611.fo5traia77o63gpw@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 29, 2021 at 09:39:06PM +0000, Jordan Glover wrote: > > I'm still investigating, but I would like to rule out one option. > > > > Could you check out the patch? > > > Thx, I added it to my kernel and will report in few days. > Does this patch try to fix the issue or make it easier to track? I suspect the error is caused by a race between allow_ucounts() and put_ucounts(). I think this patch could solve the problem. -- Rgrds, legion