Linux cgroups development
 help / color / mirror / Atom feed
From: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
To: "Michal Koutný" <mkoutny@suse.com>
Cc: cgroups@vger.kernel.org, Tejun Heo <tj@kernel.org>,
	Johannes Weiner <hannes@cmpxchg.org>
Subject: Re: [PATCH] cgroup: Use %p for pointer formatting
Date: Fri, 18 Sep 2026 18:56:51 +0200	[thread overview]
Message-ID: <20260918165651.-T6A2FGq@linutronix.de> (raw)
In-Reply-To: <aq0z3hEYggA_TuUD@localhost.localdomain>

On 2026-09-18 14:59:00 [+0200], Michal Koutný wrote:
> On Fri, Sep 18, 2026 at 12:48:52PM +0200, Sebastian Andrzej Siewior <bigeasy@linutronix.de> wrote:
> > Since commit ad67b74d2469d ("printk: hash addresses printed with
> > %p") pointers are hashed by default and the behaviour can be controller
> > by `hash_pointers' boot argument.
> > The policy on %p is to not introduce new ones.
>                 %pK  should be here?

No, %p was intended. By making it %p it is "introducing" it. The "not
introducing new ones" is based on
  https://docs.kernel.org/process/deprecated.html#p-format-specifier

> I assume it based on:
> 
> | This is because %pK checks are done at read() time rather than open()
> | ...
> | The correct long-term solution is to do the permission checks at
> | open() time.
> 
> of Documentation/admin-guide/sysctl/kernel.rst-time

These checks never came. I need to update that file as well…

> <snip>
> > Removing %pK makes it possible to remove its handling from the library.
> 
> This is also a good sell.
> But I see there are a few of them still here and there.

I am working on it ;) I just sent all code patches and networking
has it applied in -next. So it is moving.

> > 
> > Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
> > ---
> >  kernel/cgroup/debug.c | 8 ++++----
> >  1 file changed, 4 insertions(+), 4 deletions(-)
> >
> 
> Nevertheless,
> Acked-by: Michal Koutný <mkoutny@suse.com>

Thank you.

Sebastian

  reply	other threads:[~2026-09-18 16:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-18 10:48 [PATCH] cgroup: Use %p for pointer formatting Sebastian Andrzej Siewior
2026-09-18 12:59 ` Michal Koutný
2026-09-18 16:56   ` Sebastian Andrzej Siewior [this message]
2026-09-19  0:12 ` Tejun Heo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260918165651.-T6A2FGq@linutronix.de \
    --to=bigeasy@linutronix.de \
    --cc=cgroups@vger.kernel.org \
    --cc=hannes@cmpxchg.org \
    --cc=mkoutny@suse.com \
    --cc=tj@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox