Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752266AbcLFHGT (ORCPT ); Tue, 6 Dec 2016 02:06:19 -0500 Received: from mail-by2nam03on0041.outbound.protection.outlook.com ([104.47.42.41]:39466 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751690AbcLFHGK (ORCPT ); Tue, 6 Dec 2016 02:06:10 -0500 X-Greylist: delayed 5759 seconds by postgrey-1.27 at vger.kernel.org; Tue, 06 Dec 2016 02:05:40 EST Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@caviumnetworks.com; Date: Tue, 6 Dec 2016 12:00: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: <20161206063008.GA18470@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> <20161206062508.GA17835@yury-N73SV> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20161206062508.GA17835@yury-N73SV> User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [223.196.191.148] X-ClientProxiedBy: VI1P194CA0006.EURP194.PROD.OUTLOOK.COM (10.175.178.16) To CY1PR07MB2248.namprd07.prod.outlook.com (10.164.112.150) X-MS-Office365-Filtering-Correlation-Id: 6d3591f3-16c4-49b7-a875-08d41da17e40 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY1PR07MB2248; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2248;3:rkuNHElprgwB0DSjJFchUoj20maCH3ZYERAhlYRSpJih1iPwL+O27ljhj3dygqcy98lkf5dxc8Y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sYsF4K1yb93sGZNxbY5RDB/L659446Pl3fXADkrJMl9s8vgByqL6klkuJp4Zw2LzN2ZDLPn2/tI9zTH1Nk2FixGfA= X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2248;31:5y8vWmWHslkbJK7XFnNYQQr0vpQpTgIK9NWnD48yct5Qi6wNqJjf5yPooa67TowQUOXAoTbbWLwkqkTKzgPNLPxqIAbk2ISTCgNYv0LdA5jPNB8jin6KDw3PxxmM8x778KlFunFfgZJCgQXkqTnohOlvDBTfG8SJqzuRSiXGMfibscFMVY3vPdG0gXAdShAg7N+KcFJ0OEg1VnDRw0PhwuwVBhtfIV8aowvOAATUGT0IUTBC1ZvEXIvIk2RVgmtG;20:CICOp7vvnVAnwuAkNNYWew0leeC/a8zqtcb/JLvuRkGvEYvhDND//vtvzObxBgP2MRsge/mflS24j7AvnnR8tTBBAom44e0VnTazui4q8kkdaD5TOnQVy9Ua2aKSdUsNysw2uzPImhkRvuNNyQ7KN1T6V1OHu7bpN4B3zXv9+nC2p8uMb7I05sM56QQJHSa52a54RfoNJ8LdFImeTFMaqeuT2apTRmqr4wxXSoTedOLnhJ8htcQiBe9q+romh3C0x9lE3APBaZQ47pGEmGUJKPJ5AZcnQF3jpnUlDlI+sQbovDzhCP/K7bslL/pgvcG8AQ16TJoIt5l7UTX+T6v5l+J9ylVRpvECSKIphXU4VuxOfhrBtLzFL5YeHXpCDPUVJ5xLEh5UiCA6u1K/POTY5CSP4QWlWQ9yxrmzHxrDcFx/ZCQMQtFtu8IRzpiMT+AJhUmA/fLdmtZ1/W3Uy/mIHDoeSJG8euC9IMgI+6QP1o6Jzh0vsT7Fy+/Rw+9vXInjA5TCGRGzsaPhI/W8lDOve2O2SzugvtD7RXOL5r7eFNvDMdC014Mdnku+jyD/Ky3g1ubbo/HWAdoxgQW2FKAa6uQSJIenlCrCuHBPS4daX1E= 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:CY1PR07MB2248;BCL:0;PCL:0;RULEID:;SRVR:CY1PR07MB2248; X-Microsoft-Exchange-Diagnostics: 1;CY1PR07MB2248;4:hQSHOXlxHNYQi6qnCAp5clOv06IV0qy5wNnCGt3k3BPS1xMRkSFYXEEE8fV8S68E4nHQkPkDRh3bG9e+hM4m9pxVmB7B1T1C2K/fUmclyO13TH2JBPyUWndwGKimEqpTjUr3DZ5oB4Iy9MTIuLXatZ+QYupUBhgkztTVbWJ43hGK67TmxdVw+8BxxlnO6X6vko/RJjAavS0VdmQX3EUDEefI7uyMtBXAJnn3pb3Tg39plTsGBdYBBLIL9kC21kedo9S445h2eUMlAMdVhcxcNSQxgGjGrGU96h3rhoU3ME0x1HQYGY2NnBEAFBadjPhcj1w1HDDyJxwXPBwPaScnKHneP+unEvaDDKIRYuHZ4dafbZmg7UO58s7/EwWtMiwOyL56YWYt4kAp0rFVtwr9jL3uZEnZ9e5XManA/itIDWard9/uU2lqKVc2rmpMyPeRE5Xj/WfGalp8tcc9FXIDkvAryX/CkLdAFRRPyerBmiNGEWquNB24AiqVE4dstTvsBFOK7Hx4vU0z08EhUUUzRZnffMrFXstTsHeEmaSTVSaKdGQNISGxZVly+emPT2+swKToTh7VZ8BBZqdHoyA9s1ULoj6u1MyzN8oAHIY3rf3N01z3iAw1pJWnqJqnLxaL X-Forefront-PRVS: 01480965DA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6009001)(6069001)(7916002)(199003)(24454002)(189002)(33656002)(7846002)(83506001)(38730400001)(7736002)(66066001)(33716001)(50986999)(76176999)(101416001)(9686002)(54356999)(305945005)(39060400001)(81166006)(733004)(6486002)(110136003)(39840400001)(7416002)(39410400001)(39450400002)(97736004)(189998001)(4001350100001)(6916009)(2950100002)(68736007)(8676002)(6666003)(81156014)(23726003)(6116002)(1076002)(4326007)(42186005)(2906002)(3846002)(5660300001)(93886004)(229853002)(6496003)(106356001)(92566002)(39850400001)(105586002)(76506005)(50466002)(46406003)(97756001)(47776003)(18370500001)(2690400003);DIR:OUT;SFP:1101;SCL:1;SRVR:CY1PR07MB2248;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;CY1PR07MB2248;23:JflF37EQnXvvnsLDgdoAKnHQUx/2BBgsO739Xt2rF?= =?us-ascii?Q?L6/psIswdQ/6I/nHlW8tyytEoWqASX1oHH4K2nmQDwWixgNu3k9U1M9cbAwR?= =?us-ascii?Q?mRSAbQO1Eft5GtAFijS/fNvXjm1c8FNnN6Hx9QJneU6W1LURXUPdapc4xFkW?= =?us-ascii?Q?g/XP+upDM8vuf2M3rxKjn5NBf8n/JVMNKpMVo2arkMpt7esB2yfS2BkxlEhG?= =?us-ascii?Q?EQgAU1k+YnkNborE9Qam02Sb2vtAGtAeTbj9XEpWbBel4YeJd5bS4Bw9upPy?= =?us-ascii?Q?jZWdzl8QDPWIniQJxqLdm29LfPzszbAM+R4xOxq69ODQIJ2x7NUpgu9T94q3?= =?us-ascii?Q?iq7B801yd5LWLEvLuhDForudor4L7VC742hf6orDQ/veexVEACBfprC+pEok?= =?us-ascii?Q?2ngnxqEBvA76nKIhKYoa5BevMCjx2vQaKhSM7GgnT7epOFMWvDE0s8k/CFKB?= =?us-ascii?Q?ltiF73tSF3xHpdOZshaJs3aBhTn5347lDQSSZ21YT1KrLEx9R9mCjBV+zgxN?= =?us-ascii?Q?snZRKMa7qE+NRt81piwLLTiBqbRc0iwUIYNp3jZ8XKC0W6fI5b8Xys7JEx1N?= =?us-ascii?Q?f0IQi24gTwP6XHRz2s2CtD2N9+DeLc9WPDwMyA/tSPh04xNnRfhblMxoYz4y?= =?us-ascii?Q?WCSPEFMRbYKScLF7NXsRN6CFmlaIJEs7b/B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A7NpLQtDIUHU7yPUfH/x8OSsbsUrNfFq5q96+U0rRQkB6Blu2HsmkBPYmGeyXLlJTtMAPvX2umIWiOlFWGnHlOe4wlyQG5m8CP4O7DRDk9/EEwRXCnNZLJxI9AZTsrbWgJue/uCGgp05Jyg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Dec 2016 06:31:17.8682 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2248 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 20 On Tue, Dec 06, 2016 at 11:55:08AM +0530, Yury Norov wrote: > 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. This is the Arnd's email: https://patchwork.kernel.org/patch/7980521/ Yury.