Skip to content

ltp: update add_key tests for nonempty NULL payload fix

Eric Biggers keyrings ltp 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2syscalls/add_key02: remove testruntest/syscalls testcases/kernel/syscalls/.gitignore testcases/kernel/syscalls/add_key/add_key02.c+0 -760 replies
2/2syscalls/add_key03: add test for NULL payload with nonzero lengthruntest/syscalls testcases/kernel/syscalls/.gitignore testcases/kernel/syscalls/add_key/add_key03.c+106 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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