diff options
author | Willem de Bruijn <willemb@google.com> | 2019-04-25 19:06:54 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-16 10:17:17 +0300 |
commit | 91c38d754460efab3e91f7bfec1cecbdcfe8384d (patch) | |
tree | 8ea118b15292d6b7bbdae4741bd99913795a97e9 /net/ipv4/fou.c | |
parent | 1e584073efa2619a410f3448e19c9e61c6a26155 (diff) | |
download | linux-91c38d754460efab3e91f7bfec1cecbdcfe8384d.tar.xz |
ipv6: invert flowlabel sharing check in process and user mode
[ Upstream commit 95c169251bf734aa555a1e8043e4d88ec97a04ec ]
A request for a flowlabel fails in process or user exclusive mode must
fail if the caller pid or uid does not match. Invert the test.
Previously, the test was unsafe wrt PID recycling, but indeed tested
for inequality: fl1->owner != fl->owner
Fixes: 4f82f45730c68 ("net ip6 flowlabel: Make owner a union of struct pid* and kuid_t")
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/ipv4/fou.c')
0 files changed, 0 insertions, 0 deletions