Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753272AbcCBPH7 (ORCPT ); Wed, 2 Mar 2016 10:07:59 -0500 Received: from mail-bl2on0054.outbound.protection.outlook.com ([65.55.169.54]:35486 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751682AbcCBPH6 (ORCPT ); Wed, 2 Mar 2016 10:07:58 -0500 Authentication-Results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=caviumnetworks.com; Date: Wed, 2 Mar 2016 18:07:21 +0300 From: Yury Norov To: Suzuki K Poulose CC: , , , , , , , Subject: Re: [PATCH v2 0/8] arm64: Support for systems without AArch32 state Message-ID: <20160302150721.GA16286@yury-N73SV> References: <1456393968-17386-1-git-send-email-suzuki.poulose@arm.com> <20160301211923.GA1325@yury-N73SV> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20160301211923.GA1325@yury-N73SV> User-Agent: Mutt/1.5.23 (2014-03-12) X-Originating-IP: [95.143.213.121] X-ClientProxiedBy: AM3PR08CA0023.eurprd08.prod.outlook.com (25.160.207.161) To DM2PR07MB624.namprd07.prod.outlook.com (10.141.177.154) X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;2:oLQ3uN8X2ZwN4jVcTJ6jZ2Z2zrWj2N0Lc0Eldo/As7nsqxEqNs6yEJknV3xqS2cF4HavJWH5lI05NkMBtPjYJFEpCcFsUFMctz+N2/MPisM/MTqj4TB634/sJqGmDYBEal3ZyiaxyJf8nueIXA/4gg==;3:2E9Y5J8QEkVZWQ59wMzplg5Q73YfKDAeDKIAHiMkgyhLUZnm4KGMhmGvxsK+I0eFcJcfGEd9OnTPGA8huMRES4yvBRNeQh+jINYjnD3HLFwYGjk+TjuI0Tod1b6npT8K;25:041ZhEemgGu4p2/wJlnPzsoDxSEV5PjABtiMKKW/Ig9u0qhpt6PcEj5HoqaTgzuLyOFgaTO2jiNYH+V8/SmX1FVJDXhM/5EFwtXdKnJO8bSoDQW5Ffm9aYdIMWWtaPEii6f+IxLbxyZm3KSky+DLH5Uaifqu3DPrjoBO+1s7whLi6qf5ljp4+ONU2dMqSjaWrA8dNo8ZLTmg+ErOQXlh3BKpWh74Qg27jI4XgieCjmyE9ehgcMx1y2bePfQNb5u/WDWHX+fM7J4SByQtMBD9S2sQ2CelzCmka5SG7tMveaUSp1sLUOsCBGs8qfYNm+6HraS5drgC27Q3B3PK8c+YJw== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-MS-Office365-Filtering-Correlation-Id: 9ef3d3b8-2c0b-4eb6-f863-08d342ac6ee4 X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;20:vK0l5dP8TfnlwXReTCCKVT8rf7+90SRQCfylieegPlHymHVSwXTECS+GIZJHLI5/1NzqMAQ1aionDqZfV9CCMimKhP6n5EuLEgHz9EPevaFTT7tzntDzP2GqekZI7ycDw7Cv5xdKfRfHKVKX5i/TlQEoHhxMFFl1rlCbGIguF9zPe4WuZgsblfCxQ/rGq7PCVOLYKa4GPQh47quNRVCcW4FNRaxRJoK6HW7hO0JPaEezlf5TpGhHS8orpE1iZ4GUO5Z66GXSzncJEtbv4FmiCu6aSWIeGS+YaPZSWaAYvuyfXtT4KUn15o2SHvCBruse8GtS5ULpOXleM6N4CglUfbAmmbdmoYJ8vdarLk32ABjLCSI4ZwTyJeWDE8RJRm55hHFab7c8sSDn6bxuUHbtsD83RyKk0SiCNigPcQN/tz0fnO5X7SDbbzpd17vifQck00vTzvkXPKmU9J/rwWsb0ryEo+Lj6VJgK5EgTUZXAWDEJ0T7ZKPazmopCY4MrI9LN6RGbnTbdg66mU5wyYKCxYPUmxJE6jb5jgrDNUxaGPGYFPbWpJFlfrTjozbnlHYhCI7uYrFeLJf/1qlypbj7ZCH+MhiEJ/b0LkbvAqLusV4= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046);SRVR:DM2PR07MB624;BCL:0;PCL:0;RULEID:;SRVR:DM2PR07MB624; X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;4:JFXaVTqK+KIqoUy783eZfKEuycVBtXhJtiDpDa694LA1hdPaabjmOX5WK2z8Q1Jc3H5l/iegs+ZriaKEZUKv8C3+c80xcA1LFL4ohQC07MfzskbVR3ylgb5Yj+i5VjKBR0Q7F+4vjyUN+mRnjNBHVm4/5RvDOBLCsDRY8N5Hn/irywaP7EFAbFe55+edoaDS8PFKYXjtCRu+q1owGIvE831lFmW1nDzRdUJGRa4e+q/aqCVV7ouGgwnjTwZLG67rDdx5jlMVt13UyjLRRuGSvbKV7jquuIJjXksY6Zq8EEb+J9gyGH5/bhRD510Y9xStxOf7ORIQsZT2BspeoDTZDtJLFuZBn9abo0CGQBCR6FnOnRvSyw8eUMZs11d4oYIr X-Forefront-PRVS: 086943A159 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(6069001)(6009001)(92566002)(4326007)(76506005)(42186005)(66066001)(5004730100002)(4001350100001)(122386002)(189998001)(40100003)(50466002)(110136002)(2906002)(5008740100001)(97756001)(47776003)(77096005)(33656002)(15975445007)(1076002)(575784001)(33716001)(2950100001)(50986999)(46406003)(19580395003)(19580405001)(87976001)(83506001)(586003)(5001960100004)(3846002)(81156009)(23726003)(76176999)(1096002)(54356999)(6116002);DIR:OUT;SFP:1101;SCL:1;SRVR:DM2PR07MB624;H:localhost;FPR:;SPF:None;MLV:sfv;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM2PR07MB624;23:0v6R9oUDqtoNqMoPwbLYGbiZSiNHHt7xIYX/083VT1?= =?us-ascii?Q?pk/g9fJVdpLQMVuyd9acPWbhIzm5h5XNc0G2TEmld7tweJzxOWih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xCe57eEIoSOAoSo0iObViiol2NX3i1Ygu?= =?us-ascii?Q?j/AgboRUf9RdwYCm1w7/JWW3SNR3tDREde6VC/G/+wSAY+32XgkcY9BvOQRc?= =?us-ascii?Q?E6WInylu+z0niFUpYHbKHYUpO0sDW0lzdgV/WzcIZHa1L+0g=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;DM2PR07MB624;5:sPVv+c/ARxZEATV1bGU6pJsP8Z+gCRye0VhMGaFv4mlsFWzdHt2lckNDdfHOnyT3Foc/Rq96quhARaQymBdnfpvMN9iWYTCwmQk5Chu44bfdnUCi0fu0OMqv9zYCNpR7sA2zEBmQOwveDMjZRmh6iA==;24:CpnPvK1nzk6sXNMRHoq80CPz96UdRjR2XgYZmDsH5sl23Lg39yfLY0p7V/+jAwa3mB643+4b0vbyokXs10sEiWyf/oNDrG4QApTsRBkR9B8= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Mar 2016 15:07:54.7929 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR07MB624 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2277 Lines: 67 On Wed, Mar 02, 2016 at 12:19:23AM +0300, Yury Norov wrote: > On Thu, Feb 25, 2016 at 09:52:40AM +0000, Suzuki K Poulose wrote: > > This series add checks to make sure that the AArch32 state is > > supported before we process the 32bit ID registers. Also > > checks the same for COMPAT binary execution. > > > > (Painfully) applies on top of 4.5-rc5 + [1] + [2]. > > > > Or it is available here : > > git://linux-arm.org/linux-skp.git noaarch32/v2-4.5-rc5 > > > > [1] http://lists.infradead.org/pipermail/linux-arm-kernel/2016-February/410556.html > > [2] http://lists.infradead.org/pipermail/linux-arm-kernel/2016-January/401913.html > > > > Changes since V1: > > - Prevent changing the personality to PER_LINUX32 by adding > > wrapper for personality() syscall. > > - Add the check to KVM before initialising a AArch32 vcpu > > - Tested on hardware. > > > > Btw, linux32 doesn't complain when the personality() syscall fails to change > > to PER_LINUX32. You can verify the personality by running > > $ cat /proc/cpuinfo > > which would still list the 64bit features for the CPUs. > > Hi Suzuki, > > I have some troubles with access to appropriate hardware to test > it, but I didn't forget. > > Yury. Hi Suzuki, ubuntu@arm64:~$ uname -a Linux arm64 4.5.0-rc5-00019-g3e330b9 #76 SMP PREEMPT Wed Mar 2 17:46:57 MSK 2016 aarch64 aarch64 aarch64 GNU/Linux ubuntu@arm64:~$ cat /proc/cpuinfo processor : 0-47 BogoMIPS : 200.00 Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics CPU implementer : 0x43 CPU architecture: 8 CPU variant : 0x1 CPU part : 0x0a1 CPU revision : 0 ubuntu@arm64:~$ file readdir readdir: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), statically linked, for GNU/Linux 2.6.32, BuildID[sha1]=aeebc12494450b55a2ab0d39ebd2e121e9085d5c, not stripped W/o 32_EL0: ubuntu@arm64:~$ ./readdir -bash: ./readdir: cannot execute binary file: Exec format error With 32_ELO but w/o your patchset: kernel just hangs (on 4.2 it printed errors, but it was other machine); With 32_EL0 and with your patchset: ubuntu@arm64:~$ ./readdir -bash: ./readdir: cannot execute binary file: Exec format error So, everything is looking OK. Tested-by: Yury Norov Yury.