summaryrefslogtreecommitdiff
path: root/arch/ppc/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorPengpeng Hou <pengpeng@iscas.ac.cn>2026-03-26 22:20:33 +0800
committerPaolo Abeni <pabeni@redhat.com>2026-03-31 11:04:30 +0200
commit30fe3f5f6494f827d812ff179f295a8e532709d6 (patch)
tree7855a5f236f66df75aee67012ce669f173fdc204 /arch/ppc/git@git.tavy.me:linux.git
parent2884bf72fb8f03409e423397319205de48adca16 (diff)
NFC: pn533: bound the UART receive buffer
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. Fixes: c656aa4c27b1 ("nfc: pn533: add UART phy driver") Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn> Link: https://patch.msgid.link/20260326142033.82297-1-pengpeng@iscas.ac.cn Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'arch/ppc/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions