On Thu, 2008-05-22 at 11:29 +0800, Li Zefan wrote:
> I got the following failure:
> 
> ptrace03    0  WARN  :  ptrace() returned 0; errno: 0, Success
> ptrace03    1  FAIL  :  Test Failed
> ptrace03    2  PASS  :  Test Passed
> ptrace03    3  PASS  :  Test Passed
> 
> This is because the latest kernel allows init process to be traced.
> 
> The commit is:
> http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=00cd5c37afd5f431ac186dd131705048c0a11fdb
> 
> See the discussion in LKML:
> http://marc.info/?t=120628018600001
> 
> So we should not execute this test case if the kernel version
> is above 2.6.25.
> 
> Here is the test result after patching (linux 2.6.26-rc2):
> 
> ptrace03    1  CONF  :  this kernel allows to trace init
> ptrace03    2  PASS  :  Test Passed
> ptrace03    3  PASS  :  Test Passed
> 
> Signed-off-by: Li Zefan <[EMAIL PROTECTED]>

Thanks Li for the patch. The same has been applied. Can you also look
into one test case which has been giving some weired failure. It was
regarding the:

ltp/testcases/kernel/fs/proc/proc01.c test case.

I am just pasting what Max Stirling <[EMAIL PROTECTED]> reported on
the mailing list some days back:

Max´s mail.....................

Does proc01 testcase pass for anyone?

I ran the binary on my machine and it fails. Please see the below log.

Am I _missing_ something?

ubuntu@/home/ubuntu/Documents/work/ltp/ltp-full-20071130/testcases/kernel/fs/proc
->sudo ./proc01
proc01      0  INFO  :  /proc/acpi/event: open: Device or resource busy
proc01      0  INFO  :  /proc/sys/fs/binfmt_misc/register: is
write-only.
proc01      0  INFO  :  /proc/sysrq-trigger: is write-only.
proc01      0  INFO  :  /proc/kmsg: read: Resource temporarily
unavailable
proc01      0  INFO  :  /proc/self/task/5273/mem: read: Input/output
error
proc01      0  INFO  :  /proc/self/task/5273/clear_refs: is write-only.
proc01      0  INFO  :  /proc/self/task/5273/attr/prev: read: Invalid
argument
proc01      0  INFO  :  /proc/self/task/5273/attr/exec: read: Invalid
argument
proc01      0  INFO  :  /proc/self/task/5273/attr/fscreate: read:
Invalid argument
proc01      0  INFO  :  /proc/self/task/5273/attr/keycreate: read:
Invalid argument
proc01      0  INFO  :  /proc/self/task/5273/attr/sockcreate: read:
Invalid argument
proc01      0  INFO  :  /proc/self/mem: read: Input/output error
proc01      0  INFO  :  /proc/self/clear_refs: is write-only.
proc01      0  INFO  :  /proc/self/attr/prev: read: Invalid argument
proc01      0  INFO  :  /proc/self/attr/exec: read: Invalid argument
proc01      0  INFO  :  /proc/self/attr/fscreate: read: Invalid argument
proc01      0  INFO  :  /proc/self/attr/keycreate: read: Invalid
argument
proc01      0  INFO  :  /proc/self/attr/sockcreate: read: Invalid
argument
proc01      1  FAIL  :  readproc() failed with 14 errors.

Regards--
Subrata



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to