Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] tty: fix a stack overread and missing locking in serial drivers
@ 2026-12-05  6:35 Praneeth Balasubramanian
  2026-12-05  6:35 ` [PATCH 3/4] tty: atmel_serial: take the port lock in console write Praneeth Balasubramanian
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Praneeth Balasubramanian @ 2026-12-05  6:35 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Richard Genoud, Nicolas Ferre,
	Alexandre Belloni, Claudiu Beznea, Frank Li, Sascha Hauer
  Cc: Praneeth Balasubramanian, linuxppc-dev, linux-kernel,
	linux-serial, linux-arm-kernel, Pengutronix Kernel Team,
	Fabio Estevam, imx

These 4 patches fix bugs that an LLM-based audit found. The audit checks
code against the rules stated in kernel comments, such as "the caller
must hold this lock" or "drop the reference when done". Each changelog
explains the rule and the path that breaks it.

The patches are independent of each other, and each one can be applied
on its own. They are against next-20261204 and also apply to mainline
(007722b8211f).

None of them was runtime-tested. There is no reproducer, and I do not
have the hardware. Each one builds without new warnings with W=1, and
checkpatch.pl is clean. Details are below the --- of each patch.

Tools: GLM-5.3 drafted the fixes and changelogs. Claude Opus 5.5 checked
each one against the source and rewrote parts where needed. I reviewed
every patch.

Praneeth Balasubramanian (4):
  tty: hvsi: fix stack overread in hvsi_version_respond()
  serial: men_z135_uart: do not release an unrequested memory region
  tty: atmel_serial: take the port lock in console write
  mxser: take termios_rwsem in mxser_set_serial_info()

 drivers/tty/hvc/hvsi.c             |  7 +++++--
 drivers/tty/mxser.c                |  1 +
 drivers/tty/serial/atmel_serial.c  | 15 ++++++++++++---
 drivers/tty/serial/men_z135_uart.c |  7 +++++--
 4 files changed, 23 insertions(+), 7 deletions(-)


base-commit: 29beb21c21ada7207692b2d69fc58dcd15dab6e9
-- 
2.25.1



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-05 20:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-05  6:35 [PATCH 0/4] tty: fix a stack overread and missing locking in serial drivers Praneeth Balasubramanian
2026-12-05  6:35 ` [PATCH 3/4] tty: atmel_serial: take the port lock in console write Praneeth Balasubramanian
     [not found]   ` <sashiko-outbox-251173@kernel.org>
2026-12-05  8:20     ` Praneeth Balasubramanian
2026-12-05  6:35 ` [PATCH 4/4] mxser: take termios_rwsem in mxser_set_serial_info() Praneeth Balasubramanian
2026-12-05 12:21 ` [PATCH 0/4] tty: fix a stack overread and missing locking in serial drivers Greg Kroah-Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox