Re: [PATCH v2] powerpc/mce: fix off by one errors in mce event handling

2015-05-12 Thread Michael Ellerman
On Tue, 2015-05-12 at 13:23 +1000, Daniel Axtens wrote: > Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in > save_mce_event, index got the value of mce_nest_count, and > mce_nest_count was incremented *after* index was set. > > However, that patch changed the behaviour so that mce_n

[PATCH v2] powerpc/mce: fix off by one errors in mce event handling

2015-05-11 Thread Daniel Axtens
Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in save_mce_event, index got the value of mce_nest_count, and mce_nest_count was incremented *after* index was set. However, that patch changed the behaviour so that mce_nest count was incremented *before* setting index. This causes an

Re: powerpc/mce: fix off by one errors in mce event handling

2015-05-11 Thread Michael Ellerman
Stable folks please ignore this patch. Comments below. On Mon, 2015-11-05 at 00:48:32 UTC, Daniel Axtens wrote: > Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in > save_mce_event, index got the value of mce_nest_count, and > mce_nest_count was incremented *after* index was set. >

Re: [PATCH] powerpc/mce: fix off by one errors in mce event handling

2015-05-11 Thread Mahesh J Salgaonkar
On 2015-05-11 10:48:32 Mon, Daniel Axtens wrote: > Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in > save_mce_event, index got the value of mce_nest_count, and > mce_nest_count was incremented *after* index was set. > > However, that patch changed the behaviour so that mce_nest cou

[PATCH] powerpc/mce: fix off by one errors in mce event handling

2015-05-10 Thread Daniel Axtens
Before 69111bac42f5 ("powerpc: Replace __get_cpu_var uses"), in save_mce_event, index got the value of mce_nest_count, and mce_nest_count was incremented *after* index was set. However, that patch changed the behaviour so that mce_nest count was incremented *before* setting index. This causes an