From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755163Ab3LCUog (ORCPT ); Tue, 3 Dec 2013 15:44:36 -0500 Received: from terminus.zytor.com ([198.137.202.10]:47793 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754612Ab3LCUof (ORCPT ); Tue, 3 Dec 2013 15:44:35 -0500 User-Agent: K-9 Mail for Android In-Reply-To: <20131203203826.GA24812@redhat.com> References: <20131129183558.GA9803@redhat.com> <20131129195419.GB17656@two.firstfloor.org> <20131129200532.GA13561@redhat.com> <20131203184909.GA17571@redhat.com> <529E2F0C.8070405@zytor.com> <20131203200147.GB19083@redhat.com> <529E3D4C.9070403@zytor.com> <20131203203826.GA24812@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH?] uprobes: change uprobe_write_opcode() to modify the page directly From: "H. Peter Anvin" Date: Tue, 03 Dec 2013 12:43:05 -0800 To: Oleg Nesterov CC: Linus Torvalds , Hugh Dickins , Peter Zijlstra , Jiri Kosina , Andi Kleen , Linux Kernel Mailing List , the arch/x86 maintainers , Andi Kleen , Ingo Molnar , Borislav Petkov Message-ID: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no architecture-independent way to make code globally visible. Oleg Nesterov wrote: >On 12/03, H. Peter Anvin wrote: >> >> On 12/03/2013 12:01 PM, Oleg Nesterov wrote: >> > >> >> followed by whatever synchronization necessary to make it globally >visible. >> > >> > Could you explain what this synchronization should actually do ? >> > >> >> That is architecture-dependent. On x86 it requires each CPU on which >> this code is visible to be IPId, on others it involves complex icache >> flushing protocols. > >Hmm. And why this would be better than arch-independent code I sent? > >IOW. Could you please comment the patch I sent? > >Oleg. -- Sent from my mobile phone. Please pardon brevity and lack of formatting.