Re: [PATCH] arm64/mm: fix virtual address boundary check

2016-02-24 Thread Miles Chen
On Wed, 2016-02-24 at 16:19 +, Catalin Marinas wrote: > On Thu, Feb 25, 2016 at 12:01:48AM +0800, miles.c...@mediatek.com wrote: > > From: Miles Chen > > > > The MODULES_VADDR is not the lowest possible > > kernel virtual address. TASK_SIZE_64 may be larger than > > MODULES_VADDR, FIXADDR_TOP

Re: [PATCH] arm64/mm: fix virtual address boundary check

2016-02-24 Thread Catalin Marinas
On Thu, Feb 25, 2016 at 12:01:48AM +0800, miles.c...@mediatek.com wrote: > From: Miles Chen > > The MODULES_VADDR is not the lowest possible > kernel virtual address. TASK_SIZE_64 may be larger than > MODULES_VADDR, FIXADDR_TOP, and PCI_IO_START. > > Fix this by comparing TASK_SIZE_64 (highest u

[PATCH] arm64/mm: fix virtual address boundary check

2016-02-24 Thread miles.chen
From: Miles Chen The MODULES_VADDR is not the lowest possible kernel virtual address. TASK_SIZE_64 may be larger than MODULES_VADDR, FIXADDR_TOP, and PCI_IO_START. Fix this by comparing TASK_SIZE_64 (highest user virtual address) with VA_START (lowest kernel virtual address). #define VA_BITS