summaryrefslogtreecommitdiffstats
path: root/drivers/Makefile
diff options
context:
space:
mode:
authorKalesh Singh <kaleshsingh@google.com>2020-12-30 00:14:40 +0100
committerLinus Torvalds <torvalds@linux-foundation.org>2020-12-30 00:36:49 +0100
commite05986ee7a5814bec0e0075d813daca3d46e4a9e (patch)
tree49d3a5bbfa9d636584d8e449c349cd0d75663bff /drivers/Makefile
parentmm: memmap defer init doesn't work as expected (diff)
downloadlinux-e05986ee7a5814bec0e0075d813daca3d46e4a9e.tar.xz
linux-e05986ee7a5814bec0e0075d813daca3d46e4a9e.zip
mm/mremap.c: fix extent calculation
When `next < old_addr`, `next - old_addr` arithmetic underflows causing `extent` to be incorrect. Make `extent` the smaller of `next - old_addr` or `old_end - old_addr`. Link: https://lkml.kernel.org/r/20201219170433.2418867-1-kaleshsingh@google.com Fixes: c49dd34018026 ("mm: speedup mremap on 1GB or larger regions") Signed-off-by: Kalesh Singh <kaleshsingh@google.com> Reported-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Guenter Roeck <linux@roeck-us.net> Cc: Suren Baghdasaryan <surenb@google.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Lokesh Gidra <lokeshgidra@google.com> Cc: Helge Deller <deller@gmx.de> Cc: Kalesh Singh <kaleshsingh@google.com> Cc: "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/Makefile')
0 files changed, 0 insertions, 0 deletions