NetBSD/sys/dev/wscons
drochner cf45120117 Avoid deadlock in tty code if a terminal emulation responds to
type/status/etc inquiries. (PR kern/37915)
This is clearly a design problem in tty, but we need a cheap fix now.
The problem is that ttyinput() tries to pull a spinlock which
is already held on calls to t_oproc.
The workaround is based on the fact that within wscons code, the
wsdisplay_emulinput() function is only called directly from
wsdisplaystart(). So we can be sure that the tty lock is held,
and use an inofficial entry point in ttc.c which avoids the locking.
These ate certainly more assumptions than needed by the fix
proposed in the PR, but it doesn't affect (and slow down) other
tty drivers.
2009-01-22 20:40:20 +00:00
..
ascii.h
files.wscons
Makefile
mra.c
tpcalib.c
tpcalibvar.h
unicode.h
wscons_callbacks.h
wscons_raster.h
wscons_rfont.h
wscons_rinit.c
wscons_rops.c
wsconsio.h
wsdisplay_compat_usl.c
wsdisplay_usl_io.h
wsdisplay_vcons.c
wsdisplay_vconsvar.h
wsdisplay.c Avoid deadlock in tty code if a terminal emulation responds to 2009-01-22 20:40:20 +00:00
wsdisplayvar.h
wsemul_dumb.c
wsemul_sun.c
wsemul_vt100_chars.c
wsemul_vt100_keys.c
wsemul_vt100_subr.c
wsemul_vt100.c
wsemul_vt100var.h
wsemulconf.c
wsemulvar.h
wsevent.c always use the new version of wscons_event for in-kernel. 2009-01-16 15:14:11 +00:00
wseventvar.h always use the new version of wscons_event for in-kernel. 2009-01-16 15:14:11 +00:00
wskbd.c - reduce the number of #ifdefs. 2009-01-15 04:22:11 +00:00
wskbdutil.c
wskbdvar.h
wsksymdef.h
wsksymvar.h
wsmouse.c - reduce the number of #ifdefs. 2009-01-15 04:22:11 +00:00
wsmousevar.h
wsmux.c - reduce the number of #ifdefs. 2009-01-15 04:22:11 +00:00
wsmuxvar.h