Quantcast
Channel: lkml.org : Pallipadi, Venkatesh
Viewing all articles
Browse latest Browse all 864

Re: [PATCH] vsprintf: Make "null" pointer dereference more robust

$
0
0
Linus Torvalds writes: (Summary) wrote:

[...]

It not only affects %p, but it also affects %pS and friends (sSfFB), Looking around at the x86 panic thing, %p doesn't matter that much, but %p[sSfFB] really do.
but %p[sSfFB] really do.
We use %pS/%pB to print out the instruction pointer. And a fault might be due to the instruction pointer being bad.
be due to the instruction pointer being bad.
And then we very much need to see the value, which the current

[...]

pS-and-friends falls back to.
So printing <efault> In fact, _only_ NULL itself needs to be printed as (null), because we'd care if it's 0 or 8 or something.

Viewing all articles
Browse latest Browse all 864

Trending Articles