vt: lock Giant around kbd calls in CONS_GETINFO
authoremaste <emaste@FreeBSD.org>
Tue, 26 Jul 2016 15:34:26 +0000 (15:34 +0000)
committeremaste <emaste@FreeBSD.org>
Tue, 26 Jul 2016 15:34:26 +0000 (15:34 +0000)
commitff041dec2bd47e3fa11375dad30cc09e2b042df3
tree5a7c232a1656fafc4b2bde477170c005eb6bcb47
parentabad5e749f6de27e7a5ada7998a7dbf083324558
vt: lock Giant around kbd calls in CONS_GETINFO

Note that keyboards are stored in an array and are not freed (just
"unregistered" by clearing some fields) so a race would be limited to
obtaining stale information about an unregistered keyboard.

Reported by: CTurt
MFC after: 3 days
sys/dev/vt/vt_core.c