Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109528447
D32084.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
772 B
Referenced Files
None
Subscribers
None
D32084.diff
View Options
diff --git a/sys/opencrypto/crypto.c b/sys/opencrypto/crypto.c
--- a/sys/opencrypto/crypto.c
+++ b/sys/opencrypto/crypto.c
@@ -202,6 +202,13 @@
"Enable/disable use of software crypto by /dev/crypto");
#endif
+#ifdef DIAGNOSTIC
+bool crypto_destroyreq_check;
+SYSCTL_BOOL(_kern_crypto, OID_AUTO, destroyreq_check, CTLFLAG_RWTUN,
+ &crypto_destroyreq_check, 0,
+ "Enable checks when destroying a request");
+#endif
+
MALLOC_DEFINE(M_CRYPTO_DATA, "crypto", "crypto session records");
static void crypto_dispatch_thread(void *arg);
@@ -1580,6 +1587,9 @@
struct cryptop *crp2;
struct crypto_ret_worker *ret_worker;
+ if (!crypto_destroyreq_check)
+ return;
+
CRYPTO_Q_LOCK();
TAILQ_FOREACH(crp2, &crp_q, crp_next) {
KASSERT(crp2 != crp,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Feb 7, 7:08 AM (21 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16507619
Default Alt Text
D32084.diff (772 B)
Attached To
Mode
D32084: crypto: hide crypto_destroyreq behind a tunable
Attached
Detach File
Event Timeline
Log In to Comment