Re: [RFC][PATCH] printf: Harden accessing pointer dereference in vsprintf()
From: Linus Torvalds
Date: Mon Jan 06 2025 - 18:29:28 EST
On Mon, 6 Jan 2025 at 14:25, Steven Rostedt <rostedt@xxxxxxxxxxx> wrote:
>
> Linus had suggested adding this kind of check[1]. This is a bit different
> than Linus's solution as it utilizes copy_from_kernel_nofault() and doesn't
> require calls to pagefault_disable() and extra labels.
Yeah, and it generates horrendous code as a result.
Linus