Re: [PATCH net v2] NFC: pn533: bound the UART receive buffer
From: patchwork-bot+netdevbpf
Date: Tue Mar 31 2026 - 05:15:17 EST
Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@xxxxxxxxxx>:
On Thu, 26 Mar 2026 22:20:33 +0800 you wrote:
> pn532_receive_buf() appends every incoming byte to dev->recv_skb and
> only resets the buffer after pn532_uart_rx_is_frame() recognizes a
> complete frame. A continuous stream of bytes without a valid PN532 frame
> header therefore keeps growing the skb until skb_put_u8() hits the tail
> limit.
>
> Drop the accumulated partial frame once the fixed receive buffer is full
> so malformed UART traffic cannot grow the skb past
> PN532_UART_SKB_BUFF_LEN.
>
> [...]
Here is the summary with links:
- [net,v2] NFC: pn533: bound the UART receive buffer
https://git.kernel.org/netdev/net/c/30fe3f5f6494
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html