On Wednesday 15 October 2008, Elder Costa wrote:
> I have run the latest CVS version and noticed ptrace06 is not being
> compiled. Previous versions did compile but did not include it in the
> default test lists so it was not running.
>
> Anyway I am getting an error when I run it in two different systems with
> Ubuntu Feisty:
>
> ptrace06   16  FAIL  :  ptrace(PEEKUSER, ..., 0xc0, (nil)) returned 0
> instead of -1
> ptrace06   17  PASS  :  ptrace(PEEKUSER, ..., 0xc1, (nil)) failed as
> expected
> ptrace06   18  PASS  :  ptrace(PEEKUSER, ..., 0xc2, (nil)) failed as
> expected
> ptrace06   19  PASS  :  ptrace(PEEKUSER, ..., 0xc3, (nil)) failed as
> expected
> p
>
>
> I understand the test fails because ptrace was supposed to return -1
> because the address supplied by the third argument is beyond pt_regs
> struct boundaries. I did a quick test with Fedora as well and it fails
> in the very same place. Is this the reason why this test has been
> suppressed?

the point of the test is to make sure out-of-bound values are rejected.  some 
arches may do weird things beyond sizeof(pt_regs), but the kernel needs to be 
checked to see if that is the case.  or more importantly, is the kernel not 
properly doing range checking and thus allowing people to peek at data they 
shouldnt ...
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to