Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751623AbcLFGZa (ORCPT ); Tue, 6 Dec 2016 01:25:30 -0500 Received: from mail-cys01nam02on0049.outbound.protection.outlook.com ([104.47.37.49]:41299 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751139AbcLFGZ1 (ORCPT ); Tue, 6 Dec 2016 01:25:27 -0500 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Date: Tue, 6 Dec 2016 11:55:08 +0530 From: Yury Norov To: Catalin Marinas CC: , , , , , , , , , , , , , , , , , , , , , Bamvor Zhang Jian , , , , , Subject: Re: [PATCH 16/18] arm64: ptrace: handle ptrace_request differently for aarch32 and ilp32 Message-ID: <20161206062508.GA17835@yury-N73SV> References: <1477081997-4770-1-git-send-email-ynorov@caviumnetworks.com> <1477081997-4770-17-git-send-email-ynorov@caviumnetworks.com> <20161205163422.GG14429@e104818-lin.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161205163422.GG14429@e104818-lin.cambridge.arm.com> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [223.196.191.148] X-ClientProxiedBy: VI1P194CA0011.EURP194.PROD.OUTLOOK.COM (10.175.178.21) To SN1PR07MB2256.namprd07.prod.outlook.com (10.164.47.150) X-MS-Office365-Filtering-Correlation-Id: a3c3ef05-2a73-4bde-85f8-08d41da0a96e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:SN1PR07MB2256; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2256;3:Y+EL+xyQJvvERr8Yb+QQw5EGLLWXUrkOGuCv/1jX6g+oqvSJENhwJi718kHgNB2OcANnBiEH6lJwYM6OCPW3QyOCMdImE8+bn4+xun1jtHygH16Y6nVjuI9wu44gDYmNhEjd0iyN4i4b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MK/QVJZjpgXldjLSd8g== X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2256;31:BR4QJlRoVcS0RqAoxUyN6sGLC3dm7ucvpW5HLSGQuEaWI/fUgU0m1F1ufTYU83R5iB38F6XCyhNBjKGMIeho2eJwMYzlvw2PtElni9a6OIFJbGYS/fY5idrEUsZoQ8dQTnTyPwZLEuaX0sSeqrIoTGel8GeUoBAij4N2d8LDDmlmd/hLzf4oHd27bIkpuHZKPaBf4pTqMvFT8UfM6iIR/JByLP28gTg6QTFDkB5d+eP1PZ1BjhRfQkctKNRn6x7y;20:KyplsWMr6Vb7MjOuKPCgB1gNdqrhEp5g5iSCM8I8/3dDG48KO+9rx2xngrinu5SNy9ZcIdXHoQMC7opdTjcTMh6cTXVJhJZ3LoaA6l4Id+sZ7PIJUKsJ/L0xYmbYAiX3IzM5F48RhQmaXwDi2Jq0K3aDM8y15uZcY0F1XZAffLcWUtu/evX3CK3i0ltL5kMnt+0DqPfaxDABGvTMj4OKV4zmcY142l9x2Ku6O34lxDmAppbRppA6m+yeA7TE7eSvo2YfMu3P+T6MuUjKaH6toyVsL9qKfKd2I4GnRPVldOYEJ3///IB+dV62FIUKcdrvNq5qWGWzlNdE7wMkZICVaeq+Ls3iKxy3uk/omr3vGMmd/wI+V35lJo+QRkhiI4yiMQrIm9z8YXG+ivd/rTJiD1d7euAaLlwF6J1fThbsPYwODzcUU4B+RYNVVuqNEGNVUj71IcsAhTLkIm//dmKCVAjac81eXuwqGR9TVlmL0skseKTG+e+NU6JMWbzcMX6/F+C5Gu1D16cZT8v6lcqX8lin+0gj8DftEv8SgYDPdBYfjWwXE+gq8UkKwT5AstwQtRmKuImmR4Iyg+/pD8RQwp/G8hVvaz6rX954lnwPXt4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(36064498253994); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123560025)(20161123562025)(20161123564025)(20161123555025)(6072148);SRVR:SN1PR07MB2256;BCL:0;PCL:0;RULEID:;SRVR:SN1PR07MB2256; X-Microsoft-Exchange-Diagnostics: 1;SN1PR07MB2256;4:XL/x619aMyFjppU6Rw7dgnQNcqaHcXbJk1pjCplphAbbFm84WoEV7vKvmcuH/ysePkypecz5wq7KcpPn7GbaWh2C6F8qwKHOkfi1x5z6gSDIoicaUkt3tppPF6PGgPfXsZ8VsTKmkyoWugI49SCMPYniS5/GCz3rcsrisBgXokhtE5lYKPROCmOg6gZNI3qJLhUAsgqUV3AmVdcljwrE2SN5mjR/d0eYQEXvkwij2kkq6BW1zD1qWRsskC+wHQFHghWOlteu3efKVWneTN8OnIBQtByS3XMHuv4sIaqDVKcEfpyOOF3JBJ5eIKY26iCEmc6Rpk/0H5D/WXDWyNbteJ2fLlFuwzr8wPS5ea+3YvZ3JpFgTbjiroIhR4IbPl8R7orNGSTDKRchuqvNWw2Eg2t8w4/M9LeX5VlfpshS556+9D05tntibz1NPebuRUushAms8OWPJgBPAV9OKmfZdnxILgZmlFcI9n7GMb7hr63tqk2LNfeLdpOeN6bSxm0q7i31J9il8g0qq7kAaJjzO6EaEUOpVYUJH74u4BzPVQmrZZ3sSaG4pIVc7X3HkrgKcq7WSQL6ZnHmPHBT4WZGAjWIcJ3BYkdRt7vXCLSNRODeEgY92ciClA/YgtvYD4Ej X-Forefront-PRVS: 01480965DA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(189002)(199003)(24454002)(38730400001)(7736002)(39060400001)(9686002)(6116002)(68736007)(81166006)(39410400001)(8676002)(50466002)(66066001)(6486002)(733004)(92566002)(81156014)(39840400001)(6496003)(7416002)(2906002)(97756001)(33716001)(229853002)(47776003)(39450400002)(83506001)(97736004)(46406003)(5660300001)(76176999)(33656002)(106356001)(54356999)(2950100002)(110136003)(6916009)(6666003)(189998001)(4326007)(305945005)(7846002)(23726003)(4001350100001)(42186005)(3846002)(39850400001)(101416001)(50986999)(105586002)(1076002)(76506005)(18370500001)(2690400003);DIR:OUT;SFP:1101;SCL:1;SRVR:SN1PR07MB2256;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;SN1PR07MB2256;23:zuDC0VNZD93zeQFI9QjOgh37uK0+sz43PizdnAxEv?= =?us-ascii?Q?mSsKeHcGxTwLcqjX9UFUuYya1oKVhhf20X5Od6ySgeNZLF3gtpn2a6xWbzXz?= =?us-ascii?Q?KGWFiHiM6o7/psrUVeXh5Lxma4wLbkXjP5uP+kqoscM4QaLymHuJcL1Rd6uh?= =?us-ascii?Q?i+gN5vx6lRaZwUx6EARcYhARB6BeoJOsMTsTp9CnJV/k6WkxF9Fzflu1Sif2?= =?us-ascii?Q?PLiLNYUBDKqoz1JIC8vyWxuyUNhHlB/K678q92JK17Vw//OpLnTXAkCh9i/X?= =?us-ascii?Q?60H/ONfqRyOgMZt0owHMBn2A12oPjBMMf04pjr7yV4SLxHebghoG5oOWstub?= =?us-ascii?Q?BqCYSCdE2cvFYmB6nPIHOAC1T5FTzSDv/1GV8nUVTgmsgUVQSvJYm1lgF79H?= =?us-ascii?Q?ASMx3rfRQoPjYWgK/111mccEHySK5MANhTxYXf3YgJYZt/0iUK/6eH9Fms5Q?= =?us-ascii?Q?Jum3y1WHqWB4w1K22qn3LU1EtYwM6kz6hwt4kZfAGh3DNX5sTbRbPpHTLMw+?= =?us-ascii?Q?lC0A+2jK8zZ571McqyxvkNLKvV5knETPq/f5bl4ltMB1aY+0ipLxvoaF2SCK?= =?us-ascii?Q?UoVOETy2udV6ZSIG4F3pfmde4XF70Q99bODlyCO4w1KGDD8+9vPgcYHroEg1?= =?us-ascii?Q?R5q0KB27JOSEPuR1/fJA3tEQICcQ4/FnVgbhg7EpL/Yik7+Po5dcDozjtmGZ?= =?us-ascii?Q?hndhgLvJduuv8l+7ds6E03DRsZ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RXm3CMnm9YpAgMe6ojLOXxYlkTanh5P6ra8PCf2+562OHQ== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2016 06:25:23.2081 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR07MB2256 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 679 Lines: 16 On Mon, Dec 05, 2016 at 04:34:23PM +0000, Catalin Marinas wrote: > On Fri, Oct 21, 2016 at 11:33:15PM +0300, Yury Norov wrote: > > New aarch32 ptrace syscall handler is introduced to avoid run-time > > detection of the task type. > > What's wrong with the run-time detection? If it's just to avoid a > negligible overhead, I would rather keep the code simpler by avoiding > duplicating the generic compat_sys_ptrace(). Nothing wrong. This is how Arnd asked me to do. You already asked this question: http://lkml.iu.edu/hypermail/linux/kernel/1604.3/00930.html If it's still looking weird to you, I can switch back to runtime ptrace. But I'd like to see Arnd's opinion. Yury.