diff options
author | Ingo Molnar <mingo@kernel.org> | 2017-10-30 10:30:09 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-10-30 10:30:09 +0100 |
commit | e17bae3266cc3d828003bdf78b5aa019db3ffa95 (patch) | |
tree | a73f200ba68bea7915b25e1a077c3f43c9183bdc /net/unix/diag.c | |
parent | 773dd2fca581b0a80e5a33332cc8ee67e5a79cba (diff) | |
parent | 0b07194bb55ed836c2cc7c22e866b87a14681984 (diff) |
Merge tag 'v4.14-rc7' into x86/mm, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'net/unix/diag.c')
-rw-r--r-- | net/unix/diag.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/unix/diag.c b/net/unix/diag.c index 4d9679701a6d..384c84e83462 100644 --- a/net/unix/diag.c +++ b/net/unix/diag.c @@ -257,6 +257,8 @@ static int unix_diag_get_exact(struct sk_buff *in_skb, err = -ENOENT; if (sk == NULL) goto out_nosk; + if (!net_eq(sock_net(sk), net)) + goto out; err = sock_diag_check_cookie(sk, req->udiag_cookie); if (err) |