Re: [PATCH v3] x86/power/64: Fix kernel text mapping corruption during image restoration

From
Rafael J. Wysocki <hidden>
Date
2016-06-30 02:16:17
Also in
lkml
Reply to
Logan Gunthorpe, 2016-06-30
On Wednesday, June 29, 2016 07:52:18 PM Logan Gunthorpe wrote:
Hey Raf,

Sorry to report that although the patch works the majority of the time, 
I just got a suspicious kernel panic during resume.

It said:

"kernel tried to execute NX protected page - exploit attempt? (uid: 0)"

You can find a photo of the panic here:

http://staff.deltatee.com/~logang/panic.jpg
Thanks for the report!

That's not what Boris was seeing at least.

It looks like clearing the NX bit for relocated_restore_code in
relocate_restore_code() didn't work for some reason.

I don't see why it may not work ATM, I need to have a fresh look at that
tomorrow.

I had hoped to be able to fix this bug for 4.7, but it looks like it will
miss the mark after all.  Oh well.

Thanks,
Rafael
Thread (36 messages) 36 messages, 8 authors, last reply 2016-06-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help