Re: [PATCH] powerpc/powernv: Validate memcons descriptor and output buffer

2017-01-24 Thread Gavin Shan
On Tue, Jan 24, 2017 at 09:21:22PM +1100, Michael Ellerman wrote: >Gavin Shan writes: > >> Currently, it's assumed that memcons and its output buffer are included >> in the linear mapping. It's not true when "mem=384M" is included in >> bootargs. The system runs into kernel crash eventually. >> >>

Re: [PATCH] powerpc/powernv: Validate memcons descriptor and output buffer

2017-01-24 Thread Michael Ellerman
Gavin Shan writes: > Currently, it's assumed that memcons and its output buffer are included > in the linear mapping. It's not true when "mem=384M" is included in > bootargs. The system runs into kernel crash eventually. > ># od -x /proc/device-tree/ibm,opal/ibm,opal-memcons >000

[PATCH] powerpc/powernv: Validate memcons descriptor and output buffer

2017-01-18 Thread Gavin Shan
Currently, it's assumed that memcons and its output buffer are included in the linear mapping. It's not true when "mem=384M" is included in bootargs. The system runs into kernel crash eventually. # od -x /proc/device-tree/ibm,opal/ibm,opal-memcons 000 0b30 0010 010 This