aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bitmap.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2018-10-30 22:04:32 +0000
committerLinus Torvalds <[email protected]>2018-10-31 15:54:12 +0000
commit4b408c74ee5a0b74fc9265c2fe39b0e7dec7c056 (patch)
tree246fef299b54169bc2e6c9c298df9da367021069 /lib/bitmap.c
parentmm/hmm: invalidate device page table at start of invalidation (diff)
downloadkernel-4b408c74ee5a0b74fc9265c2fe39b0e7dec7c056.tar.gz
kernel-4b408c74ee5a0b74fc9265c2fe39b0e7dec7c056.zip
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/[email protected] Fixes: 64c349f4ae78 ("mm: add infrastructure for get_user_pages_fast() benchmarking") Signed-off-by: Dan Carpenter <[email protected]> Acked-by: Kirill A. Shutemov <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Stephen Rothwell <[email protected]> Cc: Keith Busch <[email protected]> Cc: "Michael S. Tsirkin" <[email protected]> Cc: Kees Cook <[email protected]> Cc: YueHaibing <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/bitmap.c')
0 files changed, 0 insertions, 0 deletions