diff options
author | Christoph Hellwig <hch@lst.de> | 2020-07-28 18:38:36 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-28 13:43:40 -0700 |
commit | a31edb2059ed4e498f9aa8230c734b59d0ad797a (patch) | |
tree | 050f16554295c22db098bb4e81021e21d2718c5f /net/ipv6/netfilter/ip6_tables.c | |
parent | net: remove sockptr_advance (diff) | |
download | wireguard-linux-a31edb2059ed4e498f9aa8230c734b59d0ad797a.tar.xz wireguard-linux-a31edb2059ed4e498f9aa8230c734b59d0ad797a.zip |
net: improve the user pointer check in init_user_sockptr
Make sure not just the pointer itself but the whole range lies in
the user address space. For that pass the length and then use
the access_ok helper to do the check.
Fixes: 6d04fe15f78a ("net: optimize the sockptr_t for unified kernel/user address spaces")
Reported-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/netfilter/ip6_tables.c')
0 files changed, 0 insertions, 0 deletions