add_key05 from ubuntu_ltp_syscalls failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
linux (Ubuntu) |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Xenial |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Bionic |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Eoan |
Fix Released
|
Undecided
|
Po-Hsu Lin | ||
Focal |
Fix Released
|
Undecided
|
Po-Hsu Lin |
Bug Description
== SRU Justification ==
add_key05 test in LTP syscalls test is a regression test for the following
commits:
* a08bf91ce28e ("KEYS: allow reaching the keys quotas exactly")
* 2e356101e72a ("KEYS: reaching the keys quotas correctly")
This test case will fail with the following sub-test, which is for testing
maximum length passed to the add_key syscall:
add_key05.c:133: FAIL: add_key(test_max) failed unexpectedly: EDQUOT (122)
== Fix ==
* 2e356101e72a ("KEYS: reaching the keys quotas correctly")
This patch can be cherry-picked into X/B/D/E/F.
== Test ==
Test kernels could be found here:
https:/
The test will pass with the patched kernel:
add_key05.c:128: PASS: add_key(test_max) succeeded as expected
== Regression Potential ==
Low, small correction for length limit and with positive test results.
== Original Bug Report ==
Issue found on Trusty 4.4.0-1065.69-aws
It's a new test case added in https:/
startup='Fri Mar 27 07:54:17 2020'
tst_buffers.c:55: INFO: Test is using guarded buffers
tst_test.c:1229: INFO: Timeout per run is 0h 05m 00s
add_key05.c:89: INFO: test max bytes under unprivileged user
add_key05.c:114: PASS: add_key(test_inv) failed as expected: EDQUOT (122)
add_key05.c:133: FAIL: add_key(test_max) failed unexpectedly: EDQUOT (122)
userdel: ltp_add_key05 mail spool (/var/mail/
userdel: ltp_add_key05 home directory (/home/
add_key05.c:150: INFO: test max keys under unprivileged user
add_key05.c:168: PASS: add_key(
add_key05.c:175: PASS: allow reaching the max key(200) exactly
userdel: ltp_add_key05 mail spool (/var/mail/
userdel: ltp_add_key05 home directory (/home/
HINT: You _MAY_ be missing kernel fixes, see:
https:/
https:/
Summary:
passed 3
failed 1
skipped 0
warnings 0
tag=add_key05 stime=1585295657 dur=0 exit=exited stat=1 core=no cu=0 cs=1
CVE References
tags: | added: 4.4 aws kqa-blocker sru-20200316 trusty ubuntu-ltp-syscalls |
Changed in ubuntu-kernel-tests: | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in linux (Ubuntu Xenial): | |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
Changed in ubuntu-kernel-tests: | |
status: | New → In Progress |
Changed in linux (Ubuntu Xenial): | |
status: | Incomplete → In Progress |
Changed in linux (Ubuntu Bionic): | |
status: | New → In Progress |
assignee: | nobody → Po-Hsu Lin (cypressyew) |
tags: | added: 4.15 5.3 bionic eoan |
Changed in linux (Ubuntu Eoan): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Bionic): | |
status: | In Progress → Fix Committed |
Changed in linux (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
This issue can be found on 4.4 generic kernel as well.