CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2020/06/21 14:36:08
Modified files:
usr.sbin/vmd : ns8250.c
Log message:
vmd(8): fix ns8250 lockup due to race condition
Inject a pending interrupt even if the rcv_pending flag is set to avoid the
endless EV_READ loop where a byte lingers read to be read but the vcpu never
gets the interrupt to read it. (e.g. the result of spamming RETURN via the
serial console)
Also, protect com ratelimit handler with mutexes to avoid corruption of the
device state.
These changes help preventing linux vm crashes when the return key is held on
boot.
Discovered by and patch from Dave Voutila <[email protected]>
ok tb@