[X][B][D][E][F][SRU][PATCH 0/1] Fix for add_key05 test in LTP syscalls test

Po-Hsu Lin po-hsu.lin at canonical.com
Tue Apr 7 06:12:46 UTC 2020


== 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://people.canonical.com/~phlin/kernel/lp-1869644-add_key05/

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.


Yang Xu (1):
  KEYS: reaching the keys quotas correctly

 security/keys/key.c    | 2 +-
 security/keys/keyctl.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

-- 
2.7.4




More information about the kernel-team mailing list