public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Paolo Abeni <pabeni@redhat.com>
To: Pengpeng Hou <pengpeng@iscas.ac.cn>, netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, tglx@kernel.org, mingo@kernel.org,
	kees@kernel.org
Subject: Re: [PATCH] NFC: pn533: bound the UART receive buffer
Date: Thu, 26 Mar 2026 11:48:00 +0100	[thread overview]
Message-ID: <3dd87db5-ec50-4019-b320-79319475e746@redhat.com> (raw)
In-Reply-To: <20260323072409.60086-1-pengpeng@iscas.ac.cn>

On 3/23/26 8:24 AM, Pengpeng Hou 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.
> 
> Signed-off-by: Pengpeng Hou <pengpeng@iscas.ac.cn>

This looks line 'net' material. Could you please provide a suitable
Fixes tag?

Thanks,

Paolo


  reply	other threads:[~2026-03-26 10:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-03-23  7:24 [PATCH] NFC: pn533: bound the UART receive buffer Pengpeng Hou
2026-03-26 10:48 ` Paolo Abeni [this message]
2026-03-26 14:20 ` [PATCH net v2] " Pengpeng Hou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3dd87db5-ec50-4019-b320-79319475e746@redhat.com \
    --to=pabeni@redhat.com \
    --cc=kees@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pengpeng@iscas.ac.cn \
    --cc=tglx@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox