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:35 PM, Oleg Nesterov wrote:
> On 11/29, H. Peter Anvin wrote:
>>
>> 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
>
> Well, it is not really global, it is for mm_cpumask() and for good
> reason?
>
> And is it really worse than on_each_cpu(do_sync_core) and the usage
> of text_mutex?
>

Probably not, but one would have to consider the total amount of
synchronization needed.

>> (and wouldn't help
>> shared-memory code segments, if we care about that at all.)
>
> Well, I think this should only support the private mappings.
>

Well, what do you do if someone tries this on a MAP_SHARED mapping?
Error out?

-hpa



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