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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 828FCCDB474 for ; Mon, 23 Oct 2023 05:45:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229553AbjJWFpC (ORCPT ); Mon, 23 Oct 2023 01:45:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbjJWFpB (ORCPT ); Mon, 23 Oct 2023 01:45:01 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A5BAEB3 for ; Sun, 22 Oct 2023 22:44:59 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id 5205168AA6; Mon, 23 Oct 2023 07:44:56 +0200 (CEST) Date: Mon, 23 Oct 2023 07:44:56 +0200 From: Christoph Hellwig To: Keith Busch Cc: Christoph Hellwig , Kanchan Joshi , axboe@kernel.dk, sagi@grimberg.me, linux-nvme@lists.infradead.org, gost.dev@samsung.com, vincentfu@gmail.com, stable@vger.kernel.org Subject: Re: [PATCH v2] nvme: remove unprivileged passthrough support Message-ID: <20231023054456.GB11272@lst.de> References: <20231016060519.231880-1-joshi.k@samsung.com> <20231019050411.GA14044@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org On Fri, Oct 20, 2023 at 08:25:49AM -0600, Keith Busch wrote: > Jens repeated what he told me offline on this thread here, and dropped > the pull request that contained this patch: > > https://lists.infradead.org/pipermail/linux-nvme/2023-October/042684.html > > BTW, don't you still need someone with root access to change the > permissions on the device handle in order for an unpriveledged user to > reach this hole? It's not open access by default, you still have to > opt-in. Yes, you need someone with root access to change the device node persmissions. But we allowed that under the assumption it is safe to do so, which it turns out it is not.