Bugzilla – Bug 1217098
LTP: io_pgetevents check invalid parameter failed on m32
Last modified: 2023-11-14 08:31:09 UTC
openQA test in scenario sle-15-SP6-Online-x86_64-ltp_syscalls_m32@64bit fails in [io_pgetevents02](https://openqa.suse.de/tests/12803495/modules/io_pgetevents02/steps/7) LTP failed log: tst_test.c:1690: TINFO: LTP version: 20230929 tst_test.c:1576: TINFO: Timeout per run is 0h 00m 30s io_pgetevents02.c:57: TINFO: Testing variant: syscall with old kernel spec io_pgetevents02.c:115: TPASS: invalid ctx: io_pgetevents() failed as expected: EINVAL (22) io_pgetevents02.c:115: TPASS: invalid min_nr: io_pgetevents() failed as expected: EINVAL (22) io_pgetevents02.c:115: TPASS: invalid max_nr: io_pgetevents() failed as expected: EINVAL (22) io_pgetevents02.c:115: TPASS: invalid events: io_pgetevents() failed as expected: EFAULT (14) io_pgetevents02.c:115: TPASS: invalid timeout: io_pgetevents() failed as expected: EFAULT (14) io_pgetevents02.c:115: TPASS: invalid sigmask: io_pgetevents() failed as expected: EFAULT (14) io_pgetevents02.c:57: TINFO: Testing variant: syscall time64 with kernel spec io_pgetevents02.c:115: TPASS: invalid ctx: io_pgetevents() failed as expected: EINVAL (22) io_pgetevents02.c:115: TPASS: invalid min_nr: io_pgetevents() failed as expected: EINVAL (22) io_pgetevents02.c:104: TFAIL: invalid max_nr: io_pgetevents() passed unexpectedly <<<<<<< io_pgetevents02.c:110: TFAIL: invalid events: io_pgetevents() should fail with EFAULT: SUCCESS (0) <<<<<<<< io_pgetevents02.c:115: TPASS: invalid timeout: io_pgetevents() failed as expected: EFAULT (14) io_pgetevents02.c:115: TPASS: invalid sigmask: io_pgetevents() failed as expected: EFAULT (14) Check the code, the test case try to call system call with following function: TEST(tv->io_pgetevents(*tc->ctx, tc->min_nr, tc->max_nr, tc->events, to, sigmask)); 1) try to put wrong tc-max_nr=-1, systemcall is success instead of error 2) try to put events=NULL, systemcall is success instead of error BTW: this issue ONLY happen on m32 compatibility mode.
Duplicate issue to https://bugzilla.suse.com/show_bug.cgi?id=1193285 *** This bug has been marked as a duplicate of bug 1193285 ***