Re: [PATCH net v3 2/2] selftests: net: exercise SO_MARK on connected sockets

From
Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Date
2026-11-10 02:47:41
Also in
linux-kselftest, lkml, stable
Reply to
Xia Yan, 2026-11-09
Xia Yan wrote:
cmsg_so_mark.sh sends to explicit destinations, so it does not test the
route cached by connect().

Add -k to cmsg_sender to connect first and send without msg_name.
Check connected IPv4 and IPv6 UDP, ping and raw sockets with equal,
prohibited and zero per-message marks.

Add an exact mark 0 prohibit rule before the connected cases. Connect
with an allowed socket mark, then require rejection of a mark 0 cmsg.

The same test fails four IPv6 cases before the kernel fix and passes
all 54 with it.
nit: empty line before Signed-off-by block
Signed-off-by: Xia Yan <redacted>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Thread (5 messages) 5 messages, 3 authors, last reply 3d ago
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