netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf 0/2] bpf: Fix [::] -> [::1] rewrite in sys_sendmsg
@ 2019-01-03 22:43 Andrey Ignatov
  2019-01-03 22:43 ` [PATCH bpf 1/2] " Andrey Ignatov
  2019-01-03 22:43 ` [PATCH bpf 2/2] selftests/bpf: Test [::] -> [::1] rewrite in sys_sendmsg in test_sock_addr Andrey Ignatov
  0 siblings, 2 replies; 4+ messages in thread
From: Andrey Ignatov @ 2019-01-03 22:43 UTC (permalink / raw)
  To: netdev; +Cc: Andrey Ignatov, ast, daniel, nitin.rawat, kernel-team

The patch set fixes BSD'ism in sys_sendmsg to rewrite unspecified
destination IPv6 for unconnected UDP sockets in sys_sendmsg with [::1] in
case when either CONFIG_CGROUP_BPF is enabled or when sys_sendmsg BPF hook
sets destination IPv6 to [::].

Patch 1 is the fix and provides more details.
Patch 2 adds two test cases to verify the fix.


Andrey Ignatov (2):
  bpf: Fix [::] -> [::1] rewrite in sys_sendmsg
  selftests/bpf: Test [::] -> [::1] rewrite in sys_sendmsg in test_sock_addr

 net/ipv6/udp.c                               |  8 +--
 tools/testing/selftests/bpf/test_sock_addr.c | 53 ++++++++++++++++++--
 2 files changed, 54 insertions(+), 7 deletions(-)

-- 
2.17.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-04  9:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-03 22:43 [PATCH bpf 0/2] bpf: Fix [::] -> [::1] rewrite in sys_sendmsg Andrey Ignatov
2019-01-03 22:43 ` [PATCH bpf 1/2] " Andrey Ignatov
     [not found]   ` <B09C58438338E249BE54C5BE772C588EBDD59B@BGSMSX106.gar.corp.intel.com>
2019-01-04  9:03     ` Andrey Ignatov
2019-01-03 22:43 ` [PATCH bpf 2/2] selftests/bpf: Test [::] -> [::1] rewrite in sys_sendmsg in test_sock_addr Andrey Ignatov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).