Received: by 10.223.164.202 with SMTP id h10csp248535wrb; Tue, 14 Nov 2017 14:39:12 -0800 (PST) X-Google-Smtp-Source: AGs4zMbfhyY7Je35Q92crUJFuyAxa3PPpjQKmYcmokpSmERG/4dg90TdYb+/ROrxeu5npeARFVzT X-Received: by 10.98.28.5 with SMTP id c5mr9203762pfc.154.1510699152845; Tue, 14 Nov 2017 14:39:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510699152; cv=none; d=google.com; s=arc-20160816; b=Mu5ITLLwf/dORqo1NVVukBOI/FlH8rltmOMUvOgFu3ippeAKwQP6/hD5c/uRhs4IFg mvTqeCBoJEvRAcJB/3es0a56yB6alhQbqe1NFcXp6PSgbZ3cNPZZ+nOmYpGzx2J2wizD TXYFP7NJtSNEztDLgzXC7NV+Ke6qJob3ZPYG9lFo5BBr8OgR55KyrMyyM2KsUbLTk3BY s9l2lW335a1MZKfRpoO/mBppoh2MZ3fu4tFSF0gv/qAhKf0ufrn2fAYDV57hySj43Dma /a8pNWa7N3iUQ2LYyiEZVEOWdU1EYga1yUceUe9Hozf2/aw39774VWD2t7c0vVlsNs14 rJLA== 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:from:references :cc:to:subject:dkim-signature:dkim-signature :arc-authentication-results; bh=/6LjDDr50yolPMmWvPTBLONu+DUD2i2JmN4UWcQOnrU=; b=jfXZgazbbJzJ2xCJAhs2g5R8NWLPlOsE0GcS785PGvZ0MEKULjAjxiHejWRusFRfzO PO9y33qiA8n0omjZiSHNyE/M+Jqo1KT+gX4uv440m+b9+hnIJdgLxuKx7rb0ioHM+rzb bev//Ei8SqYM4QSDTPPbuznqyM9Ap1ZEPu2GRJckJIgxfGgER4v/l12P4Ju7L/H9+FgG QCUMhN8uF9IzIaYrmGE0ko6iNalcDIO5Fl46tCkftDwSaLhhm1i9ggjjYijwta/pNyWO Lm2dTW9euUshSUeCki/Yzf45/H9smdH7QvOxi20p+nKP8S8Yf/8aQk4mglXminXllK+e aiEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=C/2DQ5L9; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=GLPlmQ6J; 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 c11si17073098pll.212.2017.11.14.14.39.00; Tue, 14 Nov 2017 14:39:12 -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=C/2DQ5L9; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=GLPlmQ6J; 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 S1756839AbdKNWgN (ORCPT + 87 others); Tue, 14 Nov 2017 17:36:13 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:50738 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752684AbdKNWgE (ORCPT ); Tue, 14 Nov 2017 17:36:04 -0500 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAEMZ02c000926; Tue, 14 Nov 2017 14:35:31 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=subject : to : cc : references : from : message-id : date : mime-version : in-reply-to : content-type : content-transfer-encoding; s=facebook; bh=/6LjDDr50yolPMmWvPTBLONu+DUD2i2JmN4UWcQOnrU=; b=C/2DQ5L9SU4+i9Jpz48BMTR90avExqMLzthn5ykfiwgPa0omLNsFGEheSD2iatcBmdxf Zq7Hv9CmcFnrD02tLDUuNfk9aZCr95L2P7qK3d0xnYEpnwyPA/LlaE7DdbClNQp5mB8R NZmd80QYj4ZYpqHS0/K2jiXzUhQ+YtY5BPg= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 2e84v5s0j6-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 14 Nov 2017 14:35:31 -0800 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.34) with Microsoft SMTP Server (TLS) id 14.3.361.1; Tue, 14 Nov 2017 17:35:30 -0500 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=/6LjDDr50yolPMmWvPTBLONu+DUD2i2JmN4UWcQOnrU=; b=GLPlmQ6J1mlO54FHi7oCR9yiXOE/MFS5Eqmb91Ptm0WAUxeDx6dBd6sxMPcSGsZP5UHOjO4RDKupVtVHxwMNXodr3hGcsPdQIhn/Su/Y3Xs0QAWBf28NoV7UfdvJ3lzwAdIDlyocDN60ghcRXUty6eCb8DOBxylq3VqKtLtJsm0= Received: from skotch-loaner.DHCP.thefacebook.com (2620:10d:c090:200::6:8c67) 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.218.12; Tue, 14 Nov 2017 22:35:26 +0000 Subject: Re: [PATCH][v3] uprobes/x86: emulate push insns for uprobe on x86 To: Oleg Nesterov CC: , , , , , , , References: <20171113221139.1516536-1-yhs@fb.com> <20171114155124.GB17667@redhat.com> From: Yonghong Song Message-ID: <8af0700c-dd21-8501-c40e-cea4076e80c7@fb.com> Date: Tue, 14 Nov 2017 14:35:23 -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: <20171114155124.GB17667@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:200::6:8c67] X-ClientProxiedBy: CY4PR06CA0026.namprd06.prod.outlook.com (10.173.44.12) To DM5PR15MB1834.namprd15.prod.outlook.com (10.174.247.11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 72fff382-0ef5-4ec6-db3b-08d52bb00145 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603258);SRVR:DM5PR15MB1834; X-Microsoft-Exchange-Diagnostics: 1;DM5PR15MB1834;3:ORvuzv200ckbQmnfZInABsJgR03d+OzcNR+s/TjHmCrnfS5VZuxDZDuRcW6UAqhWIP9WbcRdV+YHkKpCbk1ZAo+dNQ5OgNN4CrxKnIUg1yPLDKzv5ORV+7LDkDfrFhSpJ2qb9E2Is2ncf9/BfT2HlnYG5PDzEtjaGI2JpkoOo31AVl2TZKZW3bf/DSOSAeZXYb0ubmgbi/YrmDvZ2OxF3vR0RCqnxiEl0BEGNHo+b1l8p7L1hMx7tRax+cjHIkkC;25:FzNz9Kwhako3Z8vVGzzH+nOa5SmqSYM4bNIvJ0ESWmE60Cq+wF/SYnIuaFQ+Za33awDWFOEUiSu/5ZnkPJzK+Q+ZH0HpxAUyqOV2j6Iq32dBASRMaKL62ZebQaJWhEdhgTd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zf30hEPl47R/P23KSkXGshoYkIRf7b2LjQj2rdhfFE0G4WnJT8Zw8027CX5cySsP8k2HhE+MJmytMSxb8ngT00hSjgKDzOs5Ba6pG4cEY7WMSjH3epxJVjaGB1WUf8q8xvhVl/gXu3OBq6OCoAHW9o882j33IWPB0kSyngivK3XLW0vd7yzfqf8336LKEenlFvCJeeESBoPSmJRhdsW3lXPFst1gDpFldLflJGqFEGWRA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(11241501159)(6040450)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231022)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123558100)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM5PR15MB1834;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM5PR15MB1834; X-Forefront-PRVS: 04916EA04C X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(376002)(346002)(189002)(24454002)(199003)(2950100002)(6666003)(7736002)(101416001)(83506002)(68736007)(65826007)(53546010)(54356999)(50986999)(76176999)(5660300001)(106356001)(81156014)(81166006)(8676002)(8936002)(105586002)(31686004)(33646002)(53936002)(4326008)(305945005)(6916009)(6246003)(6512007)(6116002)(64126003)(65956001)(65806001)(47776003)(6506006)(6486002)(230700001)(86362001)(50466002)(97736004)(58126008)(23676003)(2906002)(31696002)(67846002)(25786009)(316002)(229853002)(478600001)(36756003)(189998001)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:DM5PR15MB1834;H:skotch-loaner.DHCP.thefacebook.com;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtETTVQUjE1TUIxODM0OzIzOmFkYjAram5KdldkMmZQYzkxN0REdnZJUENY?= =?utf-8?B?MktKVi9EaXh4Y1lVU2M1NXg5NEhVd3J5LzR3SXpqQmJMOGFHU3E4VEVMQk1Z?= =?utf-8?B?Y2xNVE5RblZLZDc2SWxRQ1VyZ1lNckNTeFFZTWF4KzR1ZVRqUVN0b1kvZTc1?= =?utf-8?B?bmVVYnd2d0FOZlZFYnM1VFFLcnVRdWVkNWZkbDhhcTNQMUF3M1B1dlU3OSs4?= =?utf-8?B?WmlQc3NkZXlUNFRwQUNJaVg3d3Z1OXJmOTQ1NEtXQkl6bEE3WG95REx1YXRV?= =?utf-8?B?V0NNRStIcWxuL0tPN21DMVVrQVlOS3RCY0g2NFJIQkdmbnZlNlRjY2g1N1c3?= =?utf-8?B?cnRocnJ4Z25xR0U4SkFkcjdxblBrcE04L2VKcFhjSldLWUVDZW5hazNGa0Jz?= =?utf-8?B?Ti85MnRucWhuY3ArWDRjWGdteUlSMjdMSEw0Y0JjQ0dGdzdMRmVtWjZLVStI?= =?utf-8?B?QkRyN3ZDaHRIdEI2UE5hcTY0eVk2UUMzRW5SbVA5bmk4ZEFMcjhmSXBlSmla?= =?utf-8?B?ODhrUkpidElERHdvWGpxOVJFYW5sUFhTR1V6bWNiK2JNZldzRmlGbDF6aTBn?= =?utf-8?B?cUx3WFhsZWpWcGl4WWtkZmd4RVZRUzY4aWx5blg1b0I2Y2hhMW4wV2hZQ2dN?= =?utf-8?B?SS8yZXVydDRUMlc5NVNySjVOOGIzaXBZeU9reDZFUjhvVTd6NzFteWxwdnlW?= =?utf-8?B?d1JSUGZiYWZwSFdyRnR1cjg4VlRtY3ltblJHakVVV0IvVzJMVXo0dGZYU0or?= =?utf-8?B?cmxDUGV6UXZ5ODJGNkloUG8wRnJudXQvT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ZuBQA3JWvz7lrrkGLqR71yti1fdnGd/JyipkMOCdGqF4v2AmHmq+y6yOTQi9wdqKEFgNticlsXS1hDDNTIe56oLyFPC+8GxFV4nRYss13jW+Fs1/NCZkjXx/+NqMja2s40j/hxIFhs3+aLRLOA00ib9w= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Nov 2017 22:35:26.7918 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72fff382-0ef5-4ec6-db3b-08d52bb00145 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-14_12:,, 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 On 11/14/17 7:51 AM, Oleg Nesterov wrote: > On 11/13, Yonghong Song wrote: >> >> +static int push_setup_xol_ops(struct arch_uprobe *auprobe, struct insn *insn) >> +{ >> + u8 opc1 = OPCODE1(insn), reg_offset = 0; >> + >> + if (opc1 < 0x50 || opc1 > 0x57) >> + return -ENOSYS; >> + >> + if (insn->length > 2) >> + return -ENOSYS; >> +#ifdef CONFIG_X86_64 >> + if (test_thread_flag(TIF_ADDR32)) >> + return -ENOSYS; >> +#endif > > No, this doesn't look right, see my previous email. You should do this > check in the "if (insn->length == 2)" branch below, "push bp" should be > emulated correctly. > > And test_thread_flag(TIF_ADDR32) is not right too. The caller is not > necessarily the probed task. See is_64bit_mm(mm) in arch_uprobe_analyze_insn(). I printed out some statistics. On x86_64 platform, for 32bit application, test_thread_flag(TIF_ADDR32) returns true and is_64bit_mm(mm) returns false. For 64bit application, test_thread_flag(TIF_ADDR32) returns false and is_64bit_mm(mm) return true. So that is why my patch works fine. I did not fully understand how to trigger "the caller is not necessarily the probed task." So in the next revision, I will use is_64bit_mm(mm) instead. > > And again... please check if uprobe_init_insn() fails or not in this case > (32bit task does, say, "push r8"). If it fails, your V2 should be fine. The compiler won't generated "push r8" for 32bit task since register "r8" is not available on 32bit instruction. > > > To remind, uprobes && 32-bit is broken, let me quote my another email: > > The 3rd bug means that you simply can't uprobe a 32bit task on a 64bit > system, the in_compat_syscall() logic in get_unmapped_area() looks very > wrong although I need to re-check. > > I didn't have time for this problem so far. But emulation should work, so > you can hopefully test your patch. > > Oleg. > From 1584058403053076505@xxx Tue Nov 14 16:10:14 +0000 2017 X-GM-THRID: 1583700940287669077 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread