Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp1629239pxb; Mon, 13 Sep 2021 01:47:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1b5P7VD4zhi4PNIYoszqFD+SwurdjV3qIdS78dPGwhKwcn3OlYg+EiNVaW8zw7KmzDiT1 X-Received: by 2002:a17:907:8309:: with SMTP id mq9mr11311744ejc.561.1631522857013; Mon, 13 Sep 2021 01:47:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631522857; cv=none; d=google.com; s=arc-20160816; b=rliXG2+kxk9TqN8wea/YSDzWU0tXRuhPcFnddA8Cn8z02bL524LfD5ZbNx3thaki8k N3yYKKhVSdY5gjIOkAEmpnADho9lc24btr2OSdGaEiXSHKLGHkrzw6Fuz7xRkrVzkHQP zPNGDZnp1LYeZ0EIGzKsOeiBa6ZRViSWtqlDzLtTXCtJtsFxJ9Jdftf5YKtwRELOjaPt FiRhgaATfYLo3WEdXqbiIFbRG6mkxyh5i6jE1eDV8YJQHECW+ObeP7uBtGhnziS5wnmk cht0Anv0CvGRjYNdCYmi3WY4DgZHE7k+zFg/FChqxXSy/bcdIwKReKtlM+l7BYHgjPcZ JTVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=4u17+u+zfUzhsP6HoH70RGmhWlNC797qx/zt9xDfbr8=; b=i+GYKEBGLDiw7xEpTB4GhXZPrFp9WGRXru7FkqxzYrhf5Gx/wHcL48w1oug21ml4Vp 4Su83UbpCUZjyv7K/GlKoop2jYj7/ACEVtIKALNoqGIhRrYkG6nr7g9pEe3NoSh2hMHS jvrY+YammsSiVKLHM/yxg7iATnLdJmOdn7p8NqugKpAG+0hGx71Pxk6Er4iMyv08bW5d 4nC2istR2EdeJNbMVPiKVFEStlcAnlcPPGBUbGdiVKO0pvUyROOJqLeKoMG6wiSbGJit 80aCOySeSBzmyEQi47m8dDF7Ug2/HGT3Fx2QlZgUBk/6bHqIUPTVRuBwbmfiPQ95Nwqi PrXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Ag+uXb04; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r21si8226558ejo.665.2021.09.13.01.47.13; Mon, 13 Sep 2021 01:47:37 -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=@linuxfoundation.org header.s=korg header.b=Ag+uXb04; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238174AbhIMIpR (ORCPT + 99 others); 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: linux-kernel@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