qemu/backends/tpm
Marc-André Lureau 8e32ddff69 tpm: fix crash when FD >= 1024 and unnecessary errors due to EINTR
Replace select() with poll() to fix a crash when QEMU has a large number
of FDs. Also use RETRY_ON_EINTR to avoid unnecessary errors due to EINTR.

Cc: qemu-stable@nongnu.org
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2020133
Fixes: 56a3c24ffc ("tpm: Probe for connected TPM 1.2 or TPM 2")
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Stefan Berger <stefanb@linux.ibm.com>
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
2023-09-13 08:42:57 -04:00
..
Kconfig tpm: Move backend code under the 'backends/' directory 2020-06-19 07:25:55 -04:00
meson.build meson: Replace softmmu_ss -> system_ss 2023-06-20 10:01:30 +02:00
tpm_backend.c thread-pool: avoid passing the pool parameter every time 2023-04-25 13:17:28 +02:00
tpm_emulator.c win32: replace closesocket() with close() wrapper 2023-03-13 15:39:31 +04:00
tpm_int.h tpm: Move backend code under the 'backends/' directory 2020-06-19 07:25:55 -04:00
tpm_ioctl.h misc/other: spelling fixes 2023-09-08 13:08:52 +03:00
tpm_passthrough.c qapi tpm: Elide redundant has_FOO in generated C 2022-12-14 20:05:07 +01:00
tpm_util.c tpm: fix crash when FD >= 1024 and unnecessary errors due to EINTR 2023-09-13 08:42:57 -04:00
trace-events tpm_emulator: Have swtpm relock storage upon migration fall-back 2022-09-13 10:27:17 -04:00
trace.h trace: switch position of headers to what Meson requires 2020-08-21 06:18:24 -04:00