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 X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 771DDC433F5 for ; Mon, 13 Sep 2021 08:44:10 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5E22460F58 for ; Mon, 13 Sep 2021 08:44:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238190AbhIMIpR (ORCPT ); Mon, 13 Sep 2021 04:45:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:35628 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238126AbhIMIpP (ORCPT ); Mon, 13 Sep 2021 04:45:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 25B8360F5B; Mon, 13 Sep 2021 08:43:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631522639; bh=LXUxLd87uLqHw6KTkQAAPRMwWhykDO/zu8ngz08HWA8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Ag+uXb04sfWp+fEgNxuuHMwEbTDrjy5sY+q/TE3HTsRVL0dOGzTKI7n8oywE+PYo+ /kLwcCODNwO/E2X0M0dIvHnz1VuVxpyDv7+3UTZP4FoCrOjKCGdHmghBodgc7eT7Pf 9ZTocEnJk75pr5J1xqoKdjAUyRvbsoO0OoiYMNfs= Date: Mon, 13 Sep 2021 10:42:45 +0200 From: Greg KH To: Haakon Bugge Cc: Sasha Levin , "David S. Miller" , Linux-Net , "stable@vger.kernel.org" , Doug Ledford , Jason Gunthorpe , OFED mailing list , LKML , Guillaume Nault Subject: Re: Please add 2dce224f469f ("netns: protect netns ID lookups with RCU") to LTS Message-ID: References: <7F058034-8A2B-4C19-A39E-12B0DB117328@oracle.com> <756E20E4-399D-45ED-AA9A-BB351C865C65@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <756E20E4-399D-45ED-AA9A-BB351C865C65@oracle.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Fri, Sep 10, 2021 at 02:22:32PM +0000, Haakon Bugge wrote: > > > > On 9 Sep 2021, at 15:30, Greg KH wrote: > > > > On Thu, Sep 09, 2021 at 01:10:05PM +0000, Haakon Bugge wrote: > >> Hi Greg & Sasha, > >> > >> > >> tl;dr: Please add 2dce224f469f ("netns: protect netns ID lookups with > >> RCU") to the stable releases from v5.4 and older. It fixes a > >> spin_unlock_bh() in peernet2id() called with IRQs off. I think this > >> neat side-effect of commit 2dce224f469f was quite un-intentional, > >> hence no Fixes: tag or CC: stable. > > > > Please provide a working backport for all of the relevant kernel > > verisons, as it does not apply cleanly on it's own. > > I've done the backports. 4.9 is actually not needed, because it uses spin_{lock,unlock}_irqsave() in peernet2id(). Hence, we have an "offending" commit which this one fixes: > > fba143c66abb ("netns: avoid disabling irq for netns id") > > Will get'm out during the weekend. All now queued up, thanks. greg k-h