Re: [PATCH] selftests/bpf: Fail unbound UDP on sockmap update

From: Greg KH

Date: Fri Aug 07 2026 - 10:09:46 EST


On Fri, Aug 07, 2026 at 10:45:27AM -0300, Ricardo B. Marlière (SUSE) wrote:
> From: Michal Luczaj <mhal@xxxxxxx>
>
> [ Upstream commit 203b06932777b9ad5085319389dea566f5c2ca63 ]
>
> sockmap now rejects unbound UDP sockets. Adjust test_maps. While at it,
> check socket()'s return value.
>
> This effectively reverts commit c39aa2159974 ("bpf, selftests: Fix
> test_maps now that sockmap supports UDP").
>
> Signed-off-by: Michal Luczaj <mhal@xxxxxxx>
> Reviewed-by: Kuniyuki Iwashima <kuniyu@xxxxxxxxxx>
> Reviewed-by: Jakub Sitnicki <jakub@xxxxxxxxxxxxxx>
> Link: https://lore.kernel.org/bpf/20260707-sockmap-lookup-udp-leak-v4-4-f878346f27ab@xxxxxxx
> Signed-off-by: Kumar Kartikeya Dwivedi <memxor@xxxxxxxxx>
> ---
> Signed-off-by: Ricardo B. Marlière (SUSE) <ricardo@xxxxxxxxxxxx>

This goes above the --- line, right?

Please slow down, there's no rush here.

thanks,

greg k-h