All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] serial: owl, uartlite: undo clock setup on probe failure
@ 2026-12-01 19:17 ` Arina Kharlamova via B4 Relay
  0 siblings, 0 replies; 8+ messages in thread
From: Arina Kharlamova @ 2026-12-01 19:17 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Jiri Slaby, Andreas Färber,
	Manivannan Sadhasivam, Amit Singh Tomar, Peter Korsgaard,
	Shubhrajyoti Datta
  Cc: linux-kernel, linux-serial, linux-arm-kernel, linux-actions,
	kernel test robot, Dan Carpenter, Arina Kharlamova

Two serial drivers leave the port clock enabled when probe fails
after enabling it. uartlite also leaves runtime PM enabled.

I found these with spec2patch. I model-checked the probe and remove
paths of each driver with CBMC against formal specifications of the
kernel APIs they call. The specifications are checked against the kernel
source, and some of them are proved in Rocq against a transcription of
the kernel code. I also checked lock usage separately. With the help of
an AI coding assistant (Claude); I reviewed the analysis and the fix.
Compile-tested only, not tested on hardware.

---
Arina Kharlamova (2):
      serial: owl: Disable the clock when uart_add_one_port() fails
      serial: uartlite: Undo clock and runtime PM setup on probe failure

 drivers/tty/serial/owl-uart.c | 4 +++-
 drivers/tty/serial/uartlite.c | 7 +++++++
 2 files changed, 10 insertions(+), 1 deletion(-)
---
base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
change-id: 20261201-s2p-tty1-ee20b0ff657a

Best regards,
--  
Arina Kharlamova <arina.kharlamova@mbzuai.ac.ae>


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

end of thread, other threads:[~2026-12-01 19:23 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-01 19:17 [PATCH 0/2] serial: owl, uartlite: undo clock setup on probe failure Arina Kharlamova
2026-12-01 19:17 ` Arina Kharlamova via B4 Relay
2026-12-01 19:17 ` [PATCH 1/2] serial: owl: Disable the clock when uart_add_one_port() fails Arina Kharlamova
2026-12-01 19:17   ` Arina Kharlamova via B4 Relay
2026-12-01 19:17 ` [PATCH 2/2] serial: uartlite: Undo clock and runtime PM setup on probe failure Arina Kharlamova
2026-12-01 19:17   ` Arina Kharlamova via B4 Relay
2026-12-01 19:23   ` sashiko-bot
2026-12-01 19:23 ` [PATCH 0/2] serial: owl, uartlite: undo clock " sashiko-bot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.