lkml.org 
[lkml]   [2013]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Add a text_poke syscall v2
On 11/29/2013 12:05 PM, Oleg Nesterov wrote:
>
> Can't we invalidate pte (so that any user will stuck in page fault),
> update the page(s), restore the pte and drop the locks?
>

That would require a global TLB shootdown (and wouldn't help
shared-memory code segments, if we care about that at all.) It also
means much bigger code ranges would be affected.

The performance requirements are part of what makes the INT3 solution
attractive, but anything is going to inherently be slow.

> This way sys_text_poke() won't be x86-specific, and it will be per-mm.

That is definitely an appeal.

-hpa




\
 
 \ /
  Last update: 2013-11-29 22:01    [W:0.140 / U:0.536 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site