On 06.05.2019 22:59, Joerg Sonnenberger wrote: > On Thu, May 02, 2019 at 03:01:31AM +0200, Kamil Rytarowski wrote: >> We forbid NULL pointer dereference on modern ports. It was certainly >> used by PDP-11 as there was a special zeroed mask in 0x0 and >> dereferencing NULL pointer was returning zero. > > No, we forbid NULL pointer dereferences on shared address space. Whether > such a port is modern is completely irrelevant. > > Joerg > I see. I will document in the man page that (void *)0 and (void *)1 are special cases and they have to be set with PTRACE_REG_SET_PC() explicitly if really intended. Keeping allowed 0x0 in PT_CONTINUE/PT_DETACH/.. makes it harder to distinguish between broken kernel and broken program.
Attachment:
signature.asc
Description: OpenPGP digital signature