Home
last modified time | relevance | path

Searched hist:"65 ee03c4b9f89e1b088defd97273be6da169d798" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/mm/
H A Dvmalloc.cdiff 65ee03c4b9f89e1b088defd97273be6da169d798 Fri Jun 03 16:55:33 CDT 2016 Guillermo Julián Moreno <guillermo.julian@naudit.es> mm: fix overflow in vm_map_ram()

When remapping pages accounting for 4G or more memory space, the
operation 'count << PAGE_SHIFT' overflows as it is performed on an
integer. Solution: cast before doing the bitshift.

[akpm@linux-foundation.org: fix vm_unmap_ram() also]
[akpm@linux-foundation.org: fix vmap() as well, per Guillermo]
Link: http://lkml.kernel.org/r/etPan.57175fb3.7a271c6b.2bd@naudit.es
Signed-off-by: Guillermo Julián Moreno <guillermo.julian@naudit.es>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>