Re: [PATCH v3] keys: Protect the update method check against type removal

From
Jarkko Sakkinen <jarkko@kernel.org>
Date
2026-10-31 09:50:34
Also in
keyrings, lkml
Reply to
Cen Zhang, 2026-10-31
On Sat, Oct 31, 2026 at 05:26:36PM +0800, Cen Zhang wrote:
+out_free_preparse:
 	if (key->type->preparse)
 		key->type->free_preparse(&prep);
+
+out:
+	up_write(&key->sem);
 	return ret;
 }
 EXPORT_SYMBOL(key_update);

base-commit: 9a2a4c51dccc3168c3dc949fcbaa360a478fa228
-- 
2.43.0
Thanks for taking the trouble addressing this part.

I'll apply it soon'ish.

Reviewed-by: Jarkko Sakkinen <jarkko@kernel.org>

Br, Jarkko
Thread (6 messages) 6 messages, 4 authors, last reply 3d ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help