Re: [PATCH 3/3] powerpc/mm: Use VMALLOC_START to validate addr

2022-06-26 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Le 23/06/2022 à 14:29, Aneesh Kumar K.V a écrit : >> Instead of high_memory use VMALLOC_START to validate that the address is >> not in the vmalloc range. >> >> Cc: Kefeng Wang >> Cc: Christophe Leroy >> Signed-off-by: Aneesh Kumar K.V >> --- >> arch/powerpc/inclu

Re: [PATCH 3/3] powerpc/mm: Use VMALLOC_START to validate addr

2022-06-26 Thread Christophe Leroy
Le 23/06/2022 à 14:29, Aneesh Kumar K.V a écrit : > Instead of high_memory use VMALLOC_START to validate that the address is > not in the vmalloc range. > > Cc: Kefeng Wang > Cc: Christophe Leroy > Signed-off-by: Aneesh Kumar K.V > --- > arch/powerpc/include/asm/page.h | 2 +- > 1 file cha

Re: [PATCH 3/3] powerpc/mm: Use VMALLOC_START to validate addr

2022-06-26 Thread Aneesh Kumar K.V
Christophe Leroy writes: > Le 23/06/2022 à 14:29, Aneesh Kumar K.V a écrit : >> Instead of high_memory use VMALLOC_START to validate that the address is >> not in the vmalloc range. > > What's the reason for using VMALLOC_START instead ? > The gap between high_memory and VMALLOC_START should not

Re: [PATCH 3/3] powerpc/mm: Use VMALLOC_START to validate addr

2022-06-26 Thread Aneesh Kumar K.V
Michael Ellerman writes: > "Aneesh Kumar K.V" writes: >> Instead of high_memory use VMALLOC_START to validate that the address is >> not in the vmalloc range. >> >> Cc: Kefeng Wang >> Cc: Christophe Leroy >> Signed-off-by: Aneesh Kumar K.V > > Isn't this really the fix for ffa0b64e3be5 ("powe

Re: [PATCH 3/3] powerpc/mm: Use VMALLOC_START to validate addr

2022-06-24 Thread Christophe Leroy
Le 23/06/2022 à 14:29, Aneesh Kumar K.V a écrit : > Instead of high_memory use VMALLOC_START to validate that the address is > not in the vmalloc range. What's the reason for using VMALLOC_START instead ? The gap between high_memory and VMALLOC_START should not be seen as valid memory either, s

Re: [PATCH 3/3] powerpc/mm: Use VMALLOC_START to validate addr

2022-06-23 Thread Michael Ellerman
"Aneesh Kumar K.V" writes: > Instead of high_memory use VMALLOC_START to validate that the address is > not in the vmalloc range. > > Cc: Kefeng Wang > Cc: Christophe Leroy > Signed-off-by: Aneesh Kumar K.V Isn't this really the fix for ffa0b64e3be5 ("powerpc: Fix virt_addr_valid() for 64-bit

[PATCH 3/3] powerpc/mm: Use VMALLOC_START to validate addr

2022-06-23 Thread Aneesh Kumar K.V
Instead of high_memory use VMALLOC_START to validate that the address is not in the vmalloc range. Cc: Kefeng Wang Cc: Christophe Leroy Signed-off-by: Aneesh Kumar K.V --- arch/powerpc/include/asm/page.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/include/a