Re: [RFC V2 0/3] lib/vsprintf: Add support for pgtable entries
From: Andy Shevchenko
Date: Thu Jun 11 2026 - 15:33:50 EST
On Thu, Jun 11, 2026 at 08:15:57PM +0100, Matthew Wilcox wrote:
> On Wed, Jun 10, 2026 at 05:35:42AM +0100, Anshuman Khandual wrote:
> > Printing page table entries has been a common requirement both in generic
> > and platform memory management for various purposes. Hence let's create a
> > dedicated printk format for such entries which will also help standardize
> > pgtable printing across different platforms.
>
> You didn't address my objection here:
>
> https://lore.kernel.org/linux-mm/aFQP8LzVMctf6XH5@xxxxxxxxxxxxxxxxxxxx/
>
> ie there is now no typechecking possible. So you've made it more
> dangerous. I reiterate my NACK to the concept, not to the implementation.
But this is more of a global question, how do we check the validity of
the parameters of pointer extensions in the kernel? Does anybody go to
commit into GCC plugin or so for this job?
--
With Best Regards,
Andy Shevchenko