Re: [PATCH] proc/kcore: Don't bounds check against address 0

2018-05-01 Thread Laura Abbott
On 05/01/2018 02:46 PM, Andrew Morton wrote: On Tue, 1 May 2018 13:11:43 -0700 Laura Abbott wrote: The existing kcore code checks for bad addresses against __va(0) with the assumption that this is the lowest address on the system. This may not hold true on some systems (e.g. arm64) and produc

Re: [PATCH] proc/kcore: Don't bounds check against address 0

2018-05-01 Thread Andrew Morton
On Tue, 1 May 2018 13:11:43 -0700 Laura Abbott wrote: > The existing kcore code checks for bad addresses against > __va(0) with the assumption that this is the lowest address > on the system. This may not hold true on some systems (e.g. > arm64) and produce overflows and crashes. Switch to using

[PATCH] proc/kcore: Don't bounds check against address 0

2018-05-01 Thread Laura Abbott
The existing kcore code checks for bad addresses against __va(0) with the assumption that this is the lowest address on the system. This may not hold true on some systems (e.g. arm64) and produce overflows and crashes. Switch to using other functions to validate the address range. Tested-by: Dave