Received: by 10.223.164.202 with SMTP id h10csp267892wrb; Wed, 8 Nov 2017 16:11:56 -0800 (PST) X-Google-Smtp-Source: ABhQp+TJwk4+IucHaQc79TaYsBnhLHpoaojsX8x0IAYohIxh9XlK+9jBpOGmAGjuel1Ed5Kquhqx X-Received: by 10.98.156.210 with SMTP id u79mr2221818pfk.50.1510186316280; Wed, 08 Nov 2017 16:11:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510186316; cv=none; d=google.com; s=arc-20160816; b=pO7Il+iHma47BO384B/cikiMKY67hPuUOzqshyz16H7kG8/g45S2qW7fSJRwuCg6nM sG1PuIPzTHeG4kV30AaQrn92qN/puANQWS1G55lMxWBGMvLDXc5GiIGekYdhhp6IZv2z mn1Ub2Z+jg8fpVLDEJLjf/HycalJWKQB7B6rVoLy97bH54gWZsE7pnsA5d0RR4rlUc7D kvpXCm3ewpvGZLHO3FLjpaUSgvRjPx1WjneK7Y+bqZs5m2mPLTY69YxLHW+hEiZEpYMf 62z9sx7yWr54yIJgxPWqfEcYebwLYA+h6x7DUAfQXoIDEmg6G5lkJzveV3u3JVsEpm+w 1r4g== 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=JbT2PXL0igP4mfO8g5QSdUjQU+hlVbcSOnoE4RkAO5A=; b=uXD7zb6RtCnZt3OdmRtjXOooRgBZmxOUmIrsEnYedVws3My8FZAARNdCXEPUEp/FJ4 /NseleuWq+RF/ZN4bE0qXTSz4X4cEAHkbmuYIFfWy5K98hCI5H3j30ftz3cHrxzNXWRc imfSHf8lfWTcgf1uVNGgBh8g9tjZ1Jk4iefPkSjFxY4mFnjUl4vCAMpMr/Lji70lqjub qDcxoYgM162c9kfuMEVk3Wr1yNBzIgtOYN931vhnIOUxTrJ4YsvowEtA78FWGBvKkuig +ZKtWb1k3aXaJQ6RaQqheeMqYNl4+M9+aRLe7EAIcnoiYcKmjowmfnWqhxxAuuhwi2Pe E20A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=KT1OUm81; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=A/52Bvo9; 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 s16si4484656plp.785.2017.11.08.16.11.44; Wed, 08 Nov 2017 16:11:56 -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=KT1OUm81; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=A/52Bvo9; 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 S1753099AbdKIALH (ORCPT + 84 others); Wed, 8 Nov 2017 19:11:07 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:32800 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751969AbdKIALE (ORCPT ); Wed, 8 Nov 2017 19:11:04 -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 vA908vVh016787; Wed, 8 Nov 2017 16:10:28 -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=JbT2PXL0igP4mfO8g5QSdUjQU+hlVbcSOnoE4RkAO5A=; b=KT1OUm81osOufA1fEt/O1bkJhBHwzOa8gmADlPloraFYTFDxYEgLxxgYNfWjQ5dJDUnW E3IXE1qVYl21h5wgXaKvHt74R1ahNIlszY/TbwguRqzNo59+7Iw8iYiOUugvWie+3dKw Usp0D8r9kwTbkw3rWi4gHfsfi56jWqF5Jgs= Received: from maileast.thefacebook.com ([199.201.65.23]) by m0089730.ppops.net with ESMTP id 2e4awygar6-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 08 Nov 2017 16:10:28 -0800 Received: from NAM02-SN1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.27) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 8 Nov 2017 19:10:26 -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=JbT2PXL0igP4mfO8g5QSdUjQU+hlVbcSOnoE4RkAO5A=; b=A/52Bvo9bIyPbPFY/yZ13i6UQVWUcJThZ/CoPoKXF+SUgZW4/n6eNrkYGfP6Rki2zeTYkTIqyLUQJLMbc6GuEjbNfSNexneuODXUO50oIRhJpr9G9cAiDjtW+5pg4AgTUT12FWcIP31ftd9SY/YZ5VJ0A30cSpjyMzvMgzOlCwo= Received: from MacBook-Pro-52.dhcp.thefacebook.com (2620:10d:c090:200::5:e802) by BN6PR15MB1827.namprd15.prod.outlook.com (10.174.239.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.218.12; Thu, 9 Nov 2017 00:10:23 +0000 Subject: Re: [PATCH x86/urgent] bpf: emulate push insns for uprobe on x86 To: David Miller CC: , , , , , , , , References: <20171108213712.1232793-1-yhs@fb.com> <20171109.090647.824552877953564084.davem@davemloft.net> From: Yonghong Song Message-ID: <526920a7-0329-cc2b-0cae-1af221a48aee@fb.com> Date: Wed, 8 Nov 2017 16:10:19 -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: <20171109.090647.824552877953564084.davem@davemloft.net> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [2620:10d:c090:200::5:e802] X-ClientProxiedBy: DM5PR19CA0048.namprd19.prod.outlook.com (10.173.167.162) To BN6PR15MB1827.namprd15.prod.outlook.com (10.174.239.12) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0dcdf1e5-f6dc-4c33-2548-08d5270646c5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);SRVR:BN6PR15MB1827; X-Microsoft-Exchange-Diagnostics: 1;BN6PR15MB1827;3:JIIJ2zvxEP2IM0M6Lkwp2gARUEHc6p3Bc6bF7KAhpeRn75cVB2FLaGZVjV/CsLHOG+EagH/zHpYOjfrXJvdZTjQqQksHx9RtujkPK0jcInLgXGUB6ltUC54mveZBDd5mts3oJSR2VQ+bQvUB8jVpt++FfnpEprbM2Gxrs82teQvsDFwcmAtyZY7vQQA0f5by5lYnsqeY0sOKvR0q9zJ+ibxYEcvc2ZdeGNQ8xuS+h93M6eKFg8FWEMfFq1GxrtdK;25:htyoiQIYSDA7Oz9472xnri4CUB1UP7iSaRth7mnguinm/sQr0qxKLPpyNhr/09uy/UpHoGo0h6QqG45Hjfxgs0/NItOlXLUbYsfo9q3MkupRBe923noGjIxuigndg56mXq7Y27d7J7mEp3oHVsZERME4kSLH2j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B8+e4vvpyALwz7l9R1oZt33JRU7YXbP+jGfJhXrgC0Myv3kC74yFR1GP1mETwaR/1w1p4nYCvCNhMMwy0LdH55zLbqIkZzJ2f2a9z6AmzjWSF5PBaYdPEdIDEH1ULbveE2fYFlTgCFPUvF+BErSjshFa5QA6o5cHvZQyM63z+YJOACyPT3OxQOOyZ3C9Ru6isdGIdGJkS7yNguwERiKCVsgJr4k83VXKlJpXqnfSbtOusrTzdqwAtFh X-Exchange-Antispam-Report-Test: UriScan:(67672495146484); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(11241501159)(6040450)(2401047)(8121501046)(5005006)(93006095)(93001095)(3002001)(3231021)(10201501046)(100000703101)(100105400095)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR15MB1827;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR15MB1827; X-Forefront-PRVS: 0486A0CB86 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(346002)(376002)(199003)(189002)(24454002)(6512007)(97736004)(53936002)(101416001)(2906002)(6246003)(50986999)(76176999)(54356999)(4326008)(105586002)(230700001)(33646002)(189998001)(47776003)(65956001)(6506006)(6486002)(229853002)(6666003)(106356001)(31686004)(65806001)(6116002)(6916009)(65826007)(2950100002)(5660300001)(305945005)(7736002)(478600001)(58126008)(316002)(68736007)(8676002)(218543002)(8936002)(36756003)(53546010)(50466002)(23676003)(67846002)(86362001)(31696002)(64126003)(25786009)(83506002)(81156014)(81166006)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:BN6PR15MB1827;H:MacBook-Pro-52.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 hosts) X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjE1TUIxODI3OzIzOmNKbVZoNDMrN1FNUW9pbVRsMFdQMS9aUEtu?= =?utf-8?B?aGNGZG8vbW9WUVNBMDFEWmg2ay9GcWVPcjd4Q3VPY2MyYXZqTDNZeXZNQklH?= =?utf-8?B?MU8wbmhZNWtyWVZUZmVYSEVWemtNWDljNHoyOU54TGFIaG9WeHdKVkM2M1gr?= =?utf-8?B?RDRTMHRWbThybko2N2RIeWI4WUkrQ1VZVG4rOExlRERPRGIyRmU2Rmx0UXpW?= =?utf-8?B?SHF2dFdKdHM2YzZOcHVzeGE3bnA0MFJ2UmRhWFNQcWM2YlcwSCsydkl1VUdJ?= =?utf-8?B?UTBJa0ZMTHdORUs1WFhOb3VpRnJQTzc3N0YzZlludFBMR0NGK0cySkc5REYr?= =?utf-8?B?amdSTUZxU2J2aENESlFqazNWZU15dUwzb1pveUIvVEpWUGJ0WWt4VldNMndL?= =?utf-8?B?VXlVcmJrVnlCRGtHWEE4Q3pvMzRJZy9xQlp5UEtNME9TNXZjeFpndlpzbUJN?= =?utf-8?B?Y0JYSHZUUG9RcmdaeG1hbldNYnFNYUdQd2N6KzlWUnhRNktHNXFZdU1lRHla?= =?utf-8?B?NHpsVStJaWoyd21rcGo1cUJFM05EZXJyL3g2dFR6Y1Z5dmRQOU02dStiV0Fy?= =?utf-8?B?dVdxVlZ3clBpOVMxeURDazBSZ1ZLSFlFLzY5WDBEcUNiR3Y4a2ZQbVdsN0JZ?= =?utf-8?B?ZDgzMVhYd3hqMXlnODd5WjJjUStmRVZzcDdPV0JBTFp1ZFRJTUU0RzZ5anc5?= =?utf-8?B?a0k2MlFaL1MwdGdlOE1zSVNqRE5hMlZXSzF5VXpIUmJxRnh0Z2pxN1M2ZWFW?= =?utf-8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:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BN6PR15MB1827;20:xlZLfD2uqRDE5gVOBLMWMkSuOIM9bjd0tsWoFaoBHNM/Y+zsUkSeYUPI/Sa8RaRppxAxL4mO7+RAQWZYTL0Nvp+RAriAU+tcTJQ/Ri8pudospo1iwDIDM/VEjwYktPGVCu0RMc96T/xvv2ErRxcnxA6eh32P2ISS0H/8SulPrd0= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Nov 2017 00:10:23.5124 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0dcdf1e5-f6dc-4c33-2548-08d5270646c5 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR15MB1827 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-08_05:,, 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/8/17 4:06 PM, David Miller wrote: > From: Yonghong Song > Date: Wed, 8 Nov 2017 13:37:12 -0800 > >> Uprobe is a tracing mechanism for userspace programs. >> Typical uprobe will incur overhead of two traps. >> First trap is caused by replaced trap insn, and >> the second trap is to execute the original displaced >> insn in user space. > ... > > I don't understand how this is bpf related, and if it is you don't > explain it well in the commit message. Right. This is not related to bpf. Will remove the "bpf" from the subject line in the next revision. > > Thank you. > From 1583544862755777988@xxx Thu Nov 09 00:07:44 +0000 2017 X-GM-THRID: 1583535533505282119 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread