Received: by 10.223.164.202 with SMTP id h10csp1264058wrb; Fri, 17 Nov 2017 17:35:21 -0800 (PST) X-Google-Smtp-Source: AGs4zMbC47+MCS7qiKF5G+8lr5C3NZZWyzZokv31+BzNQgfX/WBnJwx/dTpi6Qa0FuHHlkEwdHH2 X-Received: by 10.98.137.201 with SMTP id n70mr3873010pfk.93.1510968921804; Fri, 17 Nov 2017 17:35:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1510968921; cv=none; d=google.com; s=arc-20160816; b=DFXaeZ+cBKmGnDjVlVE7IU0iR+piWZIttJcJiXrMPSZMGi2emd2J/xemtS+zPxKOaC 7+NrJbt8cnpi6cEMOw722eLncHrYMar5TMlkGlXVCpt4J54ZqUE5rs1ZdhrDZtjnm1He 80U2PSrZoclz4fhONh7cT7ACR+cIo/IPUEu4x2ZatoOJNPyYGSJehKk7wQQv/7QQtb/o mddoIRO8kFJ691uoQGeazQ9O1rmu1inZ3sciEzja+b+0MCgzuoFuXsPD2cVlh8gWnbGd Coxu02AUaF+AkzycC9/L0UWb8x2eO6/EFAZIaovlCW33mSKnod4HfBpohrgW7ENKAura Ya0w== 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=Rc4RWGunulrJtLWGITmTq4grf6EvzL5hKbMoAo42yfM=; b=VCOL5pD8rOH/wc2CRwOwslVx6P0WU003o2kzAgfnWVX7Tr3BoZ+2xRVhqsqL6E99ud wNLddMj0sMsl4VvgOftIo6nrDY/ln9lNemosk5hfVRrtVmAkG8HEijqyAltHsgIsKi0W FFOVe0peJquSu8FO7HeDRZOzXmh3L0fNKu2bAyK/BGF53tCtPz7NMsrt0HF/H+3w4ONx FYoQcFter40L9CsdBGIxfdst1y39t3IHj8Z2UP+Vvbqt8HIgIxMOf/gvaQ1uh74RJU8e 4Yrhzx5U+7cvUSCfzP4Fj1g2XU45qyA6emUsI5ekrGYxgszAxLUf7iIuQftAFH/mdumf Grgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fb.com header.s=facebook header.b=CfDwpZXh; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=Cj+fjxAZ; 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 t6si3634684pgr.341.2017.11.17.17.35.08; Fri, 17 Nov 2017 17:35:21 -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=CfDwpZXh; dkim=fail header.i=@fb.onmicrosoft.com header.s=selector1-fb-com header.b=Cj+fjxAZ; 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 S1760099AbdKQSNp (ORCPT + 93 others); Fri, 17 Nov 2017 13:13:45 -0500 Received: from mx0b-00082601.pphosted.com ([67.231.153.30]:37092 "EHLO mx0b-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751436AbdKQSNi (ORCPT ); Fri, 17 Nov 2017 13:13:38 -0500 Received: from pps.filterd (m0109332.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id vAHI9N75017176; Fri, 17 Nov 2017 10:13:02 -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=Rc4RWGunulrJtLWGITmTq4grf6EvzL5hKbMoAo42yfM=; b=CfDwpZXhl2WnTzs6W21B05wRc9LUvzSOxp+58LenxDl3C1i+OHfB1VT1Oj9MrYUaAin9 Twa+U2W1vBQ7NtkdaZpUpkwC2w0uOQa+z9MBqzzVdwsxswcIfDcZhHeqQaR/4sBUrLUN TnnC7x5xluQXWIMTa5gsU8ecGjhgwxffT+M= Received: from mail.thefacebook.com ([199.201.64.23]) by mx0a-00082601.pphosted.com with ESMTP id 2ea1yr8k61-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 17 Nov 2017 10:13:02 -0800 Received: from NAM03-BY2-obe.outbound.protection.outlook.com (192.168.54.28) by o365-in.thefacebook.com (192.168.16.19) with Microsoft SMTP Server (TLS) id 14.3.361.1; Fri, 17 Nov 2017 10:13:00 -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=Rc4RWGunulrJtLWGITmTq4grf6EvzL5hKbMoAo42yfM=; b=Cj+fjxAZYArBw+gRMGcJiq1sq3WpgDAwp9rqUS5kijZ7AguVZoG/SNIxROw8x0ARFHNHQQOaa23jzX/+sk11FsiJLbGgSVSsm+C4OnCdze9l05oQ2EkWsJdoa2pln4vxI4rEsJS+pTK783dtrdQR6p5QPXwvVXCUN/y5VVd94cE= Received: from raviram-mbp.DHCP.thefacebook.com (2620:10d:c090:200::4:5e2) by CY4PR15MB1832.namprd15.prod.outlook.com (10.174.54.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.239.5; Fri, 17 Nov 2017 18:12:59 +0000 Subject: Re: [PATCH][v4] uprobes/x86: emulate push insns for uprobe on x86 To: Oleg Nesterov CC: , , , , , , , References: <20171115175928.3821714-1-yhs@fb.com> <20171117172526.GA10949@redhat.com> From: Yonghong Song Message-ID: <47697170-3737-052e-584f-811cf4e4dbf2@fb.com> Date: Fri, 17 Nov 2017 10:12:55 -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: <20171117172526.GA10949@redhat.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [2620:10d:c090:200::4:5e2] X-ClientProxiedBy: MWHPR1201CA0018.namprd12.prod.outlook.com (10.174.253.28) To CY4PR15MB1832.namprd15.prod.outlook.com (10.174.54.17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 99662c50-9317-441c-3374-08d52de6d5ee X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199);SRVR:CY4PR15MB1832; X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1832;3:PYMJlcG09oDObrcSx410ER6K7OlDHkvXamr/aucX419oGTtkHxR5qOfU86ywIWdiCO7vxASVDjCjfHVV2tVkbR4K1ayXX3gA8TKZHlP5PBbCyl4siFdMZVOfwg+LBUgAJgsSLyFLErRAk0cskBAUuIUCjkteCUW0PF9jeYEjEM6qNXDRXzWpdegDlfdDWmmr2IH48H7Ozop8hDXUIRg/qiHyVJtTvpw5ghO74v0mvDazMSDKYOdh0QEAMSzxa/tP;25:GiZcpkvJOV2LS7sNs6RQyxAsnN+oSqyO4sHQHDCHMzS8P5CwaCyaxzDdAzQKIIQYrINIQCgPqJ9bllswPfIJgPMnZIhstazAIaeTAc+/Gv7um58KTI1OUx48eroi6x4FNXq4tqyRlnaVOc53BV1tNO3+pyaiSCJ/Cd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MfcGi7p2ilGwLGDbTMBbyB2KlxUSrBTWn0GBBEIkFfD5oflgz3LVNuN8DIAtfr0zedZ2SCzWVsoDZOPg2CSDKKIzV4aPtdOkNeBSgzR4oVRNYBSz+TLGEvVNrn7nxiapAOIYBUWzedhnI9XB/eZNAdeZfDlhsgKSr5hSFi/EzJRHnyutfpHVJ4nnpVe4qNtt6eg== 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)(3231022)(3002001)(10201501046)(93006095)(93001095)(100000703101)(100105400095)(6041248)(20161123558100)(20161123564025)(20161123560025)(20161123562025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:CY4PR15MB1832;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:CY4PR15MB1832; X-Forefront-PRVS: 049486C505 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10019020)(6009001)(376002)(346002)(199003)(189002)(24454002)(101416001)(58126008)(97736004)(83506002)(50986999)(2870700001)(76176999)(54356999)(47776003)(5660300001)(478600001)(65956001)(6116002)(65806001)(65826007)(68736007)(31686004)(7736002)(67846002)(50466002)(23676003)(189998001)(305945005)(2950100002)(33646002)(6916009)(8676002)(81156014)(6666003)(81166006)(6512007)(53936002)(25786009)(86362001)(8936002)(31696002)(64126003)(6486002)(316002)(6506006)(229853002)(105586002)(106356001)(2906002)(4326008)(53546010)(36756003)(6246003)(42262002);DIR:OUT;SFP:1102;SCL:1;SRVR:CY4PR15MB1832;H:raviram-mbp.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?MTtDWTRQUjE1TUIxODMyOzIzOjdmaWZCL2JmaGY2dGZHVjM1dk8xQll3Y08w?= =?utf-8?B?eWs4K1E3WDU3NW5OSnRtTVk0QkVRNGdjbTBBK0dYSXVzcXhzdHBzUDNuYVdv?= =?utf-8?B?SWxZajc4TktHYnd3RXRCZW0vVFE3K3Vxbnp5YnFMdnlEK3RsQ1ZvTlZiRXVX?= =?utf-8?B?cDIwbllhd05kQk5DaktHZXNYNnh4ZEhKNEZicVB1MjJGOVBHNEZVYVdWSDhZ?= =?utf-8?B?ZWQxc3cwelc3NGhYblJaeFhTdnBqQ2h1a1I3emVSSjlVSThPcVFEbkxET3Ny?= =?utf-8?B?aFcraGh6VmIyL2hlZXRPUmRFbGtrdFZ3Vm5vVnhYd0lvYkdxcmZ6bXJXdDZJ?= =?utf-8?B?T1N2anBHeUFSTXRDMXo0Qm1XQWFVbzRkSk9PU0RvdlFnMXN4TmZ4K1hNYjNM?= =?utf-8?B?WnVpUm5PeGRHekpuRWhZbk1JTDVQVmxOb0FPQTV6bUlqanBOdHlHRVovSCtr?= =?utf-8?B?L0ViMEpINjArMWhpMy9SVGZNelQxU0N5bFg2U3JhSEwxbklrLzgvaTdkUjN5?= =?utf-8?B?bjI4TWY1aVBTREJTbFU4ajJGMHUrNlVhZTV1eUNSMU1ESXFUY2o1ZW9iV0FY?= =?utf-8?B?d1hVZ29MVm1Nd2JUbjBZWTdPRDJQWmtDa2JRRUFwcnMxUUcrTDU4NkdCRUp1?= =?utf-8?B?bzkyemQxUGIrZE1CTGY0SkxWVUhOcnhRVXVsUzFwOW13N1FNZVBURGYrSDd5?= =?utf-8?B?OWNsYW5uN3IrZGpQOWcvUCtEaVFTMWJ1bmVhTHo2WlA3Ykg4NXJKcWRhRHJZ?= =?utf-8?B?RDJzdXBENDFneUdIVS9qOVdtT1ZHbTV1cnVWRUY0ZDN5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+UoaT8UMWfkcG80xxEM/YfqLedjZGaO8uZ?= X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1832;6:pOwBe6UmlSdkVrdiFII6+B66cs7uKpyZjozIDZpTN9e/dYx4ZrS/bVBUKWJ5HCWuALAXjKuoFHOpqrXvXcPp7djWKkKSAJ5R3x4yZNHBoDSV+io1sBRLhOHVYMOXSFSrF1dxA7X7tLzq3CGKLlP84G6ce8Voc2o36z2ghcVW6N06BYxxr5SPyx2fI48Ur366QOHbwFIEusWjUHwLqrBWd7lyEIV5RZFZD3ezQhDZ68Sj6wXJT5zLPVRjiHuDBOBGJT1ido8IPfWDt85TCyYb5ZHAw74NYwfqF16PyMIv1Ricslgd6wiCiinmHr483X/ZR8TCrYjFUGZGde71k+0/sF9KRHlwI2L2sbnGGzOcCQs=;5:EGXIZeSwOp7oMjUDQu03JzpbA4pqHhRgrBeLZuhirn1Hy3NoO/linmbJZqp1DBMlTf03zdB40yoVXUEQ7p6DjZj1UPUpBz85agMxlLbnHBpQQhL2U5rODQVq1qZxuImSMIm9McuW/XZA+65sqWNNvCg5SbLCzzjXlK9GdUiJlMg=;24:wz8LNtpenKekhRb2VD8oUkk46JTN35kbUDqa6kGX8FhBHAAAFsrsu/HjiG9Pt2GAXx+9PpFamu0a0ISOFL2bkrxXmv9VR/O3F8TOYuTDC0A=;7:EbbE70rJ75v7UeVoABjDJM8N2p0bfpq0M15zjDpmUkjvZm/7AkYh9OpObVul19DIRH4XpF8YXadaXyUKhz2StfCgRFq8xVSzKvaDGQ/v7WiY2vQFl4mepSJVwgY31t+muzNsNYILHZ0R/GfasV8aippwRs0efwhJN25cVZb20rtZ6ryR3+QAb1002TSR+if6/R68gWhvMd+fVRQDgTmobAxyieSmd+B6lvmnFy5lPqq3sy2hUG+AI80IaLdhr3G9 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CY4PR15MB1832;20:AKeFe6KUTYhBXMipqOVcebUp+ufbyIer0NF+KTngKZAO2CY6bg8MkXZRJibRTSWgM+/1wJc0I27sNJj+JWGP5VYWK5cyoUoCsOfZGDTWv7h//ru08HALszLOQ1j554YC/jbAic6QNpp4pZm2IAmB2UEnexZOCC3ddkaObsWvqCw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Nov 2017 18:12:59.0335 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 99662c50-9317-441c-3374-08d52de6d5ee X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8ae927fe-1255-47a7-a2af-5f3a069daaa2 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR15MB1832 X-OriginatorOrg: fb.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-11-17_06:,, 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/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. On x86_32, however, there is a compilation error like below: In function ‘check_copy_size’, inlined from ‘copy_to_user’ at /home/yhs/work/tip/include/linux/uaccess.h:154:6, inlined from ‘emulate_push_stack.isra.9’ at /home/yhs/work/tip/arch/x86/kernel/uprobes.c:535:6: /home/yhs/work/tip/include/linux/thread_info.h:139:4: error: call to ‘__bad_copy_from’ declared with attribute error: copy source size is too small __bad_copy_from(); Basically, test_thread_flag(TIF_IA32) returns 0 on x86_32 system. > > Oleg. > > --- a/arch/x86/kernel/uprobes.c > +++ b/arch/x86/kernel/uprobes.c > @@ -516,7 +516,7 @@ struct uprobe_xol_ops { > > static inline int sizeof_long(void) > { > - return in_ia32_syscall() ? 4 : 8; > + return test_thread_flag(TIF_IA32) ? 4 : 8; > } > > static int default_pre_xol_op(struct arch_uprobe *auprobe, struct pt_regs *regs) > From 1584357898334863074@xxx Fri Nov 17 23:30:35 +0000 2017 X-GM-THRID: 1583700940287669077 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread