From patchwork Thu Jun 8 12:39:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103383 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2418883qgd; Thu, 8 Jun 2017 05:41:25 -0700 (PDT) X-Received: by 10.84.224.5 with SMTP id r5mr35013510plj.267.1496925685807; Thu, 08 Jun 2017 05:41:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496925685; cv=none; d=google.com; s=arc-20160816; b=slY6bvCRC4KawzFEv6ExpKQZSr9PvzbqiGI/8/o7eLR4/qm2pIvqn+ZTGw1dYQ5RkK qQSmCpbThI23ksVfKRKjzxC9z58i5XLmmU7lx1oGAPDAMqdeUOh3rcqRKDxG88+u7muM tNFLEa2btpYNcI3MkQ1ZoFoK3mKygXGb6X27TppfslqbTJzog37rjniHfoUh+vtoHxE+ VhrPlYtG9X8yZjSZZzLVi73ZfHbpdhitFlpZmecPG9ANxxB8HgJplru2dozMQvIlr7+w Auj+xuhwJM2OC7Gk+0fJu97iZN5iHtwvQzOQmwdPzZDpCgbcYT3rGEQrlY73iUxeCnY2 bbJA== 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:dkim-signature:arc-authentication-results; bh=DcxgizKlgYPLXXdUXcBxlvOBvRuXAJHvJl645NB3K88=; b=z0CAa+EwvYIft8UEWGVxnSFW3ycA802Lih2yEKcw8y2JQYrFgHaeZiyBlswpjTay7/ eIMmjCMJmtKDWrsCX4yKgdO3VEgoHNGqP3rJEMb17XoIeJzwEhayCXeBRc21fr6/vTnM WhdixcOc6Ew5D58+rVpmC1/WV03b5OsnHPFIe7Jw4cKbcvvwbSZ/abCm40+KaK/WBcI5 NR8LbpsJZJQyfaNQTpN/Q14+2aOtsZjIPH8T2xwtqbXfjSObgDzaRwfp7PCyTS1rRwW/ moDRNGFs6sUVegHy2xIsEnBbC/5c4/j4arswaz1vsIdU0Gcp5pu3V4nDDPmJuJlbvYMZ yT9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l4si4259386pln.263.2017.06.08.05.41.25; Thu, 08 Jun 2017 05:41:25 -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=@linaro.org; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751650AbdFHMjw (ORCPT + 25 others); Thu, 8 Jun 2017 08:39:52 -0400 Received: from mail-pg0-f43.google.com ([74.125.83.43]:34021 "EHLO mail-pg0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751623AbdFHMjt (ORCPT ); Thu, 8 Jun 2017 08:39:49 -0400 Received: by mail-pg0-f43.google.com with SMTP id v18so15744345pgb.1 for ; Thu, 08 Jun 2017 05:39:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=DcxgizKlgYPLXXdUXcBxlvOBvRuXAJHvJl645NB3K88=; b=RElSbOGAMfNO9sx+Xrd5RzO7oFGjLfgn73k/G8S4NhOZ3xy2e3qA2fQfZbwTO9WDfM m/4pE1a/IF80mnysCUaJ5PeuvA0xHm++EjOU9ywQdacW074hsNjhcxiovEyj4FGAlb0c VVZ6DEOtD3fQy31BeMEb+NDtvAQDpPFvhlHqk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=DcxgizKlgYPLXXdUXcBxlvOBvRuXAJHvJl645NB3K88=; b=MvzVH/VvLGlWtmzk5XEfWEJkq+cXyqCQtRFgb8MphuCR/dIgLU6LGXT6uoFFrDF0iE NYPvnjtw6TgH0C8zRfxc86uL0xH32AkGNqhXUmdDhM2VyC+1OJgkjcTrP2+gBHCrb3im H+fSdT8yzvmJRQUUjOYzknScq6Bq6f5A4dQBTft9/8zS28k91MZfa58ya9gqGX7btRqj saeMlKVTjZOTpseyAM/S0+CGLtosYldQ+MrA7HhlDDozkqhm721ltdH3eTPOZ3JmHC5X khyvZsgP9+UZTApvyhqLOSruDiPWzXU/ezCmx1Tdyk83/nFxyjoR0VHWj/j3QHqNDq7M OGVg== X-Gm-Message-State: AODbwcCNT/qX7uWG552J0wZo5lHmoqQDsC6kf2AZAcs8vgLWlZdZkgJC LCF104VpHW9kMIu+ X-Received: by 10.98.15.29 with SMTP id x29mr29712274pfi.129.1496925584080; Thu, 08 Jun 2017 05:39:44 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id b129sm9114528pfg.102.2017.06.08.05.39.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 05:39:42 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH , John Stultz Cc: lkml , Android Kernel Team , Sami Tolvanen Subject: [PATCH v2 4/8] config: android-recommended: enable CONFIG_CPU_SW_DOMAIN_PAN Date: Thu, 8 Jun 2017 18:09:12 +0530 Message-Id: <1496925556-19417-5-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496925556-19417-1-git-send-email-amit.pundir@linaro.org> References: <1496925556-19417-1-git-send-email-amit.pundir@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sami Tolvanen Enable CPU domain PAN to ensure that normal kernel accesses are unable to access userspace addresses. Reviewed-at: https://android-review.googlesource.com/#/c/334035/ Signed-off-by: Sami Tolvanen [AmitP: cherry-picked this change from Android common kernel, updated the commit message and re-placed the CONFIG_STRICT_KERNEL_RWX config in sorted order] Signed-off-by: Amit Pundir --- kernel/configs/android-recommended.config | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/kernel/configs/android-recommended.config b/kernel/configs/android-recommended.config index a02c447769f7..946fb92418f7 100644 --- a/kernel/configs/android-recommended.config +++ b/kernel/configs/android-recommended.config @@ -14,7 +14,7 @@ CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=8192 CONFIG_CC_STACKPROTECTOR_STRONG=y CONFIG_COMPACTION=y -CONFIG_STRICT_KERNEL_RWX=y +CONFIG_CPU_SW_DOMAIN_PAN=y CONFIG_DM_CRYPT=y CONFIG_DM_UEVENT=y CONFIG_DM_VERITY=y @@ -107,6 +107,7 @@ CONFIG_SCHEDSTATS=y CONFIG_SMARTJOYPLUS_FF=y CONFIG_SND=y CONFIG_SOUND=y +CONFIG_STRICT_KERNEL_RWX=y CONFIG_SUSPEND_TIME=y CONFIG_TABLET_USB_ACECAD=y CONFIG_TABLET_USB_AIPTEK=y