CVSROOT: /cvs Module name: src Changes by: marty...@cvs.openbsd.org 2014/02/15 17:33:44
Modified files: regress/libexec/ld.so/randomdata/ld.so-cookie: test.c Log message: Update ld.so-cookie test which is currently broken and gets in the way of SSP testing. For some reason this diff keeps escaping from cvs commit... Basic idea: * Use dl_iterate_phdr() to iterate all loaded ELF program headers. * Check that we actually find a header for ld.so. * For ld.so, check that we find a PT_OPENBSD_RANDOMIZE segment. * For each PT_OPENBSD_RANDOMIZE segment, check that at least one byte in the memory range is non-zero. Written by matthew@. "Please go ahaed" kettenis@. "Move fast" deraadt@, a week ago.