Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752582AbdHTKVJ (ORCPT ); Sun, 20 Aug 2017 06:21:09 -0400 Received: from mail-dm3nam03on0063.outbound.protection.outlook.com ([104.47.41.63]:6608 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751648AbdHTKVH (ORCPT ); Sun, 20 Aug 2017 06:21:07 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; From: Yury Norov To: Catalin Marinas , Pratyush Anand Cc: Yury Norov , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] cleanup {COMPAT_,}SET_PERSONALITY Date: Sun, 20 Aug 2017 13:20:46 +0300 Message-Id: <20170820102048.7537-1-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [5.154.20.55] X-ClientProxiedBy: HE1PR0102CA0009.eurprd01.prod.exchangelabs.com (10.170.250.22) To BN4PR07MB2113.namprd07.prod.outlook.com (10.164.62.155) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f24cdf71-1a38-4e22-569c-08d4e7b52a3e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095);SRVR:BN4PR07MB2113; X-Microsoft-Exchange-Diagnostics: 1;BN4PR07MB2113;3:RKONcZns/Cd6FFrfREEz1af0qCUQB1fSm0w67z9Qw8Ez4XaVqHbbbxPfW4/IIms+lpy7mseVmzJWU7F+c5L6rzD12TMZE3KvQA7YE2iGsV/BhJSHxWMN1zr0xTkIXfu5OHImAzW/blOBvXoRONga3Fk4GARS2JBznkiSran/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qQO5XbOk9LLZqzETuWpS29ORRZZIC3gI0DCZyMnS5u6HUrXMbgK9SWIY7KB5Ygss6HsS+RhAua0/TLTCkaCl8MhrRIhryFISluGN5QVxV9oWsUen19HUkAzcEhHvo8F9VkGO3CYhFL1ndlQy8LOuaxwlwlHTqcEHuwRX7jE45WcOUnUg6e+/GEqCxZvjOTE926Smj2rQpmCIfuFvLFBtRAXztKtaXOE6npT8816DvQFV008EaHiGXXskPLaOh3msViTjFBwk0+GV9qSpvGOvKARDeROFqXxo=;4:CzTzEyZIXwhfbKeTa8fKpo4PpTauCSLCwgz/Zb+JrUmUxwSY0t4B1weCtJL4i7nVuQarfHtyW2RiRJCm3YF87Uk6llwa2B+XoOAaPcPTDRVK/DVs/GdPhlGky69NadDkydNoedkjtaoD5QZ0ETr3k5cu/PRThC5t8UZnZ9dYMCZg6HIJevgi+AaoqC45H+gxdhLi4QwMoHMHlZoVLtIy+nMVgU4GCAsksh9hGiJmopyZXLNGo7FJ/drLrYICMrO1 X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(3002001)(93006095)(100000703101)(100105400095)(10201501046)(6041248)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN4PR07MB2113;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN4PR07MB2113; X-Forefront-PRVS: 040513D301 X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6069001)(6009001)(189002)(199003)(966005)(48376002)(33646002)(50226002)(47776003)(50986999)(7350300001)(66066001)(81156014)(81166006)(189998001)(8676002)(97736004)(71446004)(5660300001)(2906002)(50466002)(101416001)(3846002)(76506005)(6116002)(6666003)(5003940100001)(1076002)(72206003)(42186005)(42882006)(106356001)(6306002)(53936002)(105586002)(7736002)(6486002)(25786009)(68736007)(478600001)(305945005)(36756003)(4326008)(6496005);DIR:OUT;SFP:1101;SCL:1;SRVR:BN4PR07MB2113;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BN4PR07MB2113;23:FYayLhMfEymnKaYF70ad+KZvVoY/my4lR2zMBWvAA?= =?us-ascii?Q?C8JUnlHXnhamKs0gowAKt7dwejseO1LZh2H7JUdRC8Vs1MKOOCL09Ffdbn6n?= =?us-ascii?Q?eKpq9TQpT7M1Vd0W2GTUhcINK2Bv96N0OnkUy93vUnCEpFDvMa91C/WsnwyZ?= =?us-ascii?Q?L5xVnL9yQfpaQi4IPnaDXMupGPGENcxAhn22NQem83TE5tjxBmVQQ78M0O/4?= =?us-ascii?Q?FJp5HsNv/nfMLwBeiEo5uFzI/E+bu4O53Z+4Jil7mwWpX6/FJOs8NyYoyAd/?= =?us-ascii?Q?z39ql7uygFa1xMoMdK+PmjM7Q5eO2rpiVnOzQNU1xJEHvYbXq1reOn/66lXm?= =?us-ascii?Q?LiT6Xmwsy7rm8eYiT3i8OwfJ2aDaf89HAQI169VKs90GPgClAxJ3jQbcTI6S?= =?us-ascii?Q?1lpyNoLeEI51p1Uy6dxwcxgX/v5Ncq8K6PJ/EqMBEMV3ikyjpr9GVPTeo8wH?= =?us-ascii?Q?dqiWmkPU6W+GlvdIBj3rMl/LeXz/GXhRbqsFpbJaQ1yIKxZYYpb6+ML261r6?= =?us-ascii?Q?d9JhnRsVPWvJGzeDqHpNUSUoSdDkYJhmQ/Z7gLuVyB/Ng+JQtsq3f3xl0Rxl?= =?us-ascii?Q?Xs9FahTVvUA4f/S8XELT7WUTQjcCe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RMRcwz+7sQUUQs+3ZQylkpaEBGdgrknhqIKdbbel3b5J1LVivi+OlDT5mHAzHb0jBpP0S+jv1M/z3mEydCy4QP2CX+Tu9rFMT3u4kRuP0airCJg==;24:1p3wXalEjYua6NlIe4EFT/qaBiWMDEBc1vmuKW6VbpFtLSJGDenit7MpO5y+52sHcEldz3Vz8vrxoxb2zVjWkB3GMlWoiEaiwBXSbHKmENM=;7:ShrLNbzEhBNmHkwelEPcmy12D7HsJjO4iKq2V32Y95ormEXLDvOPqofXg0UotoQssMtUt+kSf6jtIwSK205uafckIHtZlwZzXtR9a6br1dp5S2Z+5MJPVIxev+rWVhCNcDa0vfjnRv81qwWrkCKAa2z08zThyCHfhcFaizbMbhixzhOhCbZhYjZ5nOtUcu5HkhoAbmtxYyVX8FSErVZiiJtmwIt0pUfc7zoAVrCIKOM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2017 10:21:04.0376 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN4PR07MB2113 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 687 Lines: 20 This patchset is the result of discussion: https://lkml.org/lkml/2017/7/31/454 First patch introduces MMCF flags for mm_context_t ->flags to separate it from TIF ones. And second patch moves personality-related setup code from SET_PERSONALITY() to the helper. Yury Norov (2): arm64: introduce separated bits for mm_context_t flags arm64: cleanup {COMPAT_,}SET_PERSONALITY() macro arch/arm64/include/asm/elf.h | 7 +++++-- arch/arm64/include/asm/mmu.h | 2 ++ arch/arm64/include/asm/thread_info.h | 3 +++ arch/arm64/kernel/probes/uprobes.c | 2 +- arch/arm64/kernel/process.c | 8 ++++++++ 5 files changed, 19 insertions(+), 3 deletions(-) -- 2.11.0