[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#336496: kfreebsd-5: please leave page zero unmapped



Package: kfreebsd-5  

Hi.

ELF loader /lib/ld.so.1 is mapped in memory at address 0.

$ cat /proc/self/maps 
00000000-00012000 r-xp 00016000 00:00 94246     /lib/ld-2.3.so
00012000-00013000 rw-p 00001000 00:00 0
08048000-0804c000 r-xp 00004000 00:00 94294     /bin/cat
0804c000-0804d000 rw-p 00002000 00:00 0
0804d000-0804e000 rwxp 00002000 00:00 0
2804c000-2804d000 rwxp 00001000 00:00 0
2804d000-28057000 r-xp 0000a000 00:00 73652     /etc/ld.so.cache
28057000-28160000 r-xp 0010e000 00:00 94249     /lib/libc-2.3.so
28160000-28164000 rwxp 0010e000 00:00 94249     /lib/libc-2.3.so
28164000-28168000 rwxp 00004000 00:00 0
bfbe0000-bfc00000 rwxp 00020000 00:00 0


Therefore reading of NULL pointers is not caught.

I don't know where is decided base adress for /lib/ld.so.1.

Thanks

	Petr






Reply to: