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) It _does_ affect plain %p.
You're correct that it doesn't affect %px and %pK, since those never printed out (null) in the first place.
printed out (null) in the first place.

[...]

given address.
_If_ that was what the patch did, it would be fine. But it isn't.
But it isn't.
It not only affects %p, but it also affects %pS and friends (sSfFB), that do not access the location (well, on some architectures those might, to dereference a function descriptor, but then they will check the address range).
the address range).
So that patch really is completely broken for the reasons I outlined.

Viewing all articles
Browse latest Browse all 864

Trending Articles