Bug 453990 - [RHEL5.3] LTP test failure in inotify02 testcase
[RHEL5.3] LTP test failure in inotify02 testcase
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kernel (Show other bugs)
5.2
All Linux
low Severity medium
: rc
: ---
Assigned To: Jeff Burke
Martin Jenner
http://rhts.redhat.com/testlogs/24620...
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-07-03 13:43 EDT by Jeff Burke
Modified: 2009-07-06 17:28 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-01-20 15:23:24 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to fix the inotify LTP test failure (2.01 KB, patch)
2008-07-03 13:43 EDT, Jeff Burke
no flags Details | Diff

  None (edit)
Description Jeff Burke 2008-07-03 13:43:30 EDT
Description of problem:
A bug in inotify_user.c

Following comment is at fs/inotify_user.c:287
/* coalescing: drop this event if it is a dupe of the previous */

I think the previous event in the comment should be the last event in the
link list.  But inotify_dev_get_event return the first event in the list.
In addition, it doesn't check whether the list is empty

http://kerneltrap.org/mailarchive/git-commits-head/2008/2/6/748474

Version-Release number of selected component (if applicable):
2.6.18-92.el5

How reproducible:
 Always

Steps to Reproduce:
1. Boot 5.2 GA
2. Install Latest version of LTP and run the inotify02 testcase from the
syscalls tests.
  
Actual results:
------ Log Snippet: -------

<<<test_start>>>
tag=inotify02 stime=1215036015
cmdline="inotify02"
contacts=""
analysis=exit
initiation_status="ok"
<<<test_output>>>
inotify02    1  PASS  :  get event: wd=1 mask=40000004 cookie=0 len=0 name=""
inotify02    2  PASS  :  get event: wd=1 mask=100 cookie=0 len=16 name="test_file1"
inotify02    3  PASS  :  get event: wd=1 mask=20 cookie=0 len=16 name="test_file1"
inotify02    4  PASS  :  get event: wd=1 mask=8 cookie=0 len=16 name="test_file1"
inotify02    5  PASS  :  get event: wd=1 mask=40 cookie=173 len=16 name="test_file1"
inotify02    6  PASS  :  get event: wd=1 mask=80 cookie=173 len=16 name="test_file2"
inotify02    7  PASS  :  get event: wd=1 mask=800 cookie=0 len=0 name=""
inotify02    8  PASS  :  get event: wd=1 mask=200 cookie=0 len=16 name="test_file2"
inotify02    9  PASS  :  get event: wd=1 mask=800 cookie=0 len=0 name=""
inotify02   10  FAIL  :  get unnecessary event: wd=1 mask=800 cookie=0 len=0name=""
<<<execution_status>>>
duration=0 termination_type=exited termination_id=1 corefile=no
cutime=0 cstime=1
<<<test_end>>>

Expected results:
 This test shuold pass

Additional info:
 This was also found upstream and reported to LTP list

- http://www.mail-archive.com/ltp-list@lists.sourceforge.net/msg02636.html

- Patch was added to v2.6.25-rc1~775
Comment 1 Jeff Burke 2008-07-03 13:43:31 EDT
Created attachment 310943 [details]
Patch to fix the inotify LTP test failure
Comment 2 RHEL Product and Program Management 2008-07-25 13:02:27 EDT
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
Comment 4 RHEL Product and Program Management 2008-07-25 13:31:26 EDT
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".
Comment 6 RHEL Product and Program Management 2008-07-25 14:14:03 EDT
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.
Comment 7 Don Zickus 2008-07-25 16:26:53 EDT
in kernel-2.6.18-100.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5
Comment 9 Don Zickus 2008-08-08 15:00:00 EDT
Alright, I suck.  This was intended for -100.el5 but the bz flags blocked me and my scripts failed to reflect this. :(  Moving back to POST to show it is still on my queue.
Comment 10 Don Zickus 2008-08-13 12:07:29 EDT
in kernel-2.6.18-104.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5
Comment 11 Don Zickus 2008-08-13 13:25:57 EDT
in kernel-2.6.18-104.el5
You can download this test kernel from http://people.redhat.com/dzickus/el5
Comment 18 errata-xmlrpc 2009-01-20 15:23:24 EST
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-0225.html

Note You need to log in before you can comment on or make changes to this bug.