syscalls/keyctl06: new test for keyring_read() buffer overrun
PATCH 2/4 syscalls/keyctl06: new test for keyring_read() buffer overrun
From: Eric Biggers <[email protected]>
Add a test for a bug which caused the kernel to write past the end of the provided buffer when using KEYCTL_READ to read from a keyring.
Signed-off-by Eric Biggers <[email protected]>
--- runtest/syscalls | 1 + testcases/kernel/syscalls/.gitignore | 1 + testcases/kernel/syscalls/keyctl/keyctl06.c | 68 +++++++++++++++++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 testcases/kernel/syscalls/keyctl/keyctl06.c
runtest/syscalls +1 -0
@@ -500,6 +500,7 @@ keyctl02 keyctl02 keyctl03 keyctl03 keyctl04 keyctl04 keyctl05 keyctl05 +keyctl06 keyctl06 kcmp01 kcmp01 kcmp02 kcmp02
testcases/kernel/syscalls/.gitignore +1 -0
@@ -462,6 +462,7 @@ /keyctl/keyctl03 /keyctl/keyctl04 /keyctl/keyctl05 +/keyctl/keyctl06 /kcmp/kcmp01 /kcmp/kcmp02 /kcmp/kcmp03
testcases/kernel/syscalls/keyctl/keyctl06.c new file +68 -0
68 lines not on this page · raw message
Signature · 1 line
2.14.2.920.gcf0c67979c-goog