Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751598AbdFTOQ5 (ORCPT ); Tue, 20 Jun 2017 10:16:57 -0400 Received: from mail-sn1nam02on0073.outbound.protection.outlook.com ([104.47.36.73]:40042 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751038AbdFTOQy (ORCPT ); Tue, 20 Jun 2017 10:16:54 -0400 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Tue, 20 Jun 2017 17:16:23 +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 , Heiko Carstens , Chris Metcalf , philipp.tomsich@theobroma-systems.com, Joseph Myers , zhouchengming1@huawei.com, Steve Ellcey , Prasun.Kapoor@caviumnetworks.com, Andreas Schwab , agraf@suse.de, szabolcs.nagy@arm.com, geert@linux-m68k.org, Adam Borowski , manuel.montezelo@gmail.com, Chris Metcalf , Andrew Pinski , linyongting@huawei.com, klimov.linux@gmail.com, broonie@kernel.org, Bamvor Zhangjian , Maxim Kuvyrkov , Florian Weimer , Nathan_Lynch@mentor.com, Ramana Radhakrishnan , schwidefsky@de.ibm.com, davem@davemloft.net, christoph.muellner@theobroma-systems.com Subject: Re: [PATCH 16/20] arm64: signal32: move ilp32 and aarch32 common code to separated file Message-ID: <20170620141623.gzqv6orcay6bjxbz@yury-thinkpad> References: <20170604120009.342-1-ynorov@caviumnetworks.com> <20170604120009.342-17-ynorov@caviumnetworks.com> <5947F8EA.9000209@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5947F8EA.9000209@arm.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Originating-IP: [193.185.223.3] X-ClientProxiedBy: AM4PR05CA0010.eurprd05.prod.outlook.com (10.171.184.151) To SN1PR0701MB1870.namprd07.prod.outlook.com (10.162.100.20) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN1PR0701MB1870: X-MS-Office365-Filtering-Correlation-Id: 238ad6d1-35e7-470c-4cbd-08d4b7e6fe77 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131423075)(201703031133081);SRVR:SN1PR0701MB1870; X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1870;3:n7VY0WGoFAI+rbth6kf92faZjsWo707Y1h50vrscuTduJ3LACVLSj3D5IkRtzl8Rfe06dmh4Eg6c6cEQsuZIggvNSdDggCcv++LnSBd827kH2XqdeaCqAnnR2wueGi+/TJZHD/FcpliPC7lk3DvqOt6JtxPSIphJcYyx0oFSF9RYHC8v9xGI8OIewWKHniYGOUSlVLRmB/NCDsz5W6/M2BooVTNRhfKLkkTGD4PxPC7JnDk0wdfUenlpGc5MvkjsLeVP/aQ+9cClKfnG55MlRS1raqzzRJsCMckoVi/d3lAMayqGBafbBEnAdXjlzRb1je3Mj9A9RSZCnuQithOgiw==;25:uZeO2B7Y4+0vE315PeYQyi5BQd7PsMouVYEqGnHRSFGPXZy+SxZ1TW0nPO5tHHTsXylmUBMJs/hIxvUvAezkiOlIJUlX4vE/ZL5gFB3KO7DYNUTrBKGoCpm4yqwUT0dfJqufFt4HUTFX9fREIO4rPJfJpRPPnawQ2RsAsEo5bZSgU6gmaoAqtDXmgpU+rdkwcgpslFInDZnCpFU3p45AC48ypMgfd25UlhOL/Og1GjHNGDk8gek6S6v1iT1BZ9CYG5NUSkxZNyju1baCe7DDzEJfLrIXSi+6GBTmJQde0kwQTweTe02xIr/vMjrda7KwGv/mTipDkEelQ8GwfaU8Md/RreFgR6QvzVws1TPHaAlSro3avzvpi1tsDqq8XLOH3VRpKvoGakfEqCAGF5nhjkaf7e/wMzSMp8BYVZIGOjl3CmOjUT5xw6Z02EQWPiFIAMSjtl9UAKcUloCQroj4OQMpSi0+Ed4gyzrJlwRkYB0= X-Microsoft-Exchange-Diagnostics: 1;SN1PR0701MB1870;31:YaxkvCd0FnpwVAmmcw5c2M1TTFIe3rl9sJ6zOBbpIh+b3uUfywV9tVmZA3cviz1Wf5tKMgcyV01HMWxBMA1Kn2yln2niQr5pgSF4wGve8LuzDHsPU2idiON618sqOhO0Jl1TGlXpYhtP1QCyG5JkoZQj4tujjSZfy7kXvyBpzvNioj2V9SZJ1XVyAYyc4i79ICVRv99mWIuSE9vIpHfhYX+tGzXIiJcwSLEms7JE+1Y=;20:eRnYCboO/huxxQIeECqTzj6Q7aVDlMMNrf9xsytaR7LesLl8DFxaAUz6Fik/yzfqdEZC+KIAlMKUgOaaAZpiwvV57ncjAs6MFxY7NoO85+JxNlcgPBqsb9dEYv9PuNxOjZQcibwNMKTJUNXFgAZqh9axbHl9mBJggf/c1joDxIzZ8W6HpMlWGRgL1bfyC61QZo1HNBjlbuvN3j3p+9jkmF8RdQ4UXBnLRM/SVup2ZPpby5gjgfc+HzGddEAntfnZ/nzYKxFy3SPCpVKtgKDiNns+2w8mclHRnMlebUMw9hphe3w/zSoy6k+QkQzmJOGRNziK6KyQPOQPgT88VnHXG7fAVqPybQSC/kDowc9EhGzXyb7KSLgoTFfnAziIH4dSaxBEyPFr+gJ6JK6Ad0aj2onBS5pztgaO5I9r8Vz9ngIch+YyQPHWJ+R+fCHKkDHBetWX3WoDOyQLRNM78bBYPNaYRVJZh1pPIp7ZmOOJBDnWc7K9oLZLTTN9hixG3AVJaGAnSIadvTuoLTRy5UcD9YZ0zZkaViOYaXJsBLcJAlQ/8wn/lVwFs+D+fkHuNUy4TVjAeFv4Rln4Ex4K8GlK4yU7AxG82mKZWCEseyVtoaY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(250305191791016)(22074186197030)(17755550239193); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(3002001)(93006095)(6041248)(20161123555025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(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:tkfCNLmAG8i84OVz8vgCH5HFlt9/RugNXDC/tx+Y?= =?us-ascii?Q?2mOKyAskXqlw7BksmPzHuBOP+7l0oYtIbgUHS1wVCOh911l3V+kk/4SUjyiY?= =?us-ascii?Q?hN6m7CuozhKr+z9aI4gg0FkJfa7Zy2XF7qhsDVOzjoQ078YIWsbmM+jLZIum?= =?us-ascii?Q?bpvY8CbOfsKIUjFKCCh0k4t9VzdreiMQR2MwDNHCHUZxxC4caAadMrvow6dS?= =?us-ascii?Q?KvTxqU6k1sXLCNVvVdiHOXq+Y9E8lq0G58LBgZSFusNhZblc9owCq4gnz692?= =?us-ascii?Q?1awO6cdHgKHgdMqkHNAK5H02WZ+lI6tKFf9fRGyCV3PBfCIM2itaVE8Mlfkb?= =?us-ascii?Q?EcoezRrbdK0NeP08n3TPCqTMREWc/Hofz1p+zsK+AQek9ceiK9SvbKV0d0F+?= =?us-ascii?Q?cuwTsrumYIsBRdZ5KG4NUlJaD/yENZN8Pb/e+MrS+VdK9k0D0wc8u8JZcpAA?= =?us-ascii?Q?H7n4TKHkeZmPxXnEq3/sufiKnXTHrxoV0DYu3CWaheVnF+pYiOSUp1W4I6gb?= =?us-ascii?Q?s6/0hCsuj8f2T1MIOiLjwmnAS+JdVkdZ/oienk7ytmtN8Q4MfHbhEmG27wv6?= =?us-ascii?Q?muiglh6v/+SMFWuOOK4efTExYQK4twsVeHv6v/oBxF5s0Wque9QCGz7BrQMU?= =?us-ascii?Q?gqZVLgvtC3mqrxUhYhYIhuzlVBZoRIMx4iVE5taZSOjJKimxaYgeDFYht8dn?= =?us-ascii?Q?0UYtplCwLVFmvnyHRVaqHuINyAGif2WQ2kkUW9LlHOOvNmRxred1z+4k6L/K?= =?us-ascii?Q?Ocvc/ZxJdZN9a4VFOyZmpbKz6bxiw/02UL26igEbQUQVIpTc8j0IsGX0WsKr?= =?us-ascii?Q?xThaLjK5Rg0unxKLsUNU6TJ+OttpnyoKNQ/vtZWl5by47fmvNKTbMZRKbnGV?= =?us-ascii?Q?CeSXp5Uw0dBstN/GbLq05CSh89tldIGK9+HWR3vg8tpwXs4+97OuxmkMloax?= =?us-ascii?Q?yIh0yeDzeRt64O6ahtQipndC7h7fC4/FDiX1OjAqzqKvGcsoMZeUVcFRFg4w?= =?us-ascii?Q?pnRhWUs3zqen/gvS71pVCf6OE2oil/qkt7AFGYfp1G09XnsUrzgZ81CRBXkK?= =?us-ascii?Q?yVq2vICxcAry13aTo0JTXtp5SpBSEF7OO3Irq3wg+7wWPgATxUMe94BhHLek?= =?us-ascii?Q?lRTxlGFmhLSxa8cJUujd/MAx5LiPhmYt0QsvTI2csW/Y7HCbPRwXaA4IfTd2?= =?us-ascii?Q?wNFq1oVZeYcGG0LYWQSMFKNCnKs0pNDkGPpHap0wLYDeROQzkNqipq2oTA?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 03449D5DD1 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(39840400002)(39410400002)(39400400002)(39850400002)(39450400003)(24454002)(189998001)(50466002)(7416002)(1076002)(8676002)(54356999)(50986999)(33716001)(5660300001)(229853002)(33646002)(53546009)(4326008)(25786009)(4001350100001)(2906002)(47776003)(6116002)(76176999)(23726003)(3846002)(66066001)(81166006)(83506001)(9686003)(54906002)(478600001)(38730400002)(6306002)(72206003)(53936002)(76506005)(6486002)(110136004)(6916009)(6666003)(42882006)(6496005)(2950100002)(6246003)(7406005)(305945005)(42186005);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:AsVoSyGIcOSRjjwmV2DqIMDOi/yPr95Y5yAbgus?= =?us-ascii?Q?R9ttXqw2sziQiiYtaS+jX3ITn6lh+P2BEwQvm8hFIIKCAOJbakKu/i5FfRbS?= =?us-ascii?Q?nIPHXA0NHo2rKoXFBqV7hbJwwkWRp0/pVI5Ym7RJ2t0/QlsZJN/zEqrbWSNg?= =?us-ascii?Q?qSltGabQ+HixcTV3o53ga2pbfAZ+85LuzPz1MT50ZN7shTu2o7xPQclIoR+7?= =?us-ascii?Q?x6OagApS6uFQBojhsGQGatXkqm1+n/W/esHS2wJb+/lcoqQu7i7c91r3IiBW?= =?us-ascii?Q?Jdzm3vgF3ilbIvkidd+j4TSePP57c8YV5kAFLjUeeu9NfcJ8jzh3cymdJ6+0?= =?us-ascii?Q?GOr5E07FyT7aPBSNZWgb+hH/KJcSXvmtocPL3giLsJth53r7qYahZEfDWTgE?= =?us-ascii?Q?/a1Q7/B7mBHYRobTUlyg9X/gfFHKa2IPex5Kw5VEW7+VFFAwdHF/9w9QO/eT?= =?us-ascii?Q?LSfqGLneDSCz8qTi2sb9ckNe0LT962Txpf3GB7I8NIeHLTFQDR18i+d1YFro?= =?us-ascii?Q?z7sFpUVKQrJrAfD7ZtT/e3WsEKtQwnREj9vu/Ec/UVTHHJbKb81S/vXSeaMH?= =?us-ascii?Q?+MRaibyK8MbOEpMHfOIX6LEwiteLl/iwSDJf8qF13CHjLjGBeqdiOJFY0OK1?= =?us-ascii?Q?rCs0l3QhGaPsCuk3h7BjOq8Zu/o4Y6MjF4HSKtQxo0uYZtvOPATyJ2YkDskH?= =?us-ascii?Q?FDKMVgnWiDY16paoU6pGuvvRYb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fUrG+W/e3fmDQb2hqudKO6Zk2EIWyJvxmN3bDgc1DmtY80xyGTwlua5mPuYRvTubs9JYRtGnayTUrk45ahuGeFmliSzkHFhARDCJibgPtfqfBtjJYAe2gxwvGnWV+r8GOc8vz78PwHi9rRKu8Gx8gUkgZh9liaO4Ncw1VBjjch+w1J5v2pFpoFuvrwfFxj8gLfWmsOUBqdGH6Z1oL9U0Bf6ynfLXIQShuBElBPUtSWz3hmCApUUgpPfBoLrkCBVhCIT6LyDh+Gx0mqMYORcqVxhUnHpa6yuBaL2b8WUkCoA4J8ag= X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jun 2017 14:16:49.9989 (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: 3113 Lines: 90 On Mon, Jun 19, 2017 at 05:16:42PM +0100, James Morse wrote: > Hi Yury, > > On 04/06/17 13:00, Yury Norov wrote: > > Signed-off-by: Yury Norov > > Can I offer a body for the commit message: > ILP32 needs to mix 32bit struct siginfo and 64bit sigframe for its signal > handlers. Move the existing compat code for copying siginfo to user space and > manipulating signal masks into signal32_common.c so it can be used to deliver > aarch32 and ilp32 signals. Ok > > diff --git a/arch/arm64/include/asm/signal32.h b/arch/arm64/include/asm/signal32.h > > index e68fcce538e1..1c4ede717bd2 100644 > > --- a/arch/arm64/include/asm/signal32.h > > +++ b/arch/arm64/include/asm/signal32.h > > @@ -13,6 +13,9 @@ > > * You should have received a copy of the GNU General Public License > > * along with this program. If not, see . > > */ > > + > > +#include > > + > > #ifndef __ASM_SIGNAL32_H > > #define __ASM_SIGNAL32_H > > Nit: This should go inside the guard. Ok, thanks. Will fix this and all below > > diff --git a/arch/arm64/kernel/signal32_common.c b/arch/arm64/kernel/signal32_common.c > > new file mode 100644 > > index 000000000000..5bddc25dca12 > > --- /dev/null > > +++ b/arch/arm64/kernel/signal32_common.c > > @@ -0,0 +1,135 @@ > [...] > > +#include > > +#include > > +#include > > What do you need ratelimit.h for? > > > > +#include > > + > > +#include > > I can't see anything using these ESR_ macros in here... > > > > +#include > > This was for the VFP save/restore code, which you didn't move... > > > > +#include > > +#include > > [...] > > > > +int copy_siginfo_to_user32(compat_siginfo_t __user *to, const siginfo_t *from) > [...] > > + case __SI_FAULT: > > + err |= __put_user((compat_uptr_t)(unsigned long)from->si_addr, > > + &to->si_addr); > > This looks tricky. si_addr comes from FAR_EL1 when user-space touches something > it shouldn't. This could be a 64bit value as ilp32 processes can still branch to > 64bit addresses in registers and generate loads that cross the invisible 4GB > boundary. Here you truncate the 64bit address. > Obviously this can't happen at all with aarch32, and for C programs its into > undefined-behaviour territory, but it doesn't feel right to pass an address to > user-space that we know is wrong... but we don't have an alternative. > > This looks like a class of problem particular to ilp32/x32: 'accessed an address > you can't encode with a signal'. After a quick dig in x86's x32 code, it looks > like they only pass the first 32bits of si_addr too. > > One option is to mint a new si_code to go with SIGBUS meaning something like > 'address overflowed si_addr'. Alternatively we could just kill tasks that do this. New SIGBUS sounds reasonable at the first glance, but I think it should be discussed widely at first, and the patch that implements it should touch all arches that may be affected. Yury