ltp: update add_key tests for nonempty NULL payload fix
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | syscalls/add_key02: remove testruntest/ testcases/ testcases/ | +0 | 0 replies | |
| 2/2 | syscalls/add_key03: add test for NULL payload with nonzero lengthruntest/ testcases/ testcases/ | +106 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/2] ltp: update add_key tests for nonempty NULL payload fix
From: Eric Biggers <[email protected]>
These two patches remove the existing add_key02 test, which is having its behavior changed, and replaces it with the more thorough add_key03 test which specifically tests the "NULL payload with nonzero length" case, which was subject to a kernel bug causing a NULL dereference with some key types.
(The reason I'm not simply changing the add_key02 test is that I don't want it to appear as a regression on old kernels. I'm not sure exactly how this kind of thing is typically handled in LTP, though.)
Eric Biggers (2):
syscalls/add_key02: remove test
syscalls/add_key03: add test for NULL payload with nonzero length
runtest/syscalls | 2 +- testcases/kernel/syscalls/.gitignore | 2 +- testcases/kernel/syscalls/add_key/add_key02.c | 74 ------------------ testcases/kernel/syscalls/add_key/add_key03.c | 104 ++++++++++++++++++++++++++ 4 files changed, 106 insertions(+), 76 deletions(-) delete mode 100644 testcases/kernel/syscalls/add_key/add_key02.c create mode 100644 testcases/kernel/syscalls/add_key/add_key03.c
Signature · 1 line
2.13.0.506.g27d5fe0cd-goog