Received: by 10.223.164.202 with SMTP id h10csp264151wrb; Thu, 9 Nov 2017 06:05:11 -0800 (PST) X-Google-Smtp-Source: ABhQp+RAV55Kta6mchzvBEjhTTEh3yhv6UyMpSMYRKODLHebVd4FZXL0iW4w4he80LUHnXQ2xGld X-Received: by 10.98.43.205 with SMTP id r196mr637857pfr.14.1510236311091; Thu, 09 Nov 2017 06:05:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510236311; cv=none; d=google.com; s=arc-20160816; b=k/DW5BFAXO3IAnM2PWYvQEiWti2vf4Uj3Q56YvYBB8ydsiSnar8Ob+K4x+aVKDuXKR K3oz4kRH9o7KqTkep9jP5TXLRmiRdSblG/eJwixg2GOWoCfte8SauUth/MnzH9cMRG/A TpFRXtCgSWVBGOYAFxMcHWNFQJBTqaNCnG1PUjTaUIl2R6Q3oD98MmSD7zB4Fb8xWWjZ kthqtCDjY0mjJGy5wHnogNUrwnMDjnGzzvbgc+/ZnuWdPvrrSaluOudfSVOi864x/hmK wpSJsPZGYaRL2IqX1y3PLs5QBeSEEFAbBuppLsi1+NDuca3xKeo1UgjRfOSMcQ+Kohog dnmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=hPqcLOYFkhsFQU80FVbAsb+Htx6yTux6wIsqbiK3HqI=; b=Tnd7s8ZZaFB+44GiJycN1IgTriKcKZxr8G9RSoyjFK+nfTgaZri4mcU5JMO7tmAxsZ mKHecmeeTqgiyFiE7lXa0buNuAU0NN+c/GbCJb3GWoxXS3p5eBzdv5V+peB2jUBQSjSH wcNvQXQVrcGOYWEa8CIG99EWo/8OIFVXX+jOcK0bxJQtSWauOJeqfuWdb04Kagux0FaZ n5rMMavO5WX+IguJlqbvzKsi2UpnN3s6I70B4y0nKOrDGr49Skv/jvcmMP5jJ8YRoytT p0FoX0M8NDKDj3IKGbfaBOhyWOTbo83M0kZBE+EIZsth99FE1GOoWwfuztPAkccjM8me Il4A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k194si6586693pgc.157.2017.11.09.06.04.59; Thu, 09 Nov 2017 06:05:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754746AbdKIOEU (ORCPT + 80 others); Thu, 9 Nov 2017 09:04:20 -0500 Received: from mx1.redhat.com ([209.132.183.28]:33228 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752580AbdKIOET (ORCPT ); Thu, 9 Nov 2017 09:04:19 -0500 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 69445A58BF; Thu, 9 Nov 2017 14:04:19 +0000 (UTC) Received: from dhcp-27-174.brq.redhat.com (unknown [10.34.27.30]) by smtp.corp.redhat.com (Postfix) with SMTP id 9BD536A84D; Thu, 9 Nov 2017 14:04:17 +0000 (UTC) Received: by dhcp-27-174.brq.redhat.com (nbSMTP-1.00) for uid 1000 oleg@redhat.com; Thu, 9 Nov 2017 15:04:19 +0100 (CET) Date: Thu, 9 Nov 2017 15:04:16 +0100 From: Oleg Nesterov To: Yonghong Song Cc: mingo@kernel.org, tglx@linutronix.de, peterz@infradead.org, linux-kernel@vger.kernel.org, x86@kernel.org, netdev@vger.kernel.org, ast@fb.com, kernel-team@fb.com Subject: Re: [PATCH] uprobes/x86: emulate push insns for uprobe on x86 Message-ID: <20171109140416.GA11186@redhat.com> References: <20171109080155.359718-1-yhs@fb.com> <20171109134423.GA8746@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171109134423.GA8746@redhat.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Thu, 09 Nov 2017 14:04:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/09, Oleg Nesterov wrote: > > And. Do you really need ->post_xol() method to emulate "push"? Why we can't > simply execute it out-of-line if copy_to_user() fails? > > branch_post_xol_op() is needed because we can't execute "call" out-of-line, > we need to restart and try again if copy_to_user() fails, but I don not > understand why it is needed to emulate "push". If I wasn't clear, please see the comment in branch_clear_offset(). Oleg. From 1583596297633034476@xxx Thu Nov 09 13:45:16 +0000 2017 X-GM-THRID: 1583574831236519975 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread