All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] target/s390x: Make PRNO TRNG interruptible
@ 2026-07-14 11:34 Ilya Leoshkevich
  2026-07-14 11:34 ` [PATCH 1/2] " Ilya Leoshkevich
  2026-07-14 11:34 ` [PATCH 2/2] tests/tcg/s390x: Test PRNO TRNG interruptibility Ilya Leoshkevich
  0 siblings, 2 replies; 4+ messages in thread
From: Ilya Leoshkevich @ 2026-07-14 11:34 UTC (permalink / raw)
  To: Richard Henderson, Cornelia Huck, Eric Farman, Matthew Rosato
  Cc: David Hildenbrand, qemu-s390x, qemu-devel, Harald Freudenberger,
	Ilya Leoshkevich

Hi,

Christian has reported that one can make a TCG guest stuck by running
PRNO TRNG with a huge buffer. This series fixes this by making PRNO
TRNG always end after generating 16KB.

Patch 1 is the fix, patch 2 is the test.

Cc: Harald, because this may conflict with the CPACF series.

Best regards,
Ilya

Ilya Leoshkevich (2):
  target/s390x: Make PRNO TRNG interruptible
  tests/tcg/s390x: Test PRNO TRNG interruptibility

 target/s390x/tcg/crypto_helper.c | 25 +++++++++---
 tests/tcg/s390x/Makefile.target  |  1 +
 tests/tcg/s390x/prno-trng.c      | 67 ++++++++++++++++++++++++++++++++
 3 files changed, 87 insertions(+), 6 deletions(-)
 create mode 100644 tests/tcg/s390x/prno-trng.c

-- 
2.55.0



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

end of thread, other threads:[~2026-07-14 14:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14 11:34 [PATCH 0/2] target/s390x: Make PRNO TRNG interruptible Ilya Leoshkevich
2026-07-14 11:34 ` [PATCH 1/2] " Ilya Leoshkevich
2026-07-14 14:28   ` Richard Henderson
2026-07-14 11:34 ` [PATCH 2/2] tests/tcg/s390x: Test PRNO TRNG interruptibility Ilya Leoshkevich

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.