Linux Operating System Source Code: IBM Patches

 
Fix msync SUS failures
Description:
The Linux 2.5.25 kernel was returning incorrect errnos on msync failures in regards to the Single UNIX Specification.
Developer:
Paul Larson
Status:
Included in project
Release Included:
2.5.26
IBM Bugzilla Bug ID: 1028

Notes:
msync03 and msync04 from Linux Test Project fail on 2.5.25

Expected Results:
msync03     1  PASS  :  msync() fails, Invalid address, errno : 22
avalon:/home/ltp/testcases/bin # ./msync04
msync04     1  PASS  :  mapped region is private and cannot sync, errno:22
avalon:/home/ltp/testcases/bin # ./msync05
msync05     1  PASS  :  memory region not mapped, errno:12

Additional Information:
msync03:
	Verify that msync() fails when the region to synchronize is outside the address
space of the process with -1, errno EINVAL

msync04:
	Verify that msync() fails when the region to synchronize is mapped but the flags
are invalid with -1, errno EINVAL

msync05:
	verify that msync() fails when the region to synchronize was not mapped with -1,
errno ENOMEM

Release Notes Date Files
20020708 Release Notes 2002-07-08  
  File Notes   msync-2.5.25.patch.gz