Re: [PATCH] selftests/bpf: Fail unbound UDP on sockmap update
From: Ricardo B. Marlière (SUSE)
Date: Fri Aug 07 2026 - 10:26:47 EST
On Fri Aug 7, 2026 at 10:58 AM -03, Greg KH wrote:
> 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?
>
Yeah I'm currently fighting with `b4` in the stable workflow :/
> Please slow down, there's no rush here.
This is actually a different commit, I sent before seeing your reply on the
other one. I'll double check before sending, thx
>
> thanks,
>
> greg k-h