paxtest strcpy() returns "bad luck..."

Discuss usability issues, general maintenance, and general support issues for a grsecurity-enabled system.

paxtest strcpy() returns "bad luck..."

Postby cpruefer » Fri Jul 06, 2007 4:27 am

if i do a "paxtest kiddie" or "paxtest blackhat"
on i386 (amd athlon-xp)

i get result:

strcpy() bad luck, try different compiler settings

seems like paxtest compiled wrong?

should this test work to ensure pax working correctly?
cpruefer
 
Posts: 8
Joined: Fri Jul 06, 2007 3:05 am

Re: paxtest strcpy() returns "bad luck..."

Postby PaX Team » Sat Jul 07, 2007 6:56 pm

cpruefer wrote:if i do a "paxtest kiddie" or "paxtest blackhat"
on i386 (amd athlon-xp)

i get result:

strcpy() bad luck, try different compiler settings

seems like paxtest compiled wrong?
what paxtest version is this? i think the latest from the PaX test directory shouldn't produce this on i386.
should this test work to ensure pax working correctly?
the return-to-libc tests are supposed to fail, so you shouldn't lose any sleep over them anyway.
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm

Postby cpruefer » Mon Jul 09, 2007 1:13 am

what paxtest version is this? i think the latest from the PaX test directory shouldn't produce this on i386.

its 0.9.6 (gentoo 2006.1 hardened emerged)...
i will try compile the lastest from source and retest...
cpruefer
 
Posts: 8
Joined: Fri Jul 06, 2007 3:05 am

paxtest

Postby cpruefer » Mon Jul 09, 2007 2:29 am

with paxtest-0.9.7-pre4

EVERYTHING is FINE!!!

now i get a "stack smashing detected" on both strcpy, memcpy tests...

paxteam, you did produce a very satisfied "customer" 8)
when it ever should happen that i have money, be sure to receive a donation...

just one remark: with makefile for gentoo building breaks

make generic works...
cpruefer
 
Posts: 8
Joined: Fri Jul 06, 2007 3:05 am

Re: paxtest

Postby PaX Team » Sun Jul 15, 2007 4:31 am

cpruefer wrote:with paxtest-0.9.7-pre4

EVERYTHING is FINE!!!

now i get a "stack smashing detected" on both strcpy, memcpy tests...
that's actually a bug in the makefile, ssp is supposed to be disabled and the tests should show vulnerability (remember that paxtest tests, well, PaX, not other solutions and we have no deterministic protection against ret2libc attacks yet).
just one remark: with makefile for gentoo building breaks

make generic works...
the makefiles are sort of messy, fixing them is on the ever-growing todo list...
PaX Team
 
Posts: 2310
Joined: Mon Mar 18, 2002 4:35 pm


Return to grsecurity support