Linux s390 Architecture development
 help / color / mirror / Atom feed
* [PATCH v2 0/1] Close speculative mem read possibility
@ 2026-07-22 15:20 Harald Freudenberger
  2026-07-22 15:20 ` [PATCH v2 1/1] s390/zcrypt: " Harald Freudenberger
  0 siblings, 1 reply; 4+ messages in thread
From: Harald Freudenberger @ 2026-07-22 15:20 UTC (permalink / raw)
  To: Heiko Carstens, Vasily Gorbik, Alexander Gordeev; +Cc: freude, linux-s390

The domain value is extracted from a given CCA or EP11 ioctl struct
when a CPRB is about to be sent. Thus this is a user controlled value.
Under some special conditions (custom device node used, administrative
load) this value is used as an array index after bounds checking, but
without speculation barrier.

Add the missing array_index_nospec() call to prevent speculative
execution where this domain value is used.

Changelog:
v1: initial version
v2: Rephrased patch header text, added Finn's Reviewed-by, no code changes.

Harald Freudenberger (1):
  s390/zcrypt: Close speculative mem read possibility

 drivers/s390/crypto/zcrypt_api.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.43.0


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

end of thread, other threads:[~2026-07-22 18:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-22 15:20 [PATCH v2 0/1] Close speculative mem read possibility Harald Freudenberger
2026-07-22 15:20 ` [PATCH v2 1/1] s390/zcrypt: " Harald Freudenberger
2026-07-22 15:34   ` sashiko-bot
2026-07-22 18:32   ` Heiko Carstens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox