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 CECF32698B9; Tue, 8 Apr 2025 11:56:25 +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=1744113385; cv=none; b=b9Sic6WOcnGbTHgzb2o6kHwgwuPaiLoR4FRxiwma1kz9GE5eCzuJN8CEGuGOJzqTQjgB4zmMRzKWwgech+kiTyuy9/JjmnR0JkXDz7uNW6RGFELHrdSifHC5C9A7P37/UxgaOPUN/oVlNFEsFjNgEElWwHx2qHKoh/FzD6s/dps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744113385; c=relaxed/simple; bh=5lMbSf1XrBBT3x3NCg0vUgMkGXOeUrWQQnxbHcHGNks=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=fUUXbf+JNTXkt6TEK4KWmKHEeT1vkuAlltoB3LF/QZTterKbgsAoS4CwoxC4y5WtLGMrfevnp1ZCv4I+CxpxHoy+fVuNVPrhf9QlygY9ee2+fWXZgZHh7Jb8ViI2XSjIvE7KREG/vQH64QM4vV+xgIDn/atsjEYBCyvnx6LRbCs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=B/Yg1Xjg; 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="B/Yg1Xjg" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 608C7C4CEE5; Tue, 8 Apr 2025 11:56:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744113385; bh=5lMbSf1XrBBT3x3NCg0vUgMkGXOeUrWQQnxbHcHGNks=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B/Yg1XjgpRQ7Sw8gqEy87tj3EaS4VDsTBxgVELsrLCmESuI8XtGH9cTs2BIA+r3Z2 q5tVvDF5fP/WLHE6lRPFIVnXnj+h9cQh61PrfqFJrdnsza3OyKpZq7bnBPIQeZALjd sGNozKrSI94mp8Zu6ggPGkYUJhmPdy7vqk2qdPTo= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bart Van Assche , Kees Cook , "Eric W. Biederman" , Alexey Dobriyan , Andrew Morton , Sasha Levin Subject: [PATCH 6.6 139/268] fs/procfs: fix the comment above proc_pid_wchan() Date: Tue, 8 Apr 2025 12:49:10 +0200 Message-ID: <20250408104832.272375308@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250408104828.499967190@linuxfoundation.org> References: <20250408104828.499967190@linuxfoundation.org> User-Agent: quilt/0.68 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.6-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bart Van Assche [ Upstream commit 6287fbad1cd91f0c25cdc3a580499060828a8f30 ] proc_pid_wchan() used to report kernel addresses to user space but that is no longer the case today. Bring the comment above proc_pid_wchan() in sync with the implementation. Link: https://lkml.kernel.org/r/20250319210222.1518771-1-bvanassche@acm.org Fixes: b2f73922d119 ("fs/proc, core/debug: Don't expose absolute kernel addresses via wchan") Signed-off-by: Bart Van Assche Cc: Kees Cook Cc: Eric W. Biederman Cc: Alexey Dobriyan Signed-off-by: Andrew Morton Signed-off-by: Sasha Levin --- fs/proc/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/proc/base.c b/fs/proc/base.c index 91fe20b7657c0..d444155581cab 100644 --- a/fs/proc/base.c +++ b/fs/proc/base.c @@ -416,7 +416,7 @@ static const struct file_operations proc_pid_cmdline_ops = { #ifdef CONFIG_KALLSYMS /* * Provides a wchan file via kallsyms in a proper one-value-per-file format. - * Returns the resolved symbol. If that fails, simply return the address. + * Returns the resolved symbol to user space. */ static int proc_pid_wchan(struct seq_file *m, struct pid_namespace *ns, struct pid *pid, struct task_struct *task) -- 2.39.5