From patchwork Wed May 16 08:18:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 135982 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp595692lji; Wed, 16 May 2018 01:19:54 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoQTtDux75TAdzfz4ISucvzs29DdINky9SsDZiuTpxzJEYGaEMF5D0iNI4lrmStQKKcezZ7 X-Received: by 2002:a17:902:5ac1:: with SMTP id g1-v6mr18210013plm.43.1526458794211; Wed, 16 May 2018 01:19:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526458794; cv=none; d=google.com; s=arc-20160816; b=p6yteavHrGjKcPq+SjUtnQXJG+cPhDR+i1MezHxly15/8UgtRDdCgHUa5gOKlg6KkU j9EqTM/CbbgVZ8o/iIvj+GkvVEbm1aANyV0vIGSlnltGWzswB1E8FjascH+c6gZOjYbu asdBb3ngIUEI7T2rYAC1/p6fRgPSJTMTCRDhYOFm9QDQdw3tGqcWPoIEdtzUfdq1oAMk +jZZZG/e27SVWmEV1yiaUDlQze1q50Fe605hAlDqIH5q5A0Ul4X+OKqs+6FoCDW1S5VD 2jbjDuYDy/qGQQ5We9uUCYENLjTZolmDGGCRnAYWS7qioM90dXAdYa0xnBvUsdJ5OWQi RUlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=iE1ShwXT97gcw1DghG/7asN6tgL0zQ896B38HSzqzzg=; b=ZXmQEOjOrNPQweSetG92MnNv7FcZzaNbMQStk/3TYaCirXQgX2anREJj/QdwfpDv51 zI/0rdSEplvnHa4erckj0EFlxyzYHyDzCslH+sxg7wQueJblPprIforOqu0KUpq5xO6+ Uy7XX8/c/zgqFreAOGCFIy4BQCNr9+VQ9Ob9OI7aNy1rQCC7uoQ8NITGGWWv6BBNuorg eZBq68B0Ivi0ouCupd2Z8gDSsd3shRrXMJ07sSWvm9H2sxkcIHlFfie2/B825GQjQCi/ QHHZhOaszB2KaNa2KpGQ0xQ4usxachgPQEUqDRj1C7jzE+8mlo/cEYuI6AOLnxTRgeqx nJjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=lYUbF/1M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g14-v6si1740885pgu.363.2018.05.16.01.19.53; Wed, 16 May 2018 01:19:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=lYUbF/1M; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752729AbeEPITu (ORCPT + 29 others); Wed, 16 May 2018 04:19:50 -0400 Received: from mail-dm3nam03on0064.outbound.protection.outlook.com ([104.47.41.64]:53860 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752495AbeEPITn (ORCPT ); Wed, 16 May 2018 04:19:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iE1ShwXT97gcw1DghG/7asN6tgL0zQ896B38HSzqzzg=; b=lYUbF/1MfJCvH7XhCuhP2bWadVaFNvvBOfSDkYWohSuSjHk6ogv2BcQbZeJmuv7l3culy/fTbX07FHHB8FjQRcqdErSE3jMTCdsGvve5WKdCWLCULpHs89Ojs66kSdP9AUScbOqi530yAIWlCHHs96hMt11TWOOJvxq1rwc/CwQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (176.59.36.13) by BYAPR07MB4376.namprd07.prod.outlook.com (2603:10b6:a02:c0::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Wed, 16 May 2018 08:19:37 +0000 From: Yury Norov To: Catalin Marinas , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Cc: Yury Norov , Adam Borowski , Alexander Graf , Alexey Klimov , Andreas Schwab , Andrew Pinski , Bamvor Zhangjian , Chris Metcalf , Christoph Muellner , Dave Martin , "David S . Miller" , Florian Weimer , Geert Uytterhoeven , Heiko Carstens , James Hogan , James Morse , Joseph Myers , Lin Yongting , Manuel Montezelo , Mark Brown , Martin Schwidefsky , Maxim Kuvyrkov , Nathan_Lynch , Philipp Tomsich , Prasun Kapoor , Ramana Radhakrishnan , Steve Ellcey , Szabolcs Nagy Subject: [PATCH 01/24] arm64: signal: Make parse_user_sigframe() independent of rt_sigframe layout Date: Wed, 16 May 2018 11:18:46 +0300 Message-Id: <20180516081910.10067-2-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516081910.10067-1-ynorov@caviumnetworks.com> References: <20180516081910.10067-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [176.59.36.13] X-ClientProxiedBy: VI1PR08CA0114.eurprd08.prod.outlook.com (2603:10a6:800:d4::16) To BYAPR07MB4376.namprd07.prod.outlook.com (2603:10b6:a02:c0::19) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BYAPR07MB4376; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4376; 3:M1jqorQZkkS7mDYCmGI1kJIJ6ktljDWVwiq1eHl8ENOs4ltEqGyyZ0/Qm21VFlC2XpMVshtcaAVS4xA9MjHhb0Y+K2hOmLEs+zBG6GABdcAXmRTPjfnmBIuvtkRQUmTe/ILP/jmbF67nIR22srCYey0ERCHyA1SNgPyO8wocRMNg5gQGi76nrdoH1/3yX7zboYBMht8bSBtYLxDGoPJYOwA783Dlv/rnbOWXmk6Ty2dZoY1ZZdeWIZPW+Grzt/xJ; 25:HaDvKYhnR3HuZyo4iVpsxXjn6Nd9x50Mnohbxl8vAWMMwcVOOTFe5Ap87gKnhCNwaV6w6LLO9tr6QfvHtdx4p+cFJHXrxub45lrGtevlBwjZTPkLkys09J8PzatkZE4dzNT2865k7LWGWtr7zOXTI/TF50ZZrzK5AjvKLdEZ0rxOgKu7CCJa0kVD/Wjm2swg6bZ2R4MyAKE9E0T/B6ul+Z1HVKMY5hNfXxQPJxq3c9Bo3YnNSTMZFLbToi+a9UVF2nDvCXt0szyM3Vic3/byj8jCgDmU5f2K9LLz1wQ63bLDVAhUffSnNSKthx0NvXmlS3gEz0uzMMgiLnCpADsR7g==; 31:e8/GggLImTY7I1CQ92iIdqryVCxnAFZRgk+c0KsOXzIAbGMY4SGRkpHt8qVUTX5Ce1YDjbxykCzPB8kKxs8L6geIoOAB+A8MbrWhEc9592moLnQK2OdfV0c7TzpujalwEBNzJQ3RmZvTtf7kE5SKvLfGQfvPRYqUlIqVMVOOJe1lz39rJu/8hr19ReExppQ4PgqSulv4yQghF12+BE41F1wmb6sUSroYEkz7Awbl75k= X-MS-TrafficTypeDiagnostic: BYAPR07MB4376: X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4376; 20:9P+d4X+IdUV5utvBTVO7uX0u3gNMq7f1KT749aFaemLz7ezU0VQRKx8xl7xcUDEUv7YQ6ItYcvbg1o0wFRmLvCvRhP4Mm+QfgypjKO168UWktvoxye9qPsi84S5JwglnMwdY0v2TObxxVlcjal26Z4g5mScutW5Py+nTswWodzwXkEuXpag9O4xQveHcAcAve6t/YHPGBSzWr+0IvIo1s/nJlouu/40up8D0chNHXB1zoNyMFGyhGXcyOFV0LBKdNQXq/NjeUfFPDBNR9mlq0Dup13fzh4aT00Vj7OSbyNcykTwFWHSzBrlsiBRWVvrr/GtWGIbuGx1ssAbbVZPiKZarV6qr2lUMRuX3eYEWYaeTu8tMCgziwipWB1Mybk/jSFHTnqMOnqP0vkU7BCzyruy8D17TrOPDFjf0vkffeFMMvK8t0UEbP9qByTo2/RalfnQFYOQKI8zJa1nZme/Ogba+IefbFVkr/j1UlKxfmiVp/HRS7EPR0kgCjhb3d+KkUUpFmerEf4OkoM83x256Gt22lk1NG2a8Ion/Lwbh3006yYdwrOdaMl6Q6Kj7OqbIp/JCCcNLC/1N/hhdwROp//85FhiOY4eAFJL3NEX11dU=; 4:8tBNMdiBprQWDcB7oRzoIAW746ZY47b/T0Up8tPB2IJfga1yKw0cfaTtFB9YwHTARkeql3uFeBRMU1OG9Kuxup221C16+rTsniUMFvwJwbvnCwilKEiS+9zhF4GC1sD30xcICsRbntSw2mpKlt/sJ4b3nYFbyK5yDyGS6+qcMHpIi3IHRQaoc5DarQGctz/GFtTTTRpflGVF/AX55vQmtUrlx2jvP3ATn51lbxvfzP6p3cvIgmbaskF67kalsmk0D+fIolKMzcXZSrCib+jx0kvAdJt65/hRSM2qw4thvOdEXNUTwgLgeM+b2xWEbR9D X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BYAPR07MB4376; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4376; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(376002)(346002)(366004)(39850400004)(39380400002)(396003)(189003)(199004)(39060400002)(42882007)(59450400001)(6486002)(53936002)(6666003)(4326008)(51416003)(386003)(76176011)(52116002)(446003)(6496006)(50226002)(16586007)(305945005)(7736002)(72206003)(2616005)(26005)(316002)(478600001)(11346002)(36756003)(956004)(105586002)(186003)(16526019)(97736004)(2906002)(486006)(5660300001)(106356001)(8936002)(476003)(76506005)(50466002)(48376002)(110136005)(47776003)(66066001)(25786009)(54906003)(7416002)(3846002)(81166006)(7406005)(1076002)(68736007)(81156014)(8676002)(6116002); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4376; H:localhost; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4376; 23:CZWA7czvuLlouWj+Ph0+3uj7yI6t5dcU0hzXeoqknbwN3YFp7OT8Twxt8GnlcHScvBJzRj/K0Xk83ZXj9s3LwGDBmoPZ1dnYyQy5X4nJkJCzRoIiSR8Z3PU62RpgBm2NDx7mRFlxVhwOIyJKwKYJDHKNIn0G4xp1RZ0znczH/yIqReDsoN235UTWct+X5pQVDfAFmv7srKFw6CVIUmEV4nHpPkg05YJB/hoCevkbBHahR5QqezApN4NuuGcyzM7lTML15ue8Cz7jUD27rH02XPprU2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NSPM X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4376; 7:2sKim44g1gsWMkTJI8U0FlR0fOTQYY2e3dDlBQK5E+PWwg3wgzd9MBpmZGhwq1GG9NUVZfOjLJlTuPrN1SdzJExtDiaGJa2U1VeQerTK+XkJ/6BVyEXYVMmESFzBhEobrUGQkXaBRCWqMPsIbyI4bdK8matngGSV9asEjX5YXaFxm01rlPagUx1u0cmB0MXNy2R9YL8+W4CTgeu65xh64WlEz/yImCGijzxY6lVEAPNIabFf4xm7epmno74V04lf X-MS-Office365-Filtering-Correlation-Id: 7843e00e-1138-4bf3-2a57-08d5bb05c43e X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 08:19:37.4900 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7843e00e-1138-4bf3-2a57-08d5bb05c43e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR07MB4376 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dave Martin ILP32 uses the same struct sigcontext as the native ABI (i.e., LP64), but a different layout for the rest of the signal frame (since siginfo_t and ucontext_t are both ABI-dependent). Since the purpose of parse_user_sigframe() is really to parse sigcontext and not the whole signal frame, the function does not need to depend on the layout of rt_sigframe -- the only purpose of the rt_sigframe pointer is for use as a base to measure the signal frame size. So, this patch renames the function to make it clear that only the sigcontext is really being parsed, and makes the sigframe base pointer generic. A macro is defined to provide a suitable duck-typed interface that can be used with both sigframe definitions. Suggested-by: Yury Norov Signed-off-by: Dave Martin Signed-off-by: Yury Norov --- arch/arm64/kernel/signal.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) -- 2.17.0 diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index f60c052e8d1c..65406218743c 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -334,17 +334,16 @@ extern int restore_sve_fpsimd_context(struct user_ctxs *user); #endif /* ! CONFIG_ARM64_SVE */ - -static int parse_user_sigframe(struct user_ctxs *user, - struct rt_sigframe __user *sf) +static int __parse_user_sigcontext(struct user_ctxs *user, + struct sigcontext __user const *sc, + void __user const *sigframe_base) { - struct sigcontext __user *const sc = &sf->uc.uc_mcontext; struct _aarch64_ctx __user *head; char __user *base = (char __user *)&sc->__reserved; size_t offset = 0; size_t limit = sizeof(sc->__reserved); bool have_extra_context = false; - char const __user *const sfp = (char const __user *)sf; + char const __user *const sfp = (char const __user *)sigframe_base; user->fpsimd = NULL; user->sve = NULL; @@ -493,6 +492,9 @@ static int parse_user_sigframe(struct user_ctxs *user, return -EINVAL; } +#define parse_user_sigcontext(user, sf) \ + __parse_user_sigcontext(user, &(sf)->uc.uc_mcontext, sf) + static int restore_sigframe(struct pt_regs *regs, struct rt_sigframe __user *sf) { @@ -518,7 +520,7 @@ static int restore_sigframe(struct pt_regs *regs, err |= !valid_user_regs(®s->user_regs, current); if (err == 0) - err = parse_user_sigframe(&user, sf); + err = parse_user_sigcontext(&user, sf); if (err == 0) { if (!user.fpsimd) From patchwork Wed May 16 08:19:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yury Norov X-Patchwork-Id: 135983 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp599998lji; Wed, 16 May 2018 01:24:08 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpbQ3fJ+w4qZvTMR43jAq392wgXkGcBNyCpQpgC+5MVA+NalQSLR+kclPzn09z3yPSrIakj X-Received: by 2002:a62:cd45:: with SMTP id o66-v6mr18972072pfg.250.1526459048696; Wed, 16 May 2018 01:24:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526459048; cv=none; d=google.com; s=arc-20160816; b=PSr7QmVx1kZygJzKH1PGpxXr+XSgacGcVEdVm0wytLyHRAw1pw/WKo6kPqbu6l6J0f XMquCNjYwBsambf5IL1BNlbNP5yLtrqgWvQpG8QbDzFLW9Jh9sxTbRjQEPR+3MgIlMlh 3KuIJvsvihLk6HCctx6EKsoNpza3hfdCBUfPTnC3jA+eVXpOmzf6HKbMuB55QbozKk+5 nDjkQutIuI3lUqehwBZjMeNkhaTbH1fM66TL8ayPk9p1E7kbT29epOXmfc7uM9VmNQJO onMdHqUMML6AOboZ8VTFAg5UYfvgdRY1e6BLPpD+tyu2IBAxWNTPUrAoTsTSOZUUuEcc NI0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature:arc-authentication-results; bh=kVL8oiL7R5aXK/2DmtfKkzryPiH2ZYR5424ChJNB1Dg=; b=IBJThjpBuwgQz95YUJGA7O0RURgnHeKJKLhPM6xBpH9CuwZ6IEwEaiCTeydLqZ6/PW MPG+C3+VzrYdSMqiCnd2PhFNAGL1zaKSe2SBBlSXukgMXItAiqQFWsBG5txHSmZPeoma 1qLSADtlTOqFynRtZq3xrYsy6/tQX7C4B4EoJxyAlcthpgXGNIUwkUsyyX0B7sEQUJhy Q34vqJWADuG/gBInu654vUBU3Y0XMV60uA/VKojOUP1U/4kXFvF8RuKMUnrAiaUKszlA jI1s6S1YHS14PvSGkkm+BByEVBmP3zfe6saUbfYET2g9NcJ++74JIk9eN81wQ0mSGtLc sq1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=ZoNxgtj2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p5-v6si1959006plk.537.2018.05.16.01.24.08; Wed, 16 May 2018 01:24:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@CAVIUMNETWORKS.onmicrosoft.com header.s=selector1-cavium-com header.b=ZoNxgtj2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753169AbeEPIYE (ORCPT + 29 others); Wed, 16 May 2018 04:24:04 -0400 Received: from mail-bl2nam02on0069.outbound.protection.outlook.com ([104.47.38.69]:19782 "EHLO NAM02-BL2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752007AbeEPIXy (ORCPT ); Wed, 16 May 2018 04:23:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=kVL8oiL7R5aXK/2DmtfKkzryPiH2ZYR5424ChJNB1Dg=; b=ZoNxgtj2uARUJsAqsPCFOBweJ4xXb0auRpguiIKW1gDyY8soPAM89XxaIybt1tMjBNQZRLTqDhPPDHZ9zKmlNHGun9zNEjlzzCSuEpqACERt6218gWg5M3oEsneOLrjj00Ers/pm+BSNc7nne4Hhfv3uHTziiM2+oMVvucPjn3s= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; Received: from localhost (176.59.36.13) by SN6PR07MB4383.namprd07.prod.outlook.com (2603:10b6:805:58::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Wed, 16 May 2018 08:23:50 +0000 From: Yury Norov To: Catalin Marinas , Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arch@vger.kernel.org, linux-api@vger.kernel.org Cc: Yury Norov , Adam Borowski , Alexander Graf , Alexey Klimov , Andreas Schwab , Andrew Pinski , Bamvor Zhangjian , Chris Metcalf , Christoph Muellner , Dave Martin , "David S . Miller" , Florian Weimer , Geert Uytterhoeven , Heiko Carstens , James Hogan , James Morse , Joseph Myers , Lin Yongting , Manuel Montezelo , Mark Brown , Martin Schwidefsky , Maxim Kuvyrkov , Nathan_Lynch , Philipp Tomsich , Prasun Kapoor , Ramana Radhakrishnan , Steve Ellcey , Szabolcs Nagy Subject: [PATCH 24/24] arm64: ilp32: Make the Kconfig option default y Date: Wed, 16 May 2018 11:19:09 +0300 Message-Id: <20180516081910.10067-25-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180516081910.10067-1-ynorov@caviumnetworks.com> References: <20180516081910.10067-1-ynorov@caviumnetworks.com> MIME-Version: 1.0 X-Originating-IP: [176.59.36.13] X-ClientProxiedBy: VI1PR08CA0112.eurprd08.prod.outlook.com (2603:10a6:800:d4::14) To SN6PR07MB4383.namprd07.prod.outlook.com (2603:10b6:805:58::14) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(2017052603328)(7153060)(7193020); SRVR:SN6PR07MB4383; X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4383; 3:zrIJyAbrPfzDDY+Th45+NW4MuFQF5UoPB5DsDC7oREYP1GkyTs1sIl8a6JshZYHfh2cFxzyD/6ApL0fZpL0HWswpnSMt2ebiroWp0Ji9jOpks0wt3sohptAHfnSQ/aQyNuAK/4q2eh5o9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4wipIghIAudEkugvF7xDXBBojjruhjEeRgXqdHJyGrMm4g6S5hmpKn3usNqZIbPZdZdpXjuPy3zUMGx57jQmkEOmy6a/r7v8kp3p+U69O1nb/YWSQzmAPp+Ji9XZZ9aZzEBpiFV/sX/36EWgWKFwS9W+a2Qat1e1II3hRpxJO3vA3xfRyj8xv83BREA6hQTxr5ZHbGZVcGy624qM8pQ7inO+G5gkqWB04Zs/T9Jx3qbhBbc2bK3txrDfX0hRCtv5pKxEje5IkU6S0PHV95WBGlwXDl344HPOcuyd4qDAiq8ucCFpfHL+dOuP5C92rIFarCg=; 4:Q1tYUippVCwb/hTU2JTRIdKa+rDHn9n6t7/qftgq6SeuMqcLyW8eHfvkXAOld6qiMO3SVzpEitcW1yj7rqXCUkCbsSJJyi+6jxV0FarkQIhuag4ZbuGvSq8YchSOgYEOgvmWvIl/p+gfmho1ooy3IXu4W258ImdkRQixmrM1E3I91b8J4Z3OLXBYPiR5eL8ZISqVeCxhhTl4eClTmq88DgV+Y0pVLpxgvpTUMeOLs64QUL7RATqtzfDDXq6+zfmGIx9oDJ2TIThCQyKy3/c3wvBelISoHssqiauFytJzN6yAyskBQYmlJl+NvjESYto6 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(93006095)(3002001)(10201501046)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:SN6PR07MB4383; BCL:0; PCL:0; RULEID:; SRVR:SN6PR07MB4383; X-Forefront-PRVS: 0674DC6DD3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6069001)(346002)(376002)(39860400002)(366004)(396003)(39380400002)(189003)(199004)(6496006)(72206003)(478600001)(446003)(39060400002)(2906002)(11346002)(486006)(3846002)(4326008)(956004)(2616005)(25786009)(6116002)(1076002)(42882007)(53936002)(50466002)(476003)(48376002)(50226002)(66066001)(6666003)(47776003)(16586007)(36756003)(68736007)(110136005)(54906003)(8676002)(76506005)(81156014)(81166006)(106356001)(386003)(7416002)(8936002)(76176011)(305945005)(7736002)(5660300001)(97736004)(7406005)(26005)(16526019)(186003)(316002)(105586002)(6486002)(51416003)(52116002)(129723003); DIR:OUT; SFP:1101; SCL:1; SRVR:SN6PR07MB4383; H:localhost; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4383; 23:lwaAb4TZWVSVOJsi9kLOTbPfgYzhAgZ53FeoABrwPnLq8pBQHPAwHqI2ani9Azp/w+jd3fW08AzuOcIHyXCvApnS+jdSqTcOQKrk+5GUsZsNcaT6uuygAAQvH9f3ibb5e1iq/FkvzEvmhlhtOG0t96NAfwhLPDrviPJQFA+Wazv810V8ykkbEOg323Wk8FYgD/eQAX8xOlhyg8skNCfb1AVmsYe0MkZdVYG8sYsEpr67adeoX0+77VhNHdOEB2WMhzk7X5GwJvZiX7DpXTi4zMsgRQI3i8ba62xKxMhV62wiMSxdwwNyuSz06oKxeOoLg1fGnDIjruYFl/Px3wXuhU6Hv22YYW3ewWkj/sgz+LaBpeP0KUKCxUHNa3JMDVxuxtSCCRvnAEGYbLOsTuslplBWjLmHCimaTp0U/UoWICff5nERqZQN7ifaDraoJaYtnZ4ZqIYL9lGc5hZDpqFXJKCnSI+c78mpNvfTOcaz9MnRXB8dXQDlIvqq76H7amIfdbj5XOhJN7d3Te4xWKmEiDdDk2nL/vSXqMVzDkgaI6a8t4juTiXQ4L8YF8RmM+2FPcDXq2KYNUd89E3kHExG4E8n3zd/XRyfG7Vy/37FUcJI8merxxza4xiJDgvfM/UxrodlLeyJpA6qR27sCDewOCC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Ztgs1L+bNYBzPnCAweXqHiY3Gxn1ySfuAkOmQ9k9Socznz7EIxl8raKVJv96PKaZ2VtbfDYbaoDP1pIR0F8q2Bwmwj25QAs8QJPAMWrbn3vmMSRRn7+UuIWfOlvyg+8v4sX/L6rfqsTWr0BK4Cyk9JrSuAIGTtZ7n/NTi5FpY1MoDvuz5G9B0bKKa/+ODXDv85KHOhlblhZyhP+h9l8+vGVxpZrLKyjfG+8HGM5BJbEkjsWoKI/SCxk+U49zpf09vvyFPc9gRJ7o9UwFhwajcP1i5nPIRpCiXRYvM3y1CxGdwzZf3ILE3FkxbJR/kOz/dRTjtNYR70pdk2pET4Ah3po7DSPA==; 5:HSz93eapkGOYJ/+Z3nH792ZC88nvCgI5kxgRVIJcuHbcQQ/AIJz6L5V7huiNeE21F0COaXd0Nh+Is6gD95lPJO5r1CeHu30kFHLWeOzv7haGUy9MgH96VUuueqHslyItmMdWRPN60tXqRi5SmPe663r+PT8UrurfPCcyl6fLAzo=; 24:mNE9rO2tpNzIRDScCyMxg0aK65wFDO3rxs8JZ6ZTzfHfABblUa8X9IbZQbYjjnh935wKVhOHPWgi00W654ZF+/tiBokBNJWxwr1imwIXft0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN6PR07MB4383; 7:BKw91MCc3GNHltmeK5juFUexSfb0lLcPprhVU/vHftK0iAqlo7orD5EeOHGGFsE+q9tEtlVcilVK6gLNWOZ0Bv2ibiUc/BDfljDaqHRgxp0u//Qgl/K1cd4j0GFex6Ml9c+MdSeoyV1Wmh6QcjVDv1nejlOFMmYNntsKgO/SBkXyyzug1GoruziFIKjKU9+XMXuYVE3iTjumTECi9Vk0IPLDn3RERx//K3zrSQQ10OIFK9S385wYvoDLhNWRTmE+ X-MS-Office365-Filtering-Correlation-Id: cd4fcafa-ba62-484d-d34f-08d5bb065abe X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 May 2018 08:23:50.3821 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cd4fcafa-ba62-484d-d34f-08d5bb065abe X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN6PR07MB4383 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Catalin Marinas The intention of the ILP32 branches is to enable ILP32 by default. This default is to be revisited for upstream merging. Signed-off-by: Catalin Marinas Signed-off-by: Yury Norov --- arch/arm64/Kconfig | 1 + 1 file changed, 1 insertion(+) -- 2.17.0 diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index a3134b8e3123..3551990a2726 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -1249,6 +1249,7 @@ config AARCH32_EL0 config ARM64_ILP32 bool "Kernel support for ILP32" + default y help This option enables support for AArch64 ILP32 user space. ILP32 is an ABI where long and pointers are 32bits but it uses the AARCH64