forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitf099209
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 potentialbugs. 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_synthis NULL.This change restricts the use of the speakup line discipline tospeakup drivers, thus avoiding such kind of issues altogether.Cc: stable@vger.kernel.orgReported-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@functionSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parentb650545 commitf099209
1 file changed
+23
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | 57 | | |
61 | | - | |
62 | | - | |
63 | | - | |
| 58 | + | |
64 | 59 | | |
65 | | - | |
66 | 60 | | |
67 | 61 | | |
68 | 62 | | |
69 | | - | |
70 | | - | |
| 63 | + | |
71 | 64 | | |
72 | 65 | | |
73 | 66 | | |
| |||
191 | 184 | | |
192 | 185 | | |
193 | 186 | | |
| 187 | + | |
| 188 | + | |
194 | 189 | | |
195 | 190 | | |
196 | | - | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
197 | 206 | | |
198 | 207 | | |
199 | 208 | | |
| |||
0 commit comments
Comments
(0)