Linux GPIO subsystem development
 help / color / mirror / Atom feed
* [RFC PATCH 6.6.y 0/4] misc: ti-st: close transport removal races
@ 2026-07-24  5:28 Hongyan Xu
  2026-07-24  5:28 ` [RFC PATCH 6.6.y 1/4] misc: ti-st: publish the transport only after probe succeeds Hongyan Xu
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Hongyan Xu @ 2026-07-24  5:28 UTC (permalink / raw)
  To: gregkh, sashal, arnd
  Cc: linusw, brgl, stable, linux-kernel, linux-gpio, jianhao.xu,
	getshell

The TI shared transport is published before probe completes and remains
published while remove tears its core down.  The exported protocol entry
points can retain the raw core pointer across that teardown.  An attached
N_TI_WL line discipline and its write-wakeup work provide another path to
the same freed core.

This series publishes only fully initialized transports, accounts users of
the published pointer, withdraws and drains that pointer on remove, and
synchronously closes an attached TTY before freeing the core.

This is an RFC for the 6.6 stable tree because the driver is still present
there but was removed from mainline by commit 78fe66360ed6 ("misc: ti-st:
st_kim: remove the driver").  There is consequently no current mainline
code location through which these fixes can first be merged.

The patches are based on linux-6.6.y commit da47cbc25466.

Hongyan Xu (4):
  misc: ti-st: publish the transport only after probe succeeds
  misc: ti-st: account published transport users
  misc: ti-st: drain published users before transport removal
  misc: ti-st: synchronize TTY teardown with transport removal

 drivers/misc/ti-st/st_core.c | 59 +++++++++++++++++++++++---------
 drivers/misc/ti-st/st_kim.c  | 65 ++++++++++++++++++++++--------------
 include/linux/ti_wilink_st.h |  8 +++++
 3 files changed, 91 insertions(+), 41 deletions(-)

-- 
2.50.1.windows.1

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

end of thread, other threads:[~2026-07-24  5:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-24  5:28 [RFC PATCH 6.6.y 0/4] misc: ti-st: close transport removal races Hongyan Xu
2026-07-24  5:28 ` [RFC PATCH 6.6.y 1/4] misc: ti-st: publish the transport only after probe succeeds Hongyan Xu
2026-07-24  5:28 ` [RFC PATCH 6.6.y 2/4] misc: ti-st: account published transport users Hongyan Xu
2026-07-24  5:28 ` [RFC PATCH 6.6.y 3/4] misc: ti-st: drain published users before transport removal Hongyan Xu
2026-07-24  5:28 ` [RFC PATCH 6.6.y 4/4] misc: ti-st: synchronize TTY teardown with " Hongyan Xu

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