Re: [net-next] selftests: net: csum: filter packets by source address and port

From
Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date
2026-09-02 18:24:29
Also in
linux-kselftest
Reply to
netdev-bot+sashiko@kernel.org, 2026-09-02
netdev-bot+sashiko@ wrote:
Thank you for your contribution! Sashiko AI review found 1 potential
issue(s) to consider:

Critical: 0 · High: 1 · Medium: 0 · Low: 0

- [High] Incomplete fix: the patch adds source-address/source-port
  filtering only to the PF_PACKET verification path…


Would it make sense to also connect() the receive UDP socket to
cfg_saddr:cfg_port_src, or use recvfrom() and drop datagrams whose peer does
not match, with the same cfg_zero_sum exception used above since the source
port is computed at send time in that mode?
That's a great suggestion. I'll add recvfrom() src verification in v2.
Thread (3 messages) 3 messages, 2 authors, last reply 2026-09-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help