Re: [PATCH] powerpc/mm: Drop VM_BUG_ON in get_region_id

2019-05-18 Thread Michael Ellerman
On Wed, 2019-05-15 at 09:45:23 UTC, "Aneesh Kumar K.V" wrote: > We can call get_region_id without validating the ea value. That means > with a wrong ea value we hit the BUG as below. > > kernel BUG at arch/powerpc/include/asm/book3s/64/hash.h:129! > Oops: Exception in kernel mode, sig: 5 [#1] >

[PATCH] powerpc/mm: Drop VM_BUG_ON in get_region_id

2019-05-15 Thread Aneesh Kumar K.V
We can call get_region_id without validating the ea value. That means with a wrong ea value we hit the BUG as below. kernel BUG at arch/powerpc/include/asm/book3s/64/hash.h:129! Oops: Exception in kernel mode, sig: 5 [#1] LE PAGE_SIZE=64K MMU=Hash SMP NR_CPUS=2048 NUMA pSeries CPU: 0 PID: 3937