JingYi Hou
d0bae4a0e3
net: remove duplicate fetch in sock_getsockopt
...
In sock_getsockopt(), 'optlen' is fetched the first time from userspace.
'len < 0' is then checked. Then in condition 'SO_MEMINFO', 'optlen' is
fetched the second time from userspace.
If change it between two fetches may cause security problems or unexpected
behaivor, and there is no reason to fetch it a second time.
To fix this, we need to remove the second fetch.
Signed-off-by: JingYi Hou <houjingyi647@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-06-18 10:04:16 -07:00
..
2019-06-15 14:37:56 -07:00
2019-04-08 09:51:54 -07:00
2019-03-27 13:49:44 -07:00
2019-05-30 11:26:32 -07:00
2019-03-27 13:49:43 -07:00
2019-06-16 13:45:14 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-06-12 10:09:56 -07:00
2019-04-10 22:12:26 -07:00
2018-03-29 14:10:30 -04:00
2019-06-08 12:52:42 -07:00
2019-06-07 14:46:47 -07:00
2019-05-21 10:50:45 +02:00
2019-05-16 12:02:42 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-03-10 11:07:14 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:36:38 +02:00
2019-05-30 11:26:32 -07:00
2019-04-27 09:07:04 -07:00
2019-06-16 14:15:58 -07:00
2019-05-21 10:50:45 +02:00
2019-04-09 14:19:06 +02:00
2019-05-30 11:26:32 -07:00
2017-11-02 11:10:55 +01:00
2019-02-17 10:33:39 -08:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-05-30 11:26:32 -07:00
2019-02-13 22:00:16 -08:00
2019-06-07 09:29:14 -07:00
2019-06-05 17:36:38 +02:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-30 11:26:32 -07:00
2019-05-21 10:50:45 +02:00
2019-06-07 14:46:47 -07:00
2019-05-14 01:31:43 +02:00
2018-08-14 10:01:24 -07:00
2018-10-20 00:40:45 +02:00
2019-03-27 13:49:43 -07:00
2019-06-18 10:04:16 -07:00
2018-12-04 21:21:18 -08:00
2019-06-14 20:18:28 -07:00
2019-05-24 17:36:45 +02:00
2017-11-02 11:10:55 +01:00
2019-05-30 11:26:32 -07:00
2019-06-05 17:37:09 +02:00