From: Andrey Ignatov <rdna@fb.com>
To: <netdev@vger.kernel.org>
Cc: Andrey Ignatov <rdna@fb.com>, <ast@kernel.org>,
<daniel@iogearbox.net>, <nitin.rawat@intel.com>,
<kernel-team@fb.com>
Subject: [PATCH bpf 0/2] bpf: Fix [::] -> [::1] rewrite in sys_sendmsg
Date: Thu, 3 Jan 2019 14:43:18 -0800 [thread overview]
Message-ID: <cover.1546554049.git.rdna@fb.com> (raw)
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
next reply other threads:[~2019-01-03 22:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-03 22:43 Andrey Ignatov [this message]
2019-01-03 22:43 ` [PATCH bpf 1/2] bpf: Fix [::] -> [::1] rewrite in sys_sendmsg 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1546554049.git.rdna@fb.com \
--to=rdna@fb.com \
--cc=ast@kernel.org \
--cc=daniel@iogearbox.net \
--cc=kernel-team@fb.com \
--cc=netdev@vger.kernel.org \
--cc=nitin.rawat@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).