Received: by 10.223.164.202 with SMTP id h10csp1988009wrb; Mon, 27 Nov 2017 10:09:17 -0800 (PST) X-Google-Smtp-Source: AGs4zMbFwcaPUpAdyimeUOMNj67+JlUY9PXWMoBwfRp4Y+BKl6w2e+6TK1HP4LVpzF9pbimVyi8R X-Received: by 10.99.141.75 with SMTP id z72mr36874580pgd.73.1511806157794; Mon, 27 Nov 2017 10:09:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511806157; cv=none; d=google.com; s=arc-20160816; b=UcRzBNjiDqrexrL3HSwc+QmHYRpbOjIbzjps5GECfmKTzSWqJdqsCYu+hux2cqztmO /fkP0tCpdOUhhCPimULMuE7Mi9V72qHQGKuCy/3bRhNrIUaqDzQ7uxymILEvyuNHvnUb OFa2ztQkM5rfokcer4v9knXoTtQv+RG9oy2BLUuJGOcmd+Rb6YS4SPiwCx12iNPZWWh7 kSkc5amYAEfjSxRYZ8RtPDlxdOTEVxt/l3Nf/nv3cnjuGMVhgYAPgEzpg6p6JHd70haY keLhjc7K99pnodyyRuw3Rz6zvD3KrypGbKHnGx1FXNvHMOD0RZPbL+cZPy+ZUbFuVYeM 1O9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:references:cc :to:from:subject:dkim-signature:dkim-signature :arc-authentication-results; bh=5oyMsoeA55Ytno/eOD2pyrVKF7buS+QTAk9kuXx7vjI=; b=BdC5h+Ys+qgaQikHPn3Zjl1cDrVMELZyusXy10hf28SAyLp1R+/HpmPXG1tQPZdfev q0c8YtWti2Xvq+yuZhCi/cDb5vkZ7UF3KM2OttJdFvtxvgI2cD3ToW8ieHQxc/U347y4 DyF3n9UMvZK7cxwTcZLys+Q7zM7tzxaQ84PD0Nn3vahncrv7AjkaWWzrlCZ55Art6ofR 0UFJCSFv5WtMV3HBsSLi5+0/d14mNsHnX2a12f/xBFqdACgvZlEBel/eDVw0gfN7bDVX hR2G+dxFSExkFK4PNdoH2GYdl+DRO/gh5Fh5lRrMIkD+UaOS8Ip5oqeRWIoYdjR3FKuz wdDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=o0p9DNLr; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=SZq7o5bC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d126si25540948pfg.11.2017.11.27.10.09.06; Mon, 27 Nov 2017 10:09:17 -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; dkim=pass header.i=@fb.com header.s=facebook header.b=o0p9DNLr; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=SZq7o5bC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=fb.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932548AbdK0SHj (ORCPT + 78 others); Mon, 27 Nov 2017 13:07:39 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:35416 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932312AbdK0SHh (ORCPT ); Mon, 27 Nov 2017 13:07:37 -0500 Received: from pps.filterd (m0089730.ppops.net [127.0.0.1]) by m0089730.ppops.net (8.16.0.21/8.16.0.21) with SMTP id vARI4EYo018892; Mon, 27 Nov 2017 10:07:02 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : from : to : cc : references : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=5oyMsoeA55Ytno/eOD2pyrVKF7buS+QTAk9kuXx7vjI=; b=o0p9DNLrxwiKcvt8v5o9ebI/D07CPvsiOAuCNLgwTbsJ3RCGWZyP54kqpc9brwqaf4NV /LbimCqe8rXG7SPY7wO48uliD5dBDGr33ixHsDPKu1mtZ5PMG8JRTaXXSKDU0/ExhIZo iHKBYoyhCsNuvfWLgb8eE7TrRqPKxm87PB8= Received: from mail.thefacebook.com ([199.201.64.23]) by m0089730.ppops.net with ESMTP id 2egmbt8use-16 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 27 Nov 2017 10:07:01 -0800 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.13) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 27 Nov 2017 10:06:21 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=5oyMsoeA55Ytno/eOD2pyrVKF7buS+QTAk9kuXx7vjI=; b=SZq7o5bC7hWSyjcTnP7KE8y06k8GXRMuKvDEoqJpHDq3VePgUDhCmW25QnLJ7sxOo+VoLkSKO6i7WgmgWxIGrq14jxxNj2rdQtBqUAeTKNq9mkZ+a7tSFE1aHQpVHOsWOWg2e+enhPDgot3qtGGmTrjYFCEGgMJFp1tMw1E0Rq0= Received: from dhcp-172-24-229-77.DHCP.thefacebook.com (2620:10d:c090:200::7:6a6a) by DM5PR15MB1834.namprd15.prod.outlook.com (10.174.247.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Mon, 27 Nov 2017 18:06:19 +0000 Subject: Re: [PATCH][v4] uprobes/x86: emulate push insns for uprobe on x86 From: Yonghong Song To: Oleg Nesterov , , CC: , , , , , References: <20171115175928.3821714-1-yhs@fb.com> <20171117172526.GA10949@redhat.com> <47697170-3737-052e-584f-811cf4e4dbf2@fb.com> <20171120164145.GA2387@redhat.com> Message-ID: <03f91999-10b4-251f-aa9e-07de5ca096d2@fb.com> Date: Mon, 27 Nov 2017 10:06:16 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [2620:10d:c090:200::7:6a6a] X-ClientProxiedBy: CY4PR2201CA0012.namprd22.prod.outlook.com (10.171.208.150) To DM5PR15MB1834.namprd15.prod.outlook.com (10.174.247.11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 14634cf6-79ba-45cc-6913-08d535c19034 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603258);SRVR:DM5PR15MB1834; X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1834;3:yzWOOc+2sWeCvEw25oen6yHyfEI9rZ0rQkumCmA+eyRZJuXhg1PDUwnaaf6wqJEo6ggVdtQVm5KD9+QPbOptgVvigeFxmv/H70B24iu2dN3a+7AC7G+VXv12gqSgkzZk/8IaV/y3BjUZjC20xpTWELpb5hgI9ZUhRL1QrPh5G9cAA05VQX298J3NH3HRPWFqrTu7W+zg144KXcM8Be3VGJbKxw79qVkhyUWnraIvgMAKFzW9xDmUgmAAkOjvnyKW;25:r+mBG6tnFMHthXk0tDVuK4SaM/wmeYbNnfAhOpF3eQkLHkRgUczmJyxTRX8b8xgorqXmWHYJPn9VuMhVPLmUwUWGzBVbbLUM7sxC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3iu5emWvf2j+lR+rclMqWijuP1TOuRR8ZKqDdHIjlzwAkZXo4m7bE3JMwf8zxUQ4jXfO1pBWASRaX6kyn99+3ceeYX5Xu4Gy2aokkehAaij52sbgJ6ASow2Vpj/BOrDcDH7pxhHbc8EENv2s9zZGjlkfKN98cpfrluFXylBr8W8peEwLCZ0SjDUcCLTowjXxp0KFRlk0/b2QyOOJRT5f6GOkVMJhOTHfpnqvHMhvRK6NA10L6xVsF6KXhjIVWBbkqxqAATvTi3SLWkL+cig== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(11241501159)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(3231022)(3002001)(10201501046)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(20161123564025)(6072148)(201708071742011);SRVR:DM5PR15MB1834;BCL:0;PCL:0;RULEID:(100000803101)(100110400095);SRVR:DM5PR15MB1834; X-Forefront-PRVS: 0504F29D72 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(346002)(376002)(366004)(199003)(24454002)(189002)(189998001)(6486002)(6506006)(50986999)(83506002)(101416001)(54356999)(53546010)(76176999)(6246003)(8676002)(97736004)(105586002)(81166006)(6512007)(2906002)(2870700001)(106356001)(33646002)(65826007)(305945005)(81156014)(6116002)(31686004)(229853002)(7736002)(5660300001)(53936002)(64126003)(8936002)(6666003)(36756003)(316002)(68736007)(47776003)(31696002)(50466002)(86362001)(93886005)(4326008)(478600001)(2486003)(67846002)(65956001)(52396003)(58126008)(2950100002)(65806001)(52146003)(52116002)(23676004)(25786009)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1834;H:dhcp-172-24-229-77.DHCP.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender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hAFWtV1Kp4GBsMATp9HL9nSkfZYjz8ZRBv3 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1834;20:4MZi36oAxVaDhJuRqjEtOTAFB/4Vp+7YGSBZi6KOPK6Qw6s40aYfIBNAccHMTp/b9K0nuUZZOhVRqM6qTrh+fiEZHWaAXEdo3d8pqc2CAcF9e1/VJQNKrnzzDUYD0DpaSzRXdrLeREQK8RZmHz/mp08WxxROOqHZLJi0nVlSAKY= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Nov 2017 18:06:19.7576 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 14634cf6-79ba-45cc-6913-08d535c19034 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR15MB1834 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-27_09:,, signatures=0 X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Ingo and Peter, This patch has been reviewed by Oleg Nesterov. Could you take a look and help merge it upstream? Thanks! Yonghong On 11/20/17 10:25 AM, Yonghong Song wrote: > > > On 11/20/17 8:41 AM, Oleg Nesterov wrote: >> On 11/17, Yonghong Song wrote: >>> >>> On 11/17/17 9:25 AM, Oleg Nesterov wrote: >>>> On 11/15, Yonghong Song wrote: >>>>> >>>>> v3 -> v4: >>>>>    . Revert most of v3 change as 32bit emulation is not really working >>>>>      on x86_64 platform as among other issues, function >>>>> emulate_push_stack() >>>>>      needs to account for 32bit app on 64bit platform. >>>>>      A separate effort is ongoing to address this issue. >>>> >>>> Reviewed-by: Oleg Nesterov >>>> >>>> >>>> >>>> Please test your patch with the fix below, in this particular case the >>>> TIF_IA32 check should be fine. Although this is not what we really >>>> want, >>>> we should probably use user_64bit_mode(regs) which checks ->cs. But >>>> this >>>> needs more changes and doesn't solve other problems (get_unmapped_area) >>>> so I still can't decide what should we do right now... >>> >>> I tested the below change with my patch. On x86_64, both 64bit and 32bit >>> program can be uprobe emulated properly. >> >> Good, so your patch is fine. > > Thanks! > >> >>> On x86_32, however, there is a >>> compilation error like below: >> >> Yes, yes, when I said "in this particular case" I meant x86_64 system >> only. >> >> Sorry for confusion, I asked you to test this additional change just to >> ensure that we didn't miss something and your patch has no problems with >> 32bit tasks on 64bit system, except those we need to fix anyway. > > Understood. I actually tried a little to see whether I could have a > simple way to fix 32bit compilation error without using ugly "#ifdef > CONFIG_X86_64". Maybe is_64bit_mm is a good choice. But we could defer > this until you have a comprehensive fix for 32bit app uprobe on 64bit > systems as there are multiple issues for this. > >> >> Oleg. >> From 1584610649889042130@xxx Mon Nov 20 18:27:58 +0000 2017 X-GM-THRID: 1583700940287669077 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread