Re: [PATCH net 1/2] ppp: ppp_async: simplify tty disc_data access
From: patchwork-bot+netdevbpf
Date: Mon Aug 31 2026 - 21:28:58 EST
Hello:
This series was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Fri, 28 Aug 2026 15:32:36 +0800 you wrote:
> tty_ldisc_hangup() invokes the hangup callback while holding only a read
> lock on tty->ldisc_sem, so it can run concurrently with other line
> discipline callbacks. This currently forces async PPP to maintain
> separate lifetime protection around tty->disc_data.
>
> Line discipline close is called under the write lock during hangup
> processing. Remove the hangup callback and rely on close for teardown,
> as done for SLIP by commit 23c53269f2ba ("slip: remove slip_hangup() to
> fix use-after-free in slip_receive_buf()"). This serializes teardown
> with all other line discipline operations.
>
> [...]
Here is the summary with links:
- [net,1/2] ppp: ppp_async: simplify tty disc_data access
https://git.kernel.org/netdev/net/c/9feb069e5ed0
- [net,2/2] ppp: ppp_synctty: simplify tty disc_data access
https://git.kernel.org/netdev/net/c/d8d4d1cf40d5
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html