Bug 1217098 - LTP: io_pgetevents check invalid parameter failed on m32
Summary: LTP: io_pgetevents check invalid parameter failed on m32
Status: RESOLVED DUPLICATE of bug 1193285
Alias: None
Product: PUBLIC SUSE Linux Enterprise Server 15 SP6
Classification: openSUSE
Component: Kernel (show other bugs)
Version: unspecified
Hardware: Other Other
: P5 - None : Normal
Target Milestone: ---
Assignee: Kernel Bugs
QA Contact:
URL: https://openqa.suse.de/tests/12803495...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-14 00:43 UTC by WEI GAO
Modified: 2023-11-14 08:31 UTC (History)
1 user (show)

See Also:
Found By: openQA
Services Priority:
Business Priority:
Blocker: Yes
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WEI GAO 2023-11-14 00:43:22 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.
Comment 1 Petr Cervinka 2023-11-14 08:31:09 UTC
Duplicate issue to https://bugzilla.suse.com/show_bug.cgi?id=1193285

*** This bug has been marked as a duplicate of bug 1193285 ***