Referencing through a null pointer

Guy Harris guy at gorodish.Sun.COM
Mon May 2 07:43:33 AEST 1988


> There is a problem; but there isn't an easy way to avoid it, short
> of deciding that a unix process should be loaded starting at address
> 1024 and make the first page non-readable.

Which is *precisely* what:

	1) John Bruner's modifications to 4BSD

and

	2) The "-z" flag in paging VAX S5R2.2

do.  You just need a way to tell the kernel about "page zero" versus "no page
zero" executables (so you don't have to recompile all your old binaries), which
COFF already has and which John Bruner added to 4BSD.

You may end up seeing this in some future 4BSD release.



More information about the Comp.unix.wizards mailing list