mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v8 0/2] serial: core: fix baud rate fallback loop and baud_base overflow
@ 2026-10-07  9:47 Hui Peng
  2026-10-07  9:47 ` [PATCH v8 1/2] serial: core: fix baud rate fallback in uart_get_baud_rate() Hui Peng
  2026-10-07  9:47 ` [PATCH v8 2/2] serial: core: reject baud_base values that overflow port->uartclk in uart_set_info() Hui Peng
  0 siblings, 2 replies; 5+ messages in thread
From: Hui Peng @ 2026-10-07  9:47 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, John Ogness, Ilpo Järvinen
  Cc: Andy Shevchenko, Hugo Villeneuve, linux-serial, linux-kernel,
	stable, Hui Peng

This series addresses two issues in serial core:
1. Division-by-zero WARN/Oops during baud rate fallback in uart_get_baud_rate().
2. 32-bit unsigned overflow in uart_set_info() when multiplying new_info->baud_base by 16.

All patches are ported to the latest tip of mainline (551c722f4080) and
dynamically verified in QEMU KVM with CONFIG_KASAN=y.

Changes in v8:
- 1/2: Rewrote commit description to detail the step-by-step loop iteration
  progression (try == 0, try == 1, try == 2) as requested by Ilpo Järvinen
  and Greg Kroah-Hartman.
- 2/2: Dropped secondary Fixes: 6eabce6608d6 tag per Hugo Villeneuve feedback.

Hui Peng (2):
  serial: core: fix baud rate fallback in uart_get_baud_rate()
  serial: core: reject baud_base values that overflow port->uartclk in
    uart_set_info()

 drivers/tty/serial/serial_core.c | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)
-- 
2.47.3

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

end of thread, other threads:[~2026-10-07 14:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-07  9:47 [PATCH v8 0/2] serial: core: fix baud rate fallback loop and baud_base overflow Hui Peng
2026-10-07  9:47 ` [PATCH v8 1/2] serial: core: fix baud rate fallback in uart_get_baud_rate() Hui Peng
2026-10-07 10:43   ` Ilpo Järvinen
2026-10-07 14:13   ` Hugo Villeneuve
2026-10-07  9:47 ` [PATCH v8 2/2] serial: core: reject baud_base values that overflow port->uartclk in uart_set_info() Hui Peng

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

all inboxes | Powered by JetHome®