Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754665AbdFWW3J (ORCPT ); Fri, 23 Jun 2017 18:29:09 -0400 Received: from mail-sn1nam02on0071.outbound.protection.outlook.com ([104.47.36.71]:32000 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753849AbdFWW3G (ORCPT ); Fri, 23 Jun 2017 18:29:06 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Sat, 24 Jun 2017 01:28:52 +0300 From: Yury Norov To: James Morse Cc: Catalin Marinas , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, Arnd Bergmann , Andrew Pinski , Andrew Pinski , Adam Borowski , Chris Metcalf , Steve Ellcey , Maxim Kuvyrkov , Ramana Radhakrishnan , Florian Weimer , Bamvor Zhangjian , Andreas Schwab , Chris Metcalf , Heiko Carstens , schwidefsky@de.ibm.com, broonie@kernel.org, Joseph Myers , christoph.muellner@theobroma-systems.com, szabolcs.nagy@arm.com, klimov.linux@gmail.com, Nathan_Lynch@mentor.com, agraf@suse.de, Prasun.Kapoor@caviumnetworks.com, geert@linux-m68k.org, philipp.tomsich@theobroma-systems.com, manuel.montezelo@gmail.com, linyongting@huawei.com, davem@davemloft.net, zhouchengming1@huawei.com, Bamvor Jian Zhang Subject: Re: [PATCH 18/20] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32 Message-ID: <20170623222852.hao3gi7ppwexu7wq@yury-thinkpad> References: <20170604120009.342-1-ynorov@caviumnetworks.com> <20170604120009.342-19-ynorov@caviumnetworks.com> <594D49E9.7090900@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <594D49E9.7090900@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [89.160.21.91] X-ClientProxiedBy: HE1PR09CA0071.eurprd09.prod.outlook.com (10.174.50.143) To SN1PR0701MB1870.namprd07.prod.outlook.com (10.162.100.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1b181462-2869-4025-ec04-08d4ba873fe5 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:SN1PR0701MB1870; X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1870;3:sTLFzO1ZOO+pW4AvC/tmwcfvcUvAhKkeYG2fFH4IsA96yeMY63pKIKpSqU5d4dpYTm1cds7ly8mh8EcghwXMHUZDYtmyDzhZ0m2VfOc7pfsnATCKDsgSfrO4/n2SS06jpWk8LNG30LRv03SmnDgjoMlxwmHTGMYgU+0RvCcog4DD8Oa84DvdyQAzVJEYY03DDa4LTlzOSvuQqWHS216RAcxKnO6F3VSnTFWqGSORHeEMoLZr957JL+RVzAO0XgGfmWcNp8wo2ZQd1m3Qm7GvD2foaYgEhPPsLPT/P4Nl10Iq9QwvLVGKwIGqCrbfgXrYOvBxonSmJuQIlxcx1fLrvQ== X-MS-TrafficTypeDiagnostic: SN1PR0701MB1870: X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1870;25:JrACHpMwRD41AYvzeEPCk8AnscqPjFzwVx0/MYvwwQtdqFE5DrhosnpLTiou+XuKislcnCdiZGoKriu6QSjbh/uPJ+lUuJptlcDuPUidI3rw6l+ZzmF0GrUU5+mgqA8RQtbZtBo9bbYTX8CHKk3YiP1Jxjdl6irhXzrKXe2JRoGkXcQZ+/X4JvOkFCwgNeHnlWr7MVpYaT6sZ7DVI/ZJYQG/eMOMJb5BgDlWyaIHf4Y2unFlhaX6AOpeVh0uW5iLCx1MMHIimc3G6+x+PO80e/fl3CXi3bR16aoJmIJwhOvPhjyduCd6mMoGyKNyQ5a5SVWkLKsDpZZ8kXdmfgMH7Wcs6js6377VQIlePRQi8zd8/wQTi1iIRmJj7roRtWwThxFbCTiJS1INgQMX43q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vBldX80zHe1OLjmXEOK6H/zss6KdExYFJwj1d8/JuNnLyKICxOAXbpXDs5H5z3RJ97w8Rrx4himaPjSOPXoK00d7LoynexxrF+/Zopsb/vftc1/4ArrqdVpmH72KmThFFk0MsLZsEPB/eRnGDX3msOERUQgNISDmioR+VzhczyRkIasSHkKw= X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1870;20:OcT3OnklOcLpHbtdVBsxMMX5VFfpCTqZ6AdETAXroMS9SnoZHLgOwJCRetg/JGa8+KCWjc4W/gdhqLZmKDggEWWi29PmZi77BTcU6cjYL7C5n+wN3YXFTwx7xaXC1+UFyqlGRBIKsc3iqsUdFkwZjy0VozoeIq/vtAIRCZq92ju2yq5LPv1tfOeFxfVw9+0MYLjlVf5bWL8wiMsWlKd5D8Av5vuSuQEJn2IYp5f87WzGs3oXQhp4YvREY6w8LUiMHjVtRH1qzqSuZygN8LUE/PNy4Lz8AuTj+e6VxTNcZ5I8HUal5YZVpAx3gmDJkplGFDQzcbcArmCAxbGx//ECj+safg2lp9iH2jGP/lOKzKTZSp6p6SEkA3EO0F8dKyPVNe3SKw0Fkhl6+ezQao+xqfwSPndNcEVDgs7kSziGxUEGXzgF1wUODYzCuAsnpKPwDQQNMGJ+lTzJq/JM4hQDroDOpy9WL+k5f4kvHy6BPuUTKLtkrQP/3ueyv8+S43aYbAxDsMxKfJLqL53Jl7aFbfSW7oQR/MY39iNk1lVi4NPTfyaPZCwq8ywjTPO+GUYL3t1y48YsLWOuyccq4jcduMbO7+bKjIozIsjv4/K4CxQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(278178393323532)(236129657087228)(48057245064654)(148574349560750); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(20161123558100)(20161123555025)(20161123560025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:SN1PR0701MB1870;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:SN1PR0701MB1870; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0701MB1870;4:nMKnfDpvKEqxXYze0V19CyyW8r9cxfvxndT0fUHC?= =?us-ascii?Q?2BWevRA3C4k3cHIM8mBUrCbR1gdq1yMPLuL64oFQfeRTCtV6iiCB6/Nu2o8h?= =?us-ascii?Q?qhtppGxJuQfc4Zz2Y8YDNh661fnp/1CBMFYHKrmmtOi/duo40hn+uGUxUfq3?= =?us-ascii?Q?xF8i8N+NJYc5bzfnPcqNYuktuRLN7UsC6eGuCr9kohYii/VkvUkJIxSV8dgy?= =?us-ascii?Q?709P1YVCnLKi3zxBEXmP/7nIXEJ1/fduFpFu2/oeEQOgRjUCYZ8HHlf8ak4I?= =?us-ascii?Q?X0/YGBAYAPGwedg8lHthraOpqh911NhDsssl/WpD9XeKC4jzjYXbPqyrVy8W?= =?us-ascii?Q?BmfqwTtS+vCQ6vtEA1C5P0wYv9LaKHEwgiVnWBkDBn0MJpayMGN7wCpSUrKd?= =?us-ascii?Q?rrPM5Gu5h7gXgixZ+tURLchCXknXnbTIF+4/3diEk1Bh/dbVGEy46hFME9n2?= =?us-ascii?Q?5cvjKweGnSbceun2U03g12OJXZg6ECkNysDYoArHZR29FoHyq+C6+OoZaDso?= =?us-ascii?Q?l08Q4ER9zIxNkw5zyPCg2GOJbWEAMEu71aHaDQO43diSEn305TBn95AKrInI?= =?us-ascii?Q?KoDMeDeEzOLsmt5WZoC8T52kUO4gq9Rn2NW25ekPI7dok2xNzfwoSjn3ylml?= =?us-ascii?Q?3qtBCZ1xWmF7CywVzOw50l2fko3+LIrUdyCeYX4VnQct8Ify0fZnkDKMmDk7?= =?us-ascii?Q?kQK9slJ9BoZloH8i1kAFqjHWkJY72nZroGhJK6glmV5oqpsFsS4g1FcTvmvT?= =?us-ascii?Q?cVlChtqWqUCi7il9sF1fDw7aoXNQNci3qkDvv8djLPZCGvcVuh8hnfQsivn0?= =?us-ascii?Q?VT0l7GdMcxitW78c5vyQgOX6HetOo5f7UrDOQPIBo3cJhpa1ITyLk7Dr/sQ1?= =?us-ascii?Q?eoIzWGJOXQUvGYS2vdc4xfZ2R4i6uCZSGOum5ijRTWHbPmNxUH0XeenPRGEH?= =?us-ascii?Q?4OfvZKnKUPs1DwCJuTNHhWHlai01Dsdo5Sv/n72B+mXD3zORoUJjFzU19mnr?= =?us-ascii?Q?7SBeTYCF5lp44jqUsZT3ShiE01J90qclBJuzl66X1fsPohZ1Vz2oi5jgsVCv?= =?us-ascii?Q?pvP0/Cg2GOm7tk+lkD4iwxoDJuXoAIq046orsbkSEYHZb99ayF1cXXR98F41?= =?us-ascii?Q?N/0oJCdc8OyuYTTw84WOer6XEMuIERwD9Cz4Imp2aPkGfUUMmsEqIAcBpFov?= =?us-ascii?Q?HoWELksyzX1oQvcEIGArr1M9+1eLAmO+5dbiOBva5q1VZnW6tf/iSIqpHqgf?= =?us-ascii?Q?NmxUWTOYb/05zbAPQ73uShi1VYUdjqiqOabXEddR?= X-Forefront-PRVS: 0347410860 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(39410400002)(39400400002)(39850400002)(39450400003)(39840400002)(24454002)(23726003)(42186005)(5660300001)(72206003)(305945005)(4326008)(7406005)(966005)(7416002)(3846002)(6116002)(33716001)(1076002)(33646002)(2906002)(47776003)(66066001)(8676002)(81166006)(9686003)(6246003)(110136004)(54356999)(76176999)(6916009)(6666003)(50986999)(2950100002)(42882006)(189998001)(478600001)(83506001)(38730400002)(54906002)(4001350100001)(25786009)(6496005)(53936002)(6306002)(50466002)(76506005)(229853002)(53546010)(6486002);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR0701MB1870;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR0701MB1870;23:H9zmddA6nhds4Opp/2nK2uB0+YKlWRF5d5IkPGo?= =?us-ascii?Q?SKEHKyv9dDO257iIZ35YXQFR2XR9s6OZumdDd86Ct5+TwI4C2OdjGMXyjD9R?= =?us-ascii?Q?QelOdUR7cdoV+DXELt2IsNvb4vThlnaHbt3yWtS1oVPzkJKAtkIBnVFcx7za?= =?us-ascii?Q?1RFAyoWPsB2RzI8XpsKnlS8C0fljDo3B/GPLJwcQmi0ygAMOOoi3sQdMTBQ1?= =?us-ascii?Q?izm2f2Q9iwQ24VA56+L6x2TZBev9MOwdCSmBIod3Ou9vrw7GncBQc7A+TnPV?= =?us-ascii?Q?Yfpscu4xyRfzGIn3fIaFgLTnG2zL0In70eWLVCa23brQs/AUox67E0ypXZKl?= =?us-ascii?Q?MJ9QFU0XJNhScF2Utztkdf4CeWbzV5DjvylrHHw3TjfhS/996C6thNmN38OI?= =?us-ascii?Q?/cksznn2tvAsRkT+nWa3Na/gdyL9sL0Z6edipJX4OEsl4NmH17SIUY9yC+5k?= =?us-ascii?Q?BIwweGCshiluPmHD7B5yCTlAGLK35DqOCXfZvYBUqI8xmkc8Zot0QzCiYZj7?= =?us-ascii?Q?qGeStejqyDB6EY/xWyZeuMQdFBOaVr3xeTOkIH02pz1WGB4r5oEcHGf29CvS?= =?us-ascii?Q?XPX20XKxoYXB+pPS0JZEtWucSq2nfXL3B6GkRM3VGuNNcpXVeMbExn899Z+f?= =?us-ascii?Q?4sZ6fMs9Bf4j/jvjtBkcFgIhRTMvMUZU2i6oaCOuytYOmrUYGmzFOs5adLyB?= =?us-ascii?Q?TBSAi+db/jvB76aVZP1a5MMrGyWv4p/mG5L6cbZjaVtqYZDva5+wgf1MBgK3?= =?us-ascii?Q?ZOuMZl+SrPbDKG0j3umA/0FgS7O6plI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Cvng463c67zYYNP5a9Me0l3XiZvPwi1t9pobET69C4ZQ2LcmKTXSZSZCk+d7BGLWmVjkZFmjLREKvvc2rJFb5rYQJUPZiWWJHFFByibm+N68cbmn5NLTOBdSjiHQ1YkWowy8HrCaYLGA3XMeA+76f08/M5Fa1X5MmiRMReXYzuuZM8zLasRVnHghQEaKrjtXMd7zmM1Ew/7lg6QLZ842UNIUCYxD22HHy0pLBN8d1RaTe4u0pg6PDc5o1LQym+mwd1E= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jun 2017 22:29:01.7560 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0701MB1870 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1408 Lines: 36 On Fri, Jun 23, 2017 at 06:03:37PM +0100, James Morse wrote: > Hi Yury, > > On 04/06/17 13:00, Yury Norov wrote: > > ILP32 has context-related structures different from both aarch32 and > > aarch64/lp64. In this patch compat_arch_ptrace() renamed to > > compat_a32_ptrace(), and compat_arch_ptrace() only makes choice between > > compat_a32_ptrace() and new compat_ilp32_ptrace() handler. > > > > compat_ilp32_ptrace() calls generic compat_ptrace_request() for all > > requests except PTRACE_GETSIGMASK and PTRACE_SETSIGMASK, which need > > special handling. > > Can you elaborate on this special handling? > > How come we don't need to wrap PTRACE_{G,S}ETSIGMASK for aarch32 compat? > >From kernel/signal32.c that uses compat_sigset_t too. > > It looks like aarch64, ilp32 and aarch32 all use the same size sigset_t, > so doesn't compat_ptrace_request() already do everything we need? > > ... > > Is this fixing an endian problem? If so, can we document it as such. Do we > already have the same bug for aarch32 compat? Originally, the problem was found by Zhou Chengming: https://lkml.org/lkml/2016/6/27/18 But I think you right, this is the fix for endian. It lookd like aarch32 is buggy, but IIUC to confirm it, the BE arm64 machine is needed. I use qemu and AFAIR it has no BE support. Zhou, can you test it on your machine and if the bug will be reproduced, send the patch for aarch32? Yury