boot2 will deadlock if extended keys are used on text input
The boot2 stage (gptzfsboot) does present ~5 second time window to interrupt automatic boot and get boot: prompt, unfortunately this text entry has problem, allowing to trigger infinite loop.
See also: https://reviews.freebsd.org/D8608
Updated by Toomas Soome about 7 years ago
The problem is about avoiding the noise from some systems, generating
false key events with scan code 1 and ascii code 00, so the code
does attempt to filter such cases out. Unfortunately the extended keys
also set ascii 0, and therefore the pressed key event is ignored and
the keypress is never read, resulting in infinite loop.
The solution is to move the check to keyhit() function and to allow
the rest of the code to process the extended keys.
Updated by Electric Monk almost 7 years ago
- Status changed from New to Closed
commit fcd334223a4d858a57152c6578a93eb8791a634f Author: Toomas Soome <firstname.lastname@example.org> Date: 2016-12-13T21:54:06.000Z 7608 boot2 will deadlock if extended keys are used on text input Reviewed by: Robert Mustacchi <email@example.com> Approved by: Richard Lowe <firstname.lastname@example.org>