Re: [PATCH v2 1/2] x86/bug: Add printf() validation to HAVE_ARCH_BUG_FORMAT_ARGS WARNs
From: Dave Hansen
Date: Thu Apr 23 2026 - 11:14:39 EST
On 4/23/26 07:54, Sean Christopherson wrote:
> Lack of validation is especially problematic for code that is 64-bit-only,
> as blatant goofs can easily go unnoticed, as they (somewhat ironically)
> will only be noticed by CONFIG_BUG=n builds.
This took me a minute to piece together.
CONFIG_BUG=n builds use the asm-generic/bug.h implementations which have:
no_printk(format);
and do their own printk validation. Right?
Also, what do you mean about 64-bit-only code?
I'm also debating if we should stick these in x86/urgent and get them to
Linus sooner rather than later so folks aren't bitten by this for a
whole development cycle.