From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C335B3E0238 for ; Fri, 8 May 2026 13:51:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778248312; cv=none; b=OKB6FRNcLIBP/3mBM+1ORCDcWaz5yLfHvO84IHAOIsphLL8HJqjbFL05VjUyfxPNFnCIJOcnJGkSI1fFi5L+1qMk6hnmpdSJCorSK3ZbQvRmgGEn7cDLmYY5+WSBD+ZdkhBJRADTCAFAWorghpjLz4qeAZnLKMIh4emqL5ZYz4k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778248312; c=relaxed/simple; bh=KsfRtRKjrlnVJbGoVhj7QSa0bk0B1DsAd45EvdGW+Os=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CpafmcdSDdfbV5dwLh7iQxMGbCqccDJEZab7IGxU1rCdnzAqlM1nq2e3TPxf//jGhp1NQbjtvYQcTp7U6i/tneUsGz8qy8fE51CEE68TQCV3sElkilblITH3IbXTl6GuWyNa8akqZ00vNQ1MnSgdcMhSDNMHyKSHNRgI1zyU3Bk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OIMsirXh; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="OIMsirXh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 30060C2BCB0; Fri, 8 May 2026 13:51:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778248312; bh=KsfRtRKjrlnVJbGoVhj7QSa0bk0B1DsAd45EvdGW+Os=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OIMsirXhJfVKWN7f+h/nODXSNwgtN4sMjSI1x7defcu7AzXhSssQ6B0Smizsh0Eaz MAneXlXo+kL6XpP++A8lcBhCAVbH19RLuzM9OrwQXVOIXJ+3vT/16hS3AH+dKql2d6 yYNgqPDEg27odakNKqTs1wbkIvC8Hd6z4RIJr6OU= Date: Fri, 8 May 2026 15:51:50 +0200 From: Greg KH To: Henrik Holmberg Cc: security@kernel.org, selvin.xavier@broadcom.com, kalesh-anakkur.purayil@broadcom.com, linux-rdma@vger.kernel.org Subject: Re: [security] RDMA/bnxt_re: kernel infoleak via uninitialised shpg shared page exposed to userspace Message-ID: <2026050818-divisible-unlocked-e1f7@gregkh> References: Precedence: bulk X-Mailing-List: linux-rdma@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Fri, May 08, 2026 at 03:45:13PM +0200, Henrik Holmberg wrote: > Suggested fix (one-line) > ------------------------ > diff --git a/drivers/infiniband/hw/bnxt_re/ib_verbs.c > b/drivers/infiniband/hw/bnxt_re/ib_verbs.c > --- a/drivers/infiniband/hw/bnxt_re/ib_verbs.c > +++ b/drivers/infiniband/hw/bnxt_re/ib_verbs.c > @@ -4375,7 +4375,7 @@ int bnxt_re_alloc_ucontext(struct ib_ucontext > *ctx, struct ib_udata *udata) > > uctx->rdev = rdev; > > - uctx->shpg = (void *)__get_free_page(GFP_KERNEL); > + uctx->shpg = (void *)get_zeroed_page(GFP_KERNEL); > if (!uctx->shpg) { > rc = -ENOMEM; > goto fail; > Can you just turn this into a real patch that can be applied, so you get full credit for the fix? The kernel documentation explains how to do this. thanks, greg k-h