This is a note to let you know that I've just added the patch titled tty: mark Siemens R3964 line discipline as BROKEN to the 4.19-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: tty-mark-siemens-r3964-line-discipline-as-broken.patch and it can be found in the queue-4.19 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From c7084edc3f6d67750f50d4183134c4fb5712a5c8 Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Date: Fri, 5 Apr 2019 15:39:26 +0200 Subject: tty: mark Siemens R3964 line discipline as BROKEN From: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> commit c7084edc3f6d67750f50d4183134c4fb5712a5c8 upstream. The n_r3964 line discipline driver was written in a different time, when SMP machines were rare, and users were trusted to do the right thing. Since then, the world has moved on but not this code, it has stayed rooted in the past with its lovely hand-crafted list structures and loads of "interesting" race conditions all over the place. After attempting to clean up most of the issues, I just gave up and am now marking the driver as BROKEN so that hopefully someone who has this hardware will show up out of the woodwork (I know you are out there!) and will help with debugging a raft of changes that I had laying around for the code, but was too afraid to commit as odds are they would break things. Many thanks to Jann and Linus for pointing out the initial problems in this codebase, as well as many reviews of my attempts to fix the issues. It was a case of whack-a-mole, and as you can see, the mole won. Reported-by: Jann Horn <jannh@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Signed-off-by: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx> --- drivers/char/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/char/Kconfig +++ b/drivers/char/Kconfig @@ -343,7 +343,7 @@ config XILINX_HWICAP config R3964 tristate "Siemens R3964 line discipline" - depends on TTY + depends on TTY && BROKEN ---help--- This driver allows synchronous communication with devices using the Siemens R3964 packet protocol. Unless you are dealing with special Patches currently in stable-queue which might be from gregkh@xxxxxxxxxxxxxxxxxxx are queue-4.19/tty-mark-siemens-r3964-line-discipline-as-broken.patch queue-4.19/tty-ldisc-add-sysctl-to-prevent-autoloading-of-ldiscs.patch queue-4.19/alsa-hda-add-two-more-machines-to-the-power_save_blacklist.patch queue-4.19/hwmon-w83773g-select-regmap_i2c-to-fix-build-error.patch queue-4.19/alsa-hda-realtek-add-quirk-for-tuxedo-xc-1509.patch queue-4.19/lib-string.c-implement-a-basic-bcmp.patch queue-4.19/acpica-namespace-remove-address-node-from-global-list-after-method-termination.patch queue-4.19/acpica-clear-status-of-gpes-before-enabling-them.patch queue-4.19/alsa-hda-realtek-enable-headset-mic-of-acer-travelmate-b114-21-with-alc233.patch queue-4.19/alsa-seq-fix-oob-reads-from-strlcpy.patch