Re: [PATCH] ref_tracker: use %p instead of %px in debugfs dentry name

From: Kees Cook
Date: Thu Jul 31 2025 - 12:32:38 EST


On Thu, Jul 31, 2025 at 07:57:05AM -0400, Jeff Layton wrote:
> As Kees points out, this is a kernel address leak, and debugging is
> not a sufficiently good reason to expose the real kernel address.
>
> Fixes: 65b584f53611 ("ref_tracker: automatically register a file in debugfs for a ref_tracker_dir")
> Reported-by: Kees Cook <kees@xxxxxxxxxx>
> Closes: https://lore.kernel.org/netdev/202507301603.62E553F93@keescook/
> Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>

Probably better to use a global u64 counter, but %p can work.

Thanks for removing %px!

--
Kees Cook