Skip to contentSkip to conversation

crypto/crypto_user02.c: new test that tries to delete larval algorithm

PATCH In review Eric Biggers 2 participants 2 messages Jul 9, 2019 – Jul 10, 2019 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crypto/crypto_user02.c: new test that tries to delete larval algorithm

From: Eric Biggers <[email protected]>

Test for a bug in the crypto user configuration API (NETLINK_CRYPTO) where it incorrectly allowed operating on "larval" algorithms.

---
 runtest/crypto                          |   1 +
 testcases/kernel/crypto/.gitignore      |   1 +
 testcases/kernel/crypto/Makefile        |   2 +
 testcases/kernel/crypto/crypto_user02.c | 108 ++++++++++++++++++++++++
 4 files changed, 112 insertions(+)
 create mode 100644 testcases/kernel/crypto/crypto_user02.c
runtest/crypto +1 -0
index ad713c5edf..be8bc81d2f 100644
@@ -6,3 +6,4 @@ af_alg05 af_alg05
 af_alg06 af_alg06
 pcrypt_aead01 pcrypt_aead01
 crypto_user01 crypto_user01
+crypto_user02 crypto_user02
testcases/kernel/crypto/.gitignore +1 -0
index 7340bde293..c5be01180c 100644
@@ -6,3 +6,4 @@ af_alg05
 af_alg06
 pcrypt_aead01
 crypto_user01
+crypto_user02
testcases/kernel/crypto/Makefile +2 -0
index 6547e1cb63..7cbdb72d19 100644
@@ -22,3 +22,5 @@ CFLAGS			+= -D_GNU_SOURCE
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
 
 af_alg02: CFLAGS += -pthread
+
+crypto_user02: LDLIBS += -lrt
testcases/kernel/crypto/crypto_user02.c new file +108 -0

108 lines not on this page · raw message

Signature · 1 line
2.22.0