OSDN Git Service

Merge branch 'udpv6_sendmsg-addr_any-fix'
authorAlexei Starovoitov <ast@kernel.org>
Sat, 5 Jan 2019 04:23:33 +0000 (20:23 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 5 Jan 2019 04:23:34 +0000 (20:23 -0800)
commit466f89e9ec8c6868131c2d2ba9cd5f536879c42a
tree34278582594c9b6909bab6005a955521dc3d4ee1
parentec90ad334986fa5856d11dd272f7f22fa86c55c4
parent976b4f3a4646fbf0d189caca25f91f82e4be4b5a
Merge branch 'udpv6_sendmsg-addr_any-fix'

Andrey Ignatov says:

====================
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.

v1->v2:
* Fix compile error in patch 1.
====================

Signed-off-by: Alexei Starovoitov <ast@kernel.org>