Hi,

--- On Thu, 12/11/08, Subrata Modak <[email protected]> wrote:

> From: Subrata Modak <[email protected]>
> Subject: Re: [LTP] [PATCH] Proc01: Remove a Known Failure and Add Copyright
> To: "CAI Qian" <[email protected]>
> Cc: [email protected]
> Date: Thursday, December 11, 2008, 10:48 PM
> On Mon, 2008-12-08 at 01:57 -0800, CAI Qian wrote:
> > Resend and add missing Signed-off-by line.
> > 
> > Signed-off-by: CAI Qian <[email protected]>
> 
> I get the following on the following machine:
> 
> $ ./testcases/kernel/fs/proc/proc01 
> proc01      1  FAIL  :  /proc/acpi/lths: read: Invalid
> argument
> proc01      0  INFO  :  /proc/self/task/13965/mem: read:
> known issue:
> Input/output error
> proc01      2  FAIL  :  /proc/self/task/13965/attr/current:
> read:
> Invalid argument
> proc01      3  FAIL  :  /proc/self/task/13965/attr/prev:
> read: Invalid
> argument
> proc01      4  FAIL  :  /proc/self/task/13965/attr/exec:
> read: Invalid
> argument
> proc01      5  FAIL  : 
> /proc/self/task/13965/attr/fscreate: read:
> Invalid argument
> proc01      6  FAIL  : 
> /proc/self/task/13965/attr/keycreate: read:
> Invalid argument
> proc01      7  FAIL  : 
> /proc/self/task/13965/attr/sockcreate: read:
> Invalid argument
> proc01      0  INFO  :  /proc/self/mem: read: known issue:
> Input/output
> error
> proc01      8  FAIL  :  /proc/self/attr/current: read:
> Invalid argument
> proc01      9  FAIL  :  /proc/self/attr/prev: read: Invalid
> argument
> proc01     10  FAIL  :  /proc/self/attr/exec: read: Invalid
> argument
> proc01     11  FAIL  :  /proc/self/attr/fscreate: read:
> Invalid argument
> proc01     12  FAIL  :  /proc/self/attr/keycreate: read:
> Invalid
> argument
> proc01     13  FAIL  :  /proc/self/attr/sockcreate: read:
> Invalid
> argument
> proc01     14  FAIL  :  readproc() failed with 13 errors.
> 
> $ uname -a
> Linux 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008
> i686 i686 i386
> GNU/Linux
> 

This looks like SELinux related. Please look at the file,

/etc/selinux/config

to see if the SELinux is currently disabled. If so, try again with it
is enabled. It works for me here,

# cat /etc/selinux/config
SELINUX=enforcing
SELINUXTYPE=targeted

# # cat /proc/self/attr/prev
root:system_r:unconfined_t:s0-s0:c0.c1023

If it still does not solve your problem, can you always reproduce it?

> Hope the fix that you talked about will be available in
> upstream
> kernel(s).
> 

The patch has sent to upstream, but seems not accepted yet.

http://lkml.org/lkml/2008/7/4/112

However, it is going to fix in upcoming RHEL 5.3 release.

https://bugzilla.redhat.com/show_bug.cgi?id=376831

CAI Qian

> Regards--
> Subrata
> 
> > 
> > diff -u testcases/kernel/fs/proc/proc01.c.orig
> testcases/kernel/fs/proc/proc01.c
> > --- testcases/kernel/fs/proc/proc01.c.orig   
> 2008-11-10 19:47:11.615965386 +0800
> > +++ testcases/kernel/fs/proc/proc01.c    2008-12-08
> 17:35:06.665356354 +0800
> > @@ -2,6 +2,7 @@
> >   * proc01.c - Tests Linux /proc file reading.
> >   *
> >   * Copyright (C) 2001 Stephane Fillod
> <[email protected]>
> > + * Copyright (c) 2008 Red Hat, Inc.
> >   * 
> >   * This program is free software; you can
> redistribute it and/or modify it
> >   * under the terms of version 2 of the GNU General
> Public License as
> > @@ -94,7 +95,6 @@
> >     the test while being read.*/
> > const char error_nonblock[][PATH_MAX] =
> >    {
> > -    "/proc/ppc64/rtas/error_log",
> >      "/proc/xen/xenbus",
> >      ""
> >    };
> > 
> > 
> > 
> > 
> > ----- Original Message ----
> > > From: CAI Qian <[email protected]>
> > > To: [email protected]
> > > Sent: Monday, December 8, 2008 5:48:05 PM
> > > Subject: [LTP] [PATCH] Proc01: Remove a Known
> Failure and Add Copyright
> > > 
> > > Hi,
> > > 
> > > The following patch removes a known failure that
> has been fixed in RHEL 5.3 and 
> > > the fix also sent upstream, as well as adds
> missing copyright information.
> > > 
> > > diff -u testcases/kernel/fs/proc/proc01.c.orig
> testcases/kernel/fs/proc/proc01.c
> > > --- testcases/kernel/fs/proc/proc01.c.orig   
> 2008-11-10 19:47:11.615965386 
> > > +0800
> > > +++ testcases/kernel/fs/proc/proc01.c   
> 2008-12-08 17:35:06.665356354 +0800
> > > @@ -2,6 +2,7 @@
> > >   * proc01.c - Tests Linux /proc file reading.
> > >   *
> > >   * Copyright (C) 2001 Stephane Fillod 
> > > + * Copyright (c) 2008 Red Hat, Inc.
> > >   * 
> > >   * This program is free software; you can
> redistribute it and/or modify it
> > >   * under the terms of version 2 of the GNU
> General Public License as
> > > @@ -94,7 +95,6 @@
> > >     the test while being read.*/
> > > const char error_nonblock[][PATH_MAX] =
> > >    {
> > > -    "/proc/ppc64/rtas/error_log",
> > >      "/proc/xen/xenbus",
> > >      ""
> > >    };
> > > 
> > > Thanks,
> > > CAI Qian
> > > 
> > > 
> > >
> ------------------------------------------------------------------------------
> > > SF.Net email is Sponsored by MIX09, March 18-20,
> 2009 in Las Vegas, Nevada.
> > > The future of the web can't happen without
> you.  Join us at MIX09 to help
> > > pave the way to the Next Web now. Learn more and
> register at
> > >
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> > > _______________________________________________
> > > Ltp-list mailing list
> > > [email protected]
> > >
> https://lists.sourceforge.net/lists/listinfo/ltp-list
> > 
> > 
> >
> ------------------------------------------------------------------------------
> > SF.Net email is Sponsored by MIX09, March 18-20, 2009
> in Las Vegas, Nevada.
> > The future of the web can't happen without you. 
> Join us at MIX09 to help
> > pave the way to the Next Web now. Learn more and
> register at
> >
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> > _______________________________________________
> > Ltp-list mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/ltp-list

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to