opnsense-src/sys/dev/syscons
Bruce Evans 40de550ba7 Quick fix for locking fixes in r172250. The lock added there was per-
virtual-device, but needs to be per-physical-device so that it protects
shared data.  Usually, scp->sc->write_in_progress got corrupted first
and further corruption was limited when this variable was left at nonzero
with no write in progress.

Attempt to fix missing lock destruction in r162285.  Put it with the
lock destruction for r172250 after moving the latter.  Both might be
unreachable.

To demonstrate the bug, find a buggy syscall or sysctl that calls
printf(9) and run this often.  Run hd /dev/zero >/dev/ttyvN for any
N != 0.  The console spam goes to ttyv0 and the non-console spam goes
to ttyvN, so the lock provided no protection (but it helped for
N == 0).
2016-08-15 12:56:45 +00:00
..
apm
blank
daemon Fix sos@'s name. 2015-01-07 21:44:57 +00:00
dragon
fade
fire
green
logo
plasma Replace the cosine table with a sine table, which (due to the vagaries of 2016-01-02 16:40:37 +00:00
rain
snake
star
warp
scgfbrndr.c
schistory.c
scmouse.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
scterm-teken.c
scterm.c
scvesactl.c
scvgarndr.c sys: Make use of our rounddown() macro when sys/param.h is available. 2016-04-30 14:41:18 +00:00
scvidctl.c
scvtb.c
syscons.c Quick fix for locking fixes in r172250. The lock added there was per- 2016-08-15 12:56:45 +00:00
syscons.h Quick fix for locking fixes in r172250. The lock added there was per- 2016-08-15 12:56:45 +00:00
sysmouse.c Use a common tunable to choose between vt(4)/sc(4) 2014-06-27 17:50:33 +00:00