From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755481Ab3LCWna (ORCPT ); Tue, 3 Dec 2013 17:43:30 -0500 Received: from terminus.zytor.com ([198.137.202.10]:48855 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755304Ab3LCWn3 (ORCPT ); Tue, 3 Dec 2013 17:43:29 -0500 Message-ID: <529E5E3A.9070401@zytor.com> Date: Tue, 03 Dec 2013 14:42:02 -0800 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 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 Subject: Re: [PATCH?] uprobes: change uprobe_write_opcode() to modify the page directly References: <20131129200532.GA13561@redhat.com> <20131203184909.GA17571@redhat.com> <529E2F0C.8070405@zytor.com> <20131203200147.GB19083@redhat.com> <529E3D4C.9070403@zytor.com> <20131203203826.GA24812@redhat.com> <20131203205400.GA25735@redhat.com> In-Reply-To: <20131203205400.GA25735@redhat.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/03/2013 12:54 PM, Oleg Nesterov wrote: > On 12/03, H. Peter Anvin wrote: >> >> There is no architecture-independent way to make code globally visible. > > Then I probably misunderstood "globally". Or something else. > > So do you think the patch I sent is wrong? Why? > It is wrong in the sense that without an architecture-specific synchronization at the end it is not guaranteed to work. It will work fine on x86 and presumably any other architecture where icache-dcache coherency is enforced in hardware (I am *guessing* that includes all or most SMP platforms, but it is definitely *not* true on all UP platforms.) -hpa