Hi,

This patch adds /proc/ppc64/rtas/error_log to the known failure list 
according to a Red Hat kernel developer,

"In kernel's rtas_log_read() the first check is:
...
        if (!buf || count < rtas_error_log_buffer_max)
                return -EINVAL;
...
This code tries to avoid to be overcomplicated by rejecting
partial reads of log strings. rtas_error_log_buffer_max is a maximal 
length of error message, and reader should provide enough space for 
it, or it will loose."

The default of this test is to use 1024-byte read buffer, and it is 
proved not enough, as well as 4096-byte sometimes. I don't want to 
special case here. Hence, add it to the list.

Reference,
https://bugzilla.redhat.com/show_bug.cgi?id=460106

Signed-off-by: CAI Qian <[email protected]>

--- testcases/kernel/fs/proc/proc01.c.orig      2009-01-23 01:34:36.043430095 
+0800
+++ testcases/kernel/fs/proc/proc01.c   2009-01-23 01:45:28.947429320 +0800
@@ -1,8 +1,8 @@
 /*
  * proc01.c - Tests Linux /proc file reading.
  *
+ * Copyright (C) 2008, 2009  Red Hat, Inc.
  * 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
@@ -88,6 +88,7 @@
     {"read", "/proc/xen/privcmd", EINVAL},
     {"read", "/proc/self/mem", EIO},
     {"read", "/proc/self/task/[0-9]*/mem", EIO},
+    {"read", "/proc/ppc64/rtas/error_log", EINVAL},
     {"", "", 0}
   };


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to