Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751974AbdHEOkj (ORCPT ); Sat, 5 Aug 2017 10:40:39 -0400 Received: from mail-cys01nam02on0078.outbound.protection.outlook.com ([104.47.37.78]:19072 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751434AbdHEOkh (ORCPT ); Sat, 5 Aug 2017 10:40:37 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Yuri.Norov@cavium.com; From: Yury Norov To: Catalin Marinas , Pratyush Anand , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Yury Norov Subject: [PATCH 0/2] arm64: cleanup {COMPAT_,}SET_PERSONALITY Date: Sat, 5 Aug 2017 17:40:20 +0300 Message-Id: <20170805144022.17260-1-ynorov@caviumnetworks.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [196.71.79.105] X-ClientProxiedBy: HE1PR09CA0082.eurprd09.prod.outlook.com (10.174.50.154) To DM3PR07MB2124.namprd07.prod.outlook.com (10.164.4.142) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4246075f-44e2-4f93-9097-08d4dc0fee6a 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:DM3PR07MB2124; X-Microsoft-Exchange-Diagnostics: 1;DM3PR07MB2124;3:YDZpE9qp4KnvYI7LSELlMSidsCO8uTiDjDmWFSYLqQAPVg7JfRuUWsBGIfIt2L/0kXS87GhA6/+i8LjjeW3MmJo9oWUNANYUupljO93gqn+JUE3XcA04r2dW3qOT0FQWhvKi3hg7n6IZssiGh1Q06R3fbt5kY2F5h/8Vpabk0c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whpAIp3LfbPdjsv2A+3yQXyJ3NNSSknilN8teRbAQnYF/K16SB8JCjmshqgl/47oLNX8fZHTbGTAB86p/ZEc94eLQGvIr/tGUz2uFvnO5wU+eTt9qhgZoa0jKA8RnAGIHp9I4DgLggJbQOvBMVJbyzfhpGKRBKjL170+1gF41ba40D4WY7ZqPTHPLCmT6MjebqjvhH5BOwda90quo02owHCpoQweszzDuiH9OKeLZH2X4fN42K/3aYetVES2lAcMXi+zDign0tB6iIievvaEkl2A=;4:HZhC5xpbgnZiI8BjRdaeR804n2aEsk2nRwi92rn9CKZiC6fPN2EXgFTYk830NG17lNoI3ivfw8md9f/bnwKt0YtNUydv/murJsXAfmClxM56T/ylZNxIHuZTuoKSyVKmv8e3B86TJX8F3ToHqDHB9dgymfLTNV6k3uKTh9tQGGX/Uwl2Bfm46l85j4ZouGvZ0ELUsUXvqIhKMUcFlXCRGSy2BiiHgn23y1XQcKw5swYwLANiWKUTXBSeRyCFpr10Na4Ba5OXp3rQDWqN+Q3FPRxih/pfoirIjBgrSIzw/cI= X-Exchange-Antispam-Report-Test: UriScan:(180628864354917); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123555025)(20161123558100)(20161123560025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DM3PR07MB2124;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DM3PR07MB2124; X-Forefront-PRVS: 0390DB4BDA X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(4630300001)(7370300001)(6069001)(6009001)(39400400002)(39850400002)(39410400002)(39840400002)(39450400003)(199003)(189002)(10806002)(101416001)(25786009)(6486002)(38730400002)(6306002)(106356001)(50986999)(6496005)(42186005)(105586002)(68736007)(4326008)(53936002)(966005)(6116002)(107886003)(3846002)(1076002)(6666003)(42882006)(5001810100001)(72206003)(10916006)(478600001)(47776003)(81156014)(36756003)(5660300001)(81166006)(33646002)(50226002)(48376002)(7736002)(305945005)(66066001)(2906002)(97736004)(7350300001)(76506005)(50466002)(5003940100001)(8676002)(189998001);DIR:OUT;SFP:1101;SCL:1;SRVR:DM3PR07MB2124;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DM3PR07MB2124;23:fmm4UR5Z80fqmzqfN0YygJ2g58R8FlAjNp3WsXs49?= =?us-ascii?Q?0pX9wkJPRnDNCGf0JtC105H247meSl9H/smFSxDEY1NY40JdOuJUigmbhkkS?= =?us-ascii?Q?h4T9ZLwLLe8Jig/waxirAPPAI5XPXGtxKto85oXB2r9GsfAYKepATTjDaGja?= =?us-ascii?Q?mIIrG/e7rblzSmv2i23FIO5qCMdIlVw2dhdMKfFSWg0zBHMARwY/SlyLCsF9?= =?us-ascii?Q?qcoW8SRaDTD4hReoc+SVKUtZFIMJI7zGOy9YcqintnEZ1wDJ++MgxNpc16KC?= =?us-ascii?Q?bDvPX0V8G05m6pv8ykoHo/PK5Uy3zqG6qXtWHej6zYcFRr1zAj8z57omoF9e?= =?us-ascii?Q?asmY3D2Ca7oh8mQdfp1B3ZzY3CnbN8nkRSAy9OQVcdgnmi+i5svxe5n8LoAP?= =?us-ascii?Q?xtFKZngyWlOdNHYRNS+Spfl4icWjDSF2AljGQ+et6ABx0TDpEO623qz1xeeA?= =?us-ascii?Q?ldLNRhMLqZ468Q1Z8/FCvZeQ5MRhb0pzZJ2Lpm5nOML1Sbi5kGqMc2wXi0DR?= =?us-ascii?Q?T53TR5rEY1b1hAc41ig3j6qNL049Iwemo/QMk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MTVQWH4wJc2nI/7l3YVQh/Tf11zTfdhV7rETgCX/15WfE4qqZrxaKuFsEB34NhHuqrtbfFoAknO1t9G55AkAoD8QQh/ZF1+G4Dz6C3DGoZKfSnUbcygReHn+x9GIPSy/G299M1t9RkERNYaffVGI/YR6s3IEmTZI0UA8nBh46RR9KnQpRWk3ffMOBla1UfX49gAhGyz0R1cplrELFBnTmLCy5SSbkAwp59MQn9tO4xI0hIdnWnKb21QaADq5psO7HsNJqg+7jb7GFyvvDEwg==;5:BotKRPOVz8wYd8RIhBaX4E9rJlgsIAwhuxdXltlEeRrUfjV240nwa9/6RWM6urN7CxJxzSY3DasRsmK7biwbwxVbQWdqI3+XlpyfmCA90pQTcdefP6I11AVJ6zPSIIQuo8wwz6p7IKkj0nJ4lgLHGg==;24:mJU7ZtEz8GYCBLAjVNSXbJrcRK0+NXjETWM0VNh7jlDEJqNp+04U+NsHx3jFto5An6ScSNDZuhTIc0b5MDD1YEADr/8Qn1FODwL3ls8EAWQ=;7:KvM50psDuxnKYl1mlBF7+/L+4SlSAE0H3CNNj9sHg0bsE0AF5I0+A2LEHPEmSCXz1bUvPqqhADCmQq2AutZWwbOkmO9/u20KeOFaCKDdlIL1jlcn/zuA54jjI8AQOIw+oFYAqiQucE9msToNM/TYKBrm9j/x0qifbwIE/YH/rFoyOBGhKnF35HQzaz7ujD/X+aNugRSuDgaXGVaupiHFNnROeph86ztUDlA0DJk9NFQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Aug 2017 14:40:34.2257 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM3PR07MB2124 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 796 Lines: 23 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. CC: Catalin Marinas CC: Pratyush Anand Yury Norov (2): arm64: introduce separated bits for mm_context_t flags arm64: cleanup {COMPAT_,}SET_PERSONALITY() macro arch/arm64/include/asm/elf.h | 15 +++++++++------ 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 | 17 +++++++++++++++++ 5 files changed, 32 insertions(+), 7 deletions(-) -- 2.11.0