#1034767 cryptsetup: askpass goes to 100% CPU utilisation when it's terminal HUPs

Package:
cryptsetup
Source:
cryptsetup
Description:
disk encryption support - startup scripts
Submitter:
Christoph Anton Mitterer
Date:
2023-04-23 22:15:04 UTC
Severity:
normal
#1034767#5
Date:
2023-04-23 22:10:41 UTC
From:
To:
Hey.

When askpass is running (and waiting) while it's terminal gets somehow
killed/HUPed/etc. ... it's process goes to 100% utilisation from where
it doesn't seem to recover anymore.

Reproducer:
Shell 1:
	echo $$
	/lib/cryptsetup/askpass foo
Shell 2:
	kill -HUP <the $$ from Shell 1>


Haven't tried it yet, but perhaps my waiting-forever PR at:
https://salsa.debian.org/cryptsetup-team/cryptsetup/-/merge_requests/26
might fix that ;-)


Cheers,
Chris.