linux/drivers/staging
Samuel Thibault b0d4fa10bf speakup: Reject setting the speakup line discipline outside of speakup
commit f0992098ca upstream.

Speakup exposing a line discipline allows userland to try to use it,
while it is deemed to be useless, and thus uselessly exposes potential
bugs. One of them is simply that in such a case if the line sends data,
spk_ttyio_receive_buf2 is called and crashes since spk_ttyio_synth
is NULL.

This change restricts the use of the speakup line discipline to
speakup drivers, thus avoiding such kind of issues altogether.

Cc: stable@vger.kernel.org
Reported-by: Shisong Qin <qinshisong1205@gmail.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Tested-by: Shisong Qin <qinshisong1205@gmail.com>
Link: https://lore.kernel.org/r/20201129193523.hm3f6n5xrn6fiyyc@function
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-11 13:23:31 +01:00
..
android
axis-fifo
board
clocking-wizard
comedi staging: comedi: cb_pcidas: Allow 2-channel commands for AO subdevice 2020-11-05 11:43:37 +01:00
emxx_udc staging: emxx_udc: Fix passing of NULL to dma_alloc_coherent() 2020-10-29 09:57:37 +01:00
exfat
fbtft
fieldbus staging: fieldbus: anybuss: jump to correct label in an error path 2020-11-05 11:43:37 +01:00
fsl-dpaa2
fwserial
gasket
gdm724x
goldfish
greybus staging: greybus: audio: fix uninitialized value issue 2020-09-17 13:47:55 +02:00
gs_fpgaboot
iio
isdn
kpc2000
ks7010
media media: staging/intel-ipu3: css: Correctly reset some memory 2020-10-29 09:57:31 +01:00
most
mt7621-dma
mt7621-dts
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl
netlogic
nvec
octeon staging/octeon: fix up merge error 2020-12-08 10:40:24 +01:00
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma staging: ralink-gdma: fix kconfig dependency bug for DMA_RALINK 2020-12-02 08:49:47 +01:00
rtl8188eu staging:r8188eu: avoid skb_clone for amsdu to msdu conversion 2020-10-01 13:17:57 +02:00
rtl8192e
rtl8192u staging: rtl8192u: Do not use GFP_KERNEL in atomic context 2020-10-29 09:57:36 +01:00
rtl8712
rtl8723bs staging: rtl8723bs: Add 024c:0627 to the list of SDIO device-ids 2020-11-24 13:29:21 +01:00
rts5208
sm750fb
speakup speakup: Reject setting the speakup line discipline outside of speakup 2020-12-11 13:23:31 +01:00
unisys
uwb
vc04_services
vme
vt6655
vt6656
wilc1000 net: wilc1000: clean up resource in error path of init mon interface 2020-10-29 09:57:40 +01:00
wlan-ng
wusbcore
Kconfig
Makefile