Thread (6 messages) flat view 6 messages, 3 authors, 2013-06-09

Re: [PATCH v2 2/2] powerpc/hibernate: PPC64 fix user threads access to kernel space

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2013-06-09 07:46:02

On Sun, 2013-06-09 at 07:44 +0000, Wang Dongsheng-B40534 wrote:
So we just need set set_context() in restore_mmu_context().

void restore_mmu_context(struct mm_struct *next) {
        set_context(next->context.id, next->pgd);
}
We probably also want to flush the TLB, just in case the boot kernel has
left "something" there (though I wouldn't expect it to have run
userspace it's not completely impossible).

Cheers,
Ben.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help