From patchwork Fri Oct 18 17:25:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dave Martin X-Patchwork-Id: 176908 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp1160056ill; Fri, 18 Oct 2019 10:27:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMQFV/4TCiZJtoVS3s9wN5UggSU4ZcridFRIqautQKqsPjSunc6tSVF0IYldI0IdPUD0Mx X-Received: by 2002:a17:906:134a:: with SMTP id x10mr9826660ejb.204.1571419635516; Fri, 18 Oct 2019 10:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571419635; cv=none; d=google.com; s=arc-20160816; b=pLSVIvr92UmV9WduKGiJNoWpwCJ2JiVCu6Y+Q4icmvJmaFD+U9752brUbZIxgnqZK6 91QFz7i+YMDTpFDRbErid1HOmWG8WqQMTkrxa3wz5ZqqFAZmOW1yyz4IuQX7Ct3PS/Ek d20LkpUznERvR/5wV38AMmmaTSxKdj3CwOWwaw4ecLV0qWKi0XSFL7eXapaW0xGpJCVh WIeF/Iat6pcTfg5qff0nznTKVY5ucoFPf4jjzzPCTPIqOGrAmrtO265P3+5muALf9w65 3KI1NTEEUZbkK1TJ/kkm9UN5nqiUEAnwRgv7JkbfB40kf6K1AtaVJW0GWurf40h916tG GM7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=3Hera2G2eiKAaU3Aim9i6wg/7ybKyQW86IKeDQBRQ6c=; b=DCRuOcuKryp0p40eO5wliE2lpbqluYJk6DbXA42dwhJVzK1DsDQNXL7K3MtzmkWSy7 aAOF8zi9DLvCyWxRFDNwvOS3vxIIC8NvgRj8hLptmhBMmqDm+5PIqO/yZGJs2+3xmveq ZovUusAS6NaRCI7jcXF3m4oWUA2S+Q2u8wrHBNB/YOOQxM6S07kv0oKzfN3J63Gmg3at n4Q9xBLGduOY4r2rzpcKoSqUHR513OxKPJO2QUhbD2yKj70JAud4mJIS/+DA5MeNZy1T uVtr50Btld7Hxfsi10IFK655DLr4ye8dA6HozCpWl8QEI6SZ49Ws94WYlF+sN3sJ5spg DoDQ== ARC-Authentication-Results: i=1; mx.google.com; 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 g5si3697339ejp.430.2019.10.18.10.27.15; Fri, 18 Oct 2019 10:27:15 -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; 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 S2502484AbfJRR1M (ORCPT + 26 others); Fri, 18 Oct 2019 13:27:12 -0400 Received: from [217.140.110.172] ([217.140.110.172]:46996 "EHLO foss.arm.com" rhost-flags-FAIL-FAIL-OK-OK) by vger.kernel.org with ESMTP id S2502065AbfJRR1K (ORCPT ); Fri, 18 Oct 2019 13:27:10 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 0025712FC; Fri, 18 Oct 2019 10:26:44 -0700 (PDT) Received: from e103592.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.121.207.14]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 19EA63F718; Fri, 18 Oct 2019 10:26:40 -0700 (PDT) From: Dave Martin To: linux-kernel@vger.kernel.org Cc: Andrew Jones , Arnd Bergmann , Catalin Marinas , Eugene Syromiatnikov , Florian Weimer , "H.J. Lu" , Jann Horn , Kees Cook , =?utf-8?q?Kristina_Mart=C5=A1enko?= , Marc Zyngier , Mark Brown , Paul Elliott , Peter Zijlstra , Richard Henderson , Sudakshina Das , Szabolcs Nagy , Thomas Gleixner , Will Deacon , Yu-cheng Yu , Amit Kachhap , Vincenzo Frascino , linux-arch@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 03/12] mm: Reserve asm-generic prot flag 0x10 for arch use Date: Fri, 18 Oct 2019 18:25:36 +0100 Message-Id: <1571419545-20401-4-git-send-email-Dave.Martin@arm.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1571419545-20401-1-git-send-email-Dave.Martin@arm.com> References: <1571419545-20401-1-git-send-email-Dave.Martin@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The asm-generic mman definitions are used by a few architectures that also define an arch-specific PROT flag with value 0x10. This currently applies to sparc and powerpc, and arm64 will soon join in. To help future maintainers, document the use of this flag in the asm-generic header too. Signed-off-by: Dave Martin --- include/uapi/asm-generic/mman-common.h | 1 + 1 file changed, 1 insertion(+) -- 2.1.4 diff --git a/include/uapi/asm-generic/mman-common.h b/include/uapi/asm-generic/mman-common.h index c160a53..81442d2 100644 --- a/include/uapi/asm-generic/mman-common.h +++ b/include/uapi/asm-generic/mman-common.h @@ -11,6 +11,7 @@ #define PROT_WRITE 0x2 /* page can be written */ #define PROT_EXEC 0x4 /* page can be executed */ #define PROT_SEM 0x8 /* page may be used for atomic ops */ + /* 0x10 reserved for arch-specific use */ #define PROT_NONE 0x0 /* page can not be accessed */ #define PROT_GROWSDOWN 0x01000000 /* mprotect flag: extend change to start of growsdown vma */ #define PROT_GROWSUP 0x02000000 /* mprotect flag: extend change to end of growsup vma */