Re: [PATCH net v5] serial: caif: hold tty->link reference in ldisc_open and ser_release
From: patchwork-bot+netdevbpf
Date: Mon Mar 09 2026 - 22:01:07 EST
Hello:
This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@xxxxxxxxxx>:
On Thu, 5 Mar 2026 22:40:06 -0500 you wrote:
> A reproducer triggers a KASAN slab-use-after-free in pty_write_room()
> when caif_serial's TX path calls tty_write_room(). The faulting access
> is on tty->link->port.
>
> Hold an extra kref on tty->link for the lifetime of the caif_serial line
> discipline: get it in ldisc_open() and drop it in ser_release(), and
> also drop it on the ldisc_open() error path.
>
> [...]
Here is the summary with links:
- [net,v5] serial: caif: hold tty->link reference in ldisc_open and ser_release
https://git.kernel.org/netdev/net/c/288598d80a06
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html