Re: [PATCH net v3 2/2] selftests: net: exercise SO_MARK on connected sockets
From: Willem de Bruijn
Date: Mon Nov 09 2026 - 21:48:05 EST
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 <yanxia@xxxxxxxxxxxxxxxxxxxx>
Reviewed-by: Willem de Bruijn <willemb@xxxxxxxxxx>