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 8F38720E4 for ; Tue, 3 Jan 2023 08:17:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 15CB5C433D2; Tue, 3 Jan 2023 08:17:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1672733862; bh=A9/b80xT1iHjOny/pzsDuVwkd0urpwxguN1fTH2A5Y4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m78eCPENZy8Wk3oRISOSRWSD5DLadRlBEwZGCayRDcZYceLtBn2KWzdSwdZNZP0bi d03l7zOsAiVNbZVv3E63ay5UaCsztu5w3/HK72ToVbrhf2HfnJOz5krqg+UeRNH/7C so6rJtQHf+Ra1lklrOJPzgeF4P65cSjl96Id0EwA= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Jens Axboe Subject: [PATCH 5.10 60/63] Revert "proc: dont allow async path resolution of /proc/self components" Date: Tue, 3 Jan 2023 09:14:30 +0100 Message-Id: <20230103081312.226781789@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20230103081308.548338576@linuxfoundation.org> References: <20230103081308.548338576@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Jens Axboe [ Upstream commit 9e8d9e829c2142cf1d7756e9ed2e0b4c7569d84c ] This reverts commit 8d4c3e76e3be11a64df95ddee52e99092d42fc19. No longer needed, as the io-wq worker threads have the right identity. Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- fs/proc/self.c | 7 ------- 1 file changed, 7 deletions(-) --- a/fs/proc/self.c +++ b/fs/proc/self.c @@ -16,13 +16,6 @@ static const char *proc_self_get_link(st pid_t tgid = task_tgid_nr_ns(current, ns); char *name; - /* - * Not currently supported. Once we can inherit all of struct pid, - * we can allow this. - */ - if (current->flags & PF_KTHREAD) - return ERR_PTR(-EOPNOTSUPP); - if (!tgid) return ERR_PTR(-ENOENT); /* max length of unsigned int in decimal + NULL term */