diff options
| author | Samuel Thibault <[email protected]> | 2020-11-29 19:35:23 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-11-30 08:20:32 +0000 |
| commit | f0992098cadb4c9c6a00703b66cafe604e178fea (patch) | |
| tree | 46ba746d25bb147727c739d61d1aaac35a7b40f3 /drivers/gpu/drm/lima/lima_devfreq.c | |
| parent | Linux 5.10-rc6 (diff) | |
| download | kernel-f0992098cadb4c9c6a00703b66cafe604e178fea.tar.gz kernel-f0992098cadb4c9c6a00703b66cafe604e178fea.zip | |
speakup: Reject setting the speakup line discipline outside of speakup
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: [email protected]
Reported-by: Shisong Qin <[email protected]>
Signed-off-by: Samuel Thibault <[email protected]>
Tested-by: Shisong Qin <[email protected]>
Link: https://lore.kernel.org/r/20201129193523.hm3f6n5xrn6fiyyc@function
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/lima/lima_devfreq.c')
0 files changed, 0 insertions, 0 deletions
