Dan Carpenter
4b408c74ee
mm/gup_benchmark.c: prevent integer overflow in ioctl
...
The concern here is that "gup->size" is a u64 and "nr_pages" is unsigned
long. On 32 bit systems we could trick the kernel into allocating fewer
pages than expected.
Link: http://lkml.kernel.org/r/20181025061546.hnhkv33diogf2uis@kili.mountain
Fixes: 64c349f4ae78 ("mm: add infrastructure for get_user_pages_fast() benchmarking")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Keith Busch <keith.busch@intel.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-10-31 08:54:12 -07:00
..
2018-10-26 16:38:15 -07:00
2018-08-31 14:48:56 -06:00
2017-11-14 23:57:38 +02:00
2018-08-02 12:17:27 -06:00
2018-06-15 07:55:25 +09:00
2018-08-17 16:20:32 -07:00
2018-08-17 16:20:32 -07:00
2017-11-02 11:10:55 +01:00
2018-10-26 16:26:32 -07:00
2017-11-02 11:10:55 +01:00
2018-10-26 16:26:34 -07:00
2018-06-15 07:55:25 +09:00
2017-12-11 14:54:44 +01:00
2018-08-30 20:01:32 +02:00
2018-06-15 07:55:25 +09:00
2018-10-28 11:35:40 -07:00
2017-12-14 16:00:48 -08:00
2018-06-15 07:55:25 +09:00
2018-10-31 08:54:12 -07:00
2018-10-26 16:38:15 -07:00
2017-11-02 11:10:55 +01:00
2018-10-31 08:54:12 -07:00
2018-10-28 11:35:40 -07:00
2018-06-07 17:34:35 -07:00
2018-10-26 16:38:16 -07:00
2018-01-23 12:17:42 -06:00
2018-07-17 09:35:30 +02:00
2018-08-23 18:48:44 -07:00
2018-01-31 17:18:37 -08:00
2018-10-21 10:46:48 -04:00
2018-08-22 10:52:44 -07:00
2018-10-21 10:46:38 -04:00
2016-03-17 15:09:34 -07:00
2018-10-26 16:25:19 -07:00
2018-08-22 17:31:34 -07:00
2018-08-17 16:20:32 -07:00
2018-09-03 15:12:09 +02:00
2018-10-28 11:35:40 -07:00
2018-10-22 17:30:06 +01:00
2018-10-26 16:26:34 -07:00
2018-10-28 11:35:40 -07:00
2018-10-21 10:46:41 -04:00
2018-10-26 16:26:33 -07:00
2018-08-25 18:43:59 -07:00
2018-10-26 16:26:35 -07:00
2018-10-26 16:26:33 -07:00
2018-08-22 10:52:44 -07:00
2017-11-02 11:10:55 +01:00
2018-10-28 11:35:40 -07:00
2018-09-29 22:47:49 -04:00
2018-08-17 16:20:27 -07:00
2018-08-22 10:52:45 -07:00
2018-10-26 16:26:35 -07:00
2017-03-02 08:42:38 +01:00
2018-09-07 15:19:25 +01:00
2018-10-26 16:25:19 -07:00
2017-11-02 11:10:55 +01:00
2018-06-20 19:10:01 +02:00
2018-10-26 16:26:35 -07:00
2017-11-02 11:10:55 +01:00
2018-08-02 12:17:27 -06:00
2018-10-26 16:38:15 -07:00
2018-10-24 11:22:39 +01:00
2018-10-26 16:38:15 -07:00
2018-06-07 17:34:36 -07:00
2018-08-17 16:20:28 -07:00
2018-06-15 07:55:25 +09:00
2018-10-26 16:38:15 -07:00
2018-04-11 10:28:32 -07:00
2018-06-15 07:55:25 +09:00
2018-04-05 21:36:26 -07:00
2018-10-31 08:54:11 -07:00
2018-10-28 11:35:40 -07:00
2018-04-05 21:36:27 -07:00
2017-11-02 11:10:55 +01:00
2018-02-18 05:33:01 -08:00
2018-06-12 16:19:22 -07:00
2018-02-18 05:33:01 -08:00
2018-10-07 14:50:12 -07:00
2018-10-09 16:51:11 +02:00
2018-02-06 18:32:48 -08:00
2017-11-02 11:10:55 +01:00
2018-10-21 10:46:37 -04:00
2018-10-05 16:32:04 -07:00
2017-10-03 17:54:24 -07:00
2018-10-21 10:46:41 -04:00
2018-10-26 16:26:32 -07:00
2018-10-26 16:26:31 -07:00
2018-08-17 16:20:30 -07:00
2018-06-07 17:34:34 -07:00
2018-10-26 16:26:31 -07:00
2018-08-17 16:20:32 -07:00
2018-10-26 16:26:34 -07:00
2017-11-02 11:10:55 +01:00
2018-08-22 10:52:44 -07:00
2018-10-28 11:35:40 -07:00
2018-10-28 11:35:40 -07:00
2018-10-26 16:38:15 -07:00
2018-10-21 10:46:37 -04:00
2018-07-04 08:04:52 -07:00
2018-06-07 17:34:38 -07:00
2018-10-26 16:26:33 -07:00
2018-09-13 15:18:04 -10:00
2018-10-26 16:26:33 -07:00
2018-06-07 17:34:36 -07:00
2018-10-28 11:35:40 -07:00
2018-10-26 16:26:35 -07:00
2018-10-28 11:35:40 -07:00
2018-05-11 17:28:45 -07:00
2018-02-06 18:32:48 -08:00
2018-02-21 15:35:43 -08:00
2018-10-26 16:26:35 -07:00
2018-07-26 19:38:03 -07:00