[GIT PULL] TTY/Serial driver fixes for 5.7-rc3

From: Greg KH
Date: Sun Apr 26 2020 - 06:48:46 EST


The following changes since commit 8f3d9f354286745c751374f5f1fcafee6b3f3136:

Linux 5.7-rc1 (2020-04-12 12:35:55 -0700)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/tty.git tags/tty-5.7-rc3

for you to fetch changes up to 9a9fc42b86c06120744555fea43fdcabe297c656:

tty: hvc: fix buffer overflow during hvc_alloc(). (2020-04-23 16:02:07 +0200)

----------------------------------------------------------------
TTY/Serial fixes for 5.7-rc3

Here are some tty and serial driver fixes for 5.7-rc3.

The "largest" in here are a number of reverts for previous changes to
the uartps serial driver that turned out to not be a good idea at all.

The others are just small fixes found by people and tools. Included in
here is a much-reported symbol export needed by previous changes that
happened in 5.7-rc1. All of these have been in linux-next for a while
with no reported issues.

Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>

----------------------------------------------------------------
Amit Singh Tomar (1):
tty: serial: owl: add "much needed" clk_prepare_enable()

Andrew Melnychenko (1):
tty: hvc: fix buffer overflow during hvc_alloc().

Andy Shevchenko (1):
serial: sunhv: Initialize lock for non-registered console

Dmitry Safonov (1):
tty/sysrq: Export sysrq_mask(), sysrq_toggle_support()

Jiri Slaby (1):
tty: rocket, avoid OOB access

Kazuhiro Fujita (1):
serial: sh-sci: Make sure status register SCxSR is read in correct sequence

Michal Simek (7):
Revert "serial: uartps: Fix uartps_major handling"
Revert "serial: uartps: Use the same dynamic major number for all ports"
Revert "serial: uartps: Fix error path when alloc failed"
Revert "serial: uartps: Do not allow use aliases >= MAX_UART_INSTANCES"
Revert "serial: uartps: Change uart ID port allocation"
Revert "serial: uartps: Move Port ID to device data structure"
Revert "serial: uartps: Register own uart console and driver structures"

Nicolas Pitre (2):
vt: don't use kmalloc() for the unicode screen buffer
vt: don't hardcode the mem allocation upper bound

Zou Wei (1):
tty: serial: bcm63xx: fix missing clk_put() in bcm63xx_uart

drivers/tty/hvc/hvc_console.c | 23 ++--
drivers/tty/rocket.c | 25 +++--
drivers/tty/serial/bcm63xx_uart.c | 4 +-
drivers/tty/serial/owl-uart.c | 7 ++
drivers/tty/serial/sh-sci.c | 13 ++-
drivers/tty/serial/sunhv.c | 3 +
drivers/tty/serial/xilinx_uartps.c | 211 +++++++++----------------------------
drivers/tty/sysrq.c | 2 +
drivers/tty/vt/vt.c | 7 +-
9 files changed, 106 insertions(+), 189 deletions(-)