All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/1] pkey: Fix for PKEY_VERIFYPROTK ioctl
@ 2026-06-23 10:20 Holger Dengler
  2026-06-23 10:20 ` [PATCH v2 1/1] pkey: Fix for PKEY_VERIFYPROTK iotl Holger Dengler
  0 siblings, 1 reply; 6+ messages in thread
From: Holger Dengler @ 2026-06-23 10:20 UTC (permalink / raw)
  To: Harald Freudenberger, Ingo Franzki
  Cc: dengler, linux-s390, Heiko Carstens, Vasily Gorbik,
	Alexander Gordeev

The PKEY_VERIFYPROTK ioctl is used to verify protected key blobs. The
verification is mainly done y the called handler implementations. The
following patch 1/1 removes the (broken) length check in the generic API
code. The deep-inspection of the key blob is handler-specific.

The v1 of this series has fixed the length calculation for the keysize, so
that the correct keytype can be derived from it. But this is a violation of
the layering in pkey, where only the handlers should have a deep knowledge
of the key blobs. Therefore, v2 now removes the keysize calculation and the
keytype check, as it is always done by the handler.

The v2 has been rebased to the current master, as it adds a missing length
check for the ioctl request structure. This addresses one comment of the
Sashiko AI review.

Changes since v1:
- Remove the keytype check (instead of fix the length calculation)
- Add stable tag
- Rebase to current master

The patch applies to Linus' master branch.

Holger Dengler (1):
  pkey: Fix for PKEY_VERIFYPROTK iotl

 drivers/s390/crypto/pkey_api.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)


base-commit: 502d801f0ab03e4f32f9a33d203154ce84887921
-- 
2.54.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-23 13:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-23 10:20 [PATCH v2 0/1] pkey: Fix for PKEY_VERIFYPROTK ioctl Holger Dengler
2026-06-23 10:20 ` [PATCH v2 1/1] pkey: Fix for PKEY_VERIFYPROTK iotl Holger Dengler
2026-06-23 11:13   ` Alexander Gordeev
2026-06-23 13:25     ` Holger Dengler
2026-06-23 13:55       ` Alexander Gordeev
2026-06-23 13:28   ` Ingo Franzki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.