Created attachment 1951091 [details] kbd-1.15.5-vlock-stdin-closed-inf-loop.patch Description of problem: vlock causes 100% CPU usage when console or terminal is closed abruptly. It looks like there was a patch (kbd-1.15.5-vlock-stdin-closed-inf-loop.patch) as part of kbd-1.15.5-16.el7_9.x86_64.rpm, but this was not applied to newer versions of the package. Version-Release number of selected component (if applicable): kbd-2.0.4-10.el8.x86_64.rpm How reproducible: See bug# 1486233 Steps to Reproduce: start vlock and kill TTY session. Actual results: 100% CPU usage Expected results: vlock to cancel lock after TTY is absent. not cause 100% cpu usage. Additional info:
There is also a commit for KBD v2.0.90 (https://git.kernel.org/pub/scm/linux/kernel/git/legion/kbd.git/commit/?id=afb661b80441b6e3fa8cfa3b69f50e4805ebf8be) "Fix infinite loop of vlock if locked VC is closed", but the RHEL 8 KBD RPM uses v2.0.4.
Thank you, reproduced.