]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vt: lock Giant around kbd calls in CONS_GETINFO
authorEd Maste <emaste@FreeBSD.org>
Tue, 26 Jul 2016 15:34:26 +0000 (15:34 +0000)
committerEd Maste <emaste@FreeBSD.org>
Tue, 26 Jul 2016 15:34:26 +0000 (15:34 +0000)
commit8ee0bdb9fbe20d98e3714b42d20dc390fa4f30ea
tree5a7c232a1656fafc4b2bde477170c005eb6bcb47
parentbbecb73b0ebe929ece4f2409c8d990718655a52d
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