summaryrefslogtreecommitdiffstats
path: root/mm/shmem.c
diff options
context:
space:
mode:
authorChintan Pandya2018-06-08 02:06:53 +0200
committerLinus Torvalds2018-06-08 02:34:35 +0200
commit05e3ff9505858a39dc696ca195b5d79e524aac03 (patch)
treecf70546db807b048229b4f1e9bc06ac127f85dc3 /mm/shmem.c
parentmm: vmalloc: avoid racy handling of debugobjects in vunmap (diff)
downloadkernel-qcow2-linux-05e3ff9505858a39dc696ca195b5d79e524aac03.tar.gz
kernel-qcow2-linux-05e3ff9505858a39dc696ca195b5d79e524aac03.tar.xz
kernel-qcow2-linux-05e3ff9505858a39dc696ca195b5d79e524aac03.zip
mm: vmalloc: pass proper vm_start into debugobjects
Client can call vunmap with some intermediate 'addr' which may not be the start of the VM area. Entire unmap code works with vm->vm_start which is proper but debug object API is called with 'addr'. This could be a problem within debug objects. Pass proper start address into debug object API. [akpm@linux-foundation.org: fix warning] Link: http://lkml.kernel.org/r/1523961828-9485-3-git-send-email-cpandya@codeaurora.org Signed-off-by: Chintan Pandya <cpandya@codeaurora.org> Reviewed-by: Andrew Morton <akpm@linux-foundation.org> Cc: Ard Biesheuvel <ard.biesheuvel@linaro.org> Cc: Byungchul Park <byungchul.park@lge.com> Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Florian Fainelli <f.fainelli@gmail.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Laura Abbott <labbott@redhat.com> Cc: Vlastimil Babka <vbabka@suse.cz> Cc: Wei Yang <richard.weiyang@gmail.com> Cc: Yisheng Xie <xieyisheng1@huawei.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/shmem.c')
0 files changed, 0 insertions, 0 deletions