Re: [PATCH] powerpc/mm: fix a hardcode on memory boundary checking

2017-07-04 Thread Anshuman Khandual
On 01/12/2017 02:39 PM, Rui Teng wrote: > The offset of hugepage block will not be 16G, if the expected > page is more than one. Calculate the totol size instead of the > hardcode value. > > Signed-off-by: Rui Teng I have a redundant patch, this one is the original. Tested-by: Anshuman Khandual

Re: [PATCH] powerpc/mm: fix a hardcode on memory boundary checking

2017-02-05 Thread Rui Teng
On 31/01/2017 5:11 PM, Michael Ellerman wrote: Rui Teng writes: The offset of hugepage block will not be 16G, if the expected page is more than one. Calculate the totol size instead of the hardcode value. I assume you found this by code inspection and not by triggering an actual bug? Yes,

Re: [PATCH] powerpc/mm: fix a hardcode on memory boundary checking

2017-01-31 Thread Michael Ellerman
Rui Teng writes: > The offset of hugepage block will not be 16G, if the expected > page is more than one. Calculate the totol size instead of the > hardcode value. I assume you found this by code inspection and not by triggering an actual bug? cheers > diff --git a/arch/powerpc/mm/hash_utils_6

[PATCH] powerpc/mm: fix a hardcode on memory boundary checking

2017-01-12 Thread Rui Teng
The offset of hugepage block will not be 16G, if the expected page is more than one. Calculate the totol size instead of the hardcode value. Signed-off-by: Rui Teng --- arch/powerpc/mm/hash_utils_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/powerpc/mm/hash_utils_