]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/bpf: Ensure UDP sockets are bound
authorMichal Luczaj <mhal@rbox.co>
Tue, 7 Jul 2026 04:23:56 +0000 (06:23 +0200)
committerKumar Kartikeya Dwivedi <memxor@gmail.com>
Wed, 15 Jul 2026 08:34:13 +0000 (10:34 +0200)
commitfe3ff273767ef22fe8a7cb3816f264927c190e50
treec8fdd1de67ac3b7afddbd8bde01263c05ebdd9ca
parent7cbd0c4cebe4c9f678d15e6b9ba975e1155a107f
selftests/bpf: Ensure UDP sockets are bound

Update sockmap_basic tests to bind sockets before they are used. This
accommodates the recent change in sockmap that rejects unbound UDP sockets.

Signed-off-by: Michal Luczaj <mhal@rbox.co>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Reviewed-by: Jakub Sitnicki <jakub@cloudflare.com>
Link: https://lore.kernel.org/bpf/20260707-sockmap-lookup-udp-leak-v4-1-f878346f27ab@rbox.co
Signed-off-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
tools/testing/selftests/bpf/prog_tests/sockmap_basic.c