RFC misc: ti-st: close transport removal races
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest4 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | misc: ti-st: publish the transport only after probe succeedsdrivers/ | +5 | 0 replies | |
| 2/4 | misc: ti-st: account published transport usersdrivers/ drivers/ include/ | +42 | 0 replies | |
| 3/4 | misc: ti-st: drain published users before transport removaldrivers/ drivers/ | +26 | 0 replies | |
| 4/4 | misc: ti-st: synchronize TTY teardown with transport removaldrivers/ | +18 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC PATCH 6.6.y 0/4] misc: ti-st: close transport removal races
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(-)
Signature · 1 line
2.50.1.windows.1