Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp986498ybj; Thu, 7 May 2020 12:04:14 -0700 (PDT) X-Google-Smtp-Source: APiQypKxcJi7XedwooxeVwnJi0fskFGD3HhwejCRtdeOVY+9uQNkGobijoz6s+b0B1gYH3kHRuXg X-Received: by 2002:a17:906:695:: with SMTP id u21mr12971275ejb.187.1588878254522; Thu, 07 May 2020 12:04:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588878254; cv=none; d=google.com; s=arc-20160816; b=E/zwHwElFaBdqhwIAwaPKjuHvDjFQUWDL/7plbb6CoTheevbdYkmMbMu+CP7F1PgDL A9+xra9jIhqI30Hv+JxfSvpssEUv9KSjAJRDF/Ni5CQYUAPJA7GsTbj8imKqjN0T5+X5 MuOFcgKZTsfZcjq0gMOzGXkEOWm+fs4JxwGYECoACGyXOEkyoz8TCICZd03jGN71qjnX 0X2s+1djZAn0IaXPJBGK0V25P9e7iPwoFIiVeJ+CRNBxsFDqzSuQ0bIHx/eHwWbNaf72 8weyY2bk9BBYYk3Mnh/oh7PGuf07ncOstD54KD7Ff9PYD0drNxk+huNIEjJxVROaYppu KFSA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=C/NimafTNMy/ts0X9i2CAYGbWvyCSN+gMBybT4YaJE8=; b=pYnQRZZtpn/Ikbvxe4Me5yEhFJEW/59KB/q/kX9g9t2iOFMVkP8A6JcJsxp7yK1kH+ z1HmjuFteABbVmVxVD6tT83pj22xis6iUDOOXD7f6QimG0JkxpYqQFAHNfluGJljlALP RH4MzFWmBsCEqlEe4Kr3URMRNIJyAuR4bTL5hPFU9cqoDw4iKMd6+bOSTpX6VbhUc4YD T2CGP09q/dSn289KWggqeODkvGN8/5+O0cmyzbLl5e9x6y9AG1dotvwqppWbI/5mcZwl fiDiyfu4gC7pZyb94/rQFMZ+MRbUv82ynMZ+q947AwadGvPETQgajeEkzw/nb2RN8wE1 w/Sg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x5si3783390ede.603.2020.05.07.12.03.51; Thu, 07 May 2020 12:04:14 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728455AbgEGTBi (ORCPT + 99 others); Thu, 7 May 2020 15:01:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35300 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726320AbgEGTBi (ORCPT ); Thu, 7 May 2020 15:01:38 -0400 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C6E72C05BD43; Thu, 7 May 2020 12:01:37 -0700 (PDT) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1jWllz-0039PB-Sr; Thu, 07 May 2020 19:01:32 +0000 Date: Thu, 7 May 2020 20:01:31 +0100 From: Al Viro To: Max Kellermann Cc: axboe@kernel.dk, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] fs/io_uring: fix O_PATH fds in openat, openat2, statx Message-ID: <20200507190131.GF23230@ZenIV.linux.org.uk> References: <20200507185725.15840-1-mk@cm4all.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200507185725.15840-1-mk@cm4all.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 07, 2020 at 08:57:25PM +0200, Max Kellermann wrote: > If an operation's flag `needs_file` is set, the function > io_req_set_file() calls io_file_get() to obtain a `struct file*`. > > This fails for `O_PATH` file descriptors, because those have no > `struct file*` O_PATH descriptors most certainly *do* have that. What the hell are you talking about?