Christoph Hellwig a31edb2059 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>
2020-07-28 13:43:40 -07:00
..
2020-07-28 13:43:40 -07:00
2020-03-12 15:55:00 -07:00
2020-03-12 15:55:00 -07:00
2020-07-13 17:20:39 -07:00
2020-07-24 17:12:41 -07:00
2020-03-30 13:45:04 -07:00
2020-07-24 17:12:41 -07:00
2020-07-27 11:39:55 -07:00
2020-06-10 13:18:40 -07:00
2020-07-24 15:41:54 -07:00
2020-03-16 18:26:54 -07:00
2020-07-13 17:20:39 -07:00
2020-03-16 18:26:55 -07:00
2020-07-28 13:43:40 -07:00