From patchwork Thu Jun 8 09:55:07 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103358 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2356629qgd; Thu, 8 Jun 2017 02:55:44 -0700 (PDT) X-Received: by 10.99.157.10 with SMTP id i10mr26045339pgd.116.1496915744165; Thu, 08 Jun 2017 02:55:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496915744; cv=none; d=google.com; s=arc-20160816; b=BB7uePgj1yHlNMPAWcg4YsTnan+YI3xHsgyyE5elGhAbkXNG4KKfyWdfWhc9gCJ/G0 Ml9z2ES2wK83tg6smtI6Qam51j6Vgoj7JmpJ58e7uUlo/l12Z7nMJG4r+M+y8xCluBy0 KlaryVLz28Wo2mLtWyRNYeCSt4p2wMe+OxkEAZrB/AQSJ1VZtoSJOsidkqF2LQ40AMVm eDnz8MIOHHTNrfqSsY0C21qPJk8ZAY5DtB9qTR61NxOF3idf4XwL1s61acvd+WuRixCB t6gYnAcl/i2fH7Fu0VK8msBbiNY1a2SiDu4/wQQ8xuHCAysoQHv1qWTzEtkfpn/sUFt+ oBbw== 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=EmcLfEzNNskz608Pj7y5x49MA8WccLaxc7run4hkTvSHwVSNYxtrZkummarcI+FBRS ecL9dx/ItR/n2JqMD9H6kpKEspY7Ccr1Su0BHEKDI46szQmz6oR4cmXstuYxadNMcEpi 1Oh5jzFzo5S+9xsLSnWIgeXhO70SlekI9E13odtgmx42mbNdyDHifUj3qtTpxi7gvs9R gM49hkcHn0HDllUQXfjDkcLQtF7N3u9EmXb1ktR992t/jwSjf5n+RndQ3YmQrc+xGgj2 DQVxJBrDMtM4ag9+ZcHvaityo/40WLCk5wu87y80/k3O5KdX6hRtdmmILzUZ0OgFWAZ7 7XFg== 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 u20si4024141pfg.24.2017.06.08.02.55.43; Thu, 08 Jun 2017 02:55:44 -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 S1751561AbdFHJzh (ORCPT + 25 others); Thu, 8 Jun 2017 05:55:37 -0400 Received: from mail-pf0-f172.google.com ([209.85.192.172]:34570 "EHLO mail-pf0-f172.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751536AbdFHJzd (ORCPT ); Thu, 8 Jun 2017 05:55:33 -0400 Received: by mail-pf0-f172.google.com with SMTP id 9so15506719pfj.1 for ; Thu, 08 Jun 2017 02:55:33 -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=QljP0Hs8BfavX0SukKy08cdXuide1RG0JsYh4aPC/0VjGvO9fNiS0YjjGP88rFmdPH A7XF2/xdJWFde0rryUvvYkSLsmaNJw9Ql7y1GbMPRwvXBTa7usml+aCVZxI2yZ+imsf2 hECLDRS6PvVIKo+OefwRhNoRTIjziZxabATTI= 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=RAC1Wii3XjWdT0LFmvt3vF33un097r4QDDLUxdwFakN5lHAB9mCCUCToDRIO4gP6Ga vmjG0V2z3dqW5UfjLCZFfQOU8q6mdywDO6eka+ehrMbO6pfi/YPPoE+w78pDfTShjpCV VNjrsnPYqc5WeKe2d/wGk3rc343yPEKCx/BO7TtN5VnzjWPINPeTjk7ISYImfPrvZ56m 76Fmm6J7Zic5ayKVjOeT0DQxy9xCUzCKI9LE60QKM2z7hrcC+VDrtoumGkopjFw2RjEm W0rGDdvMFA4hAdRk/CXLbumI0U2w/okISt//554dmrn7HRHoYcUqn9nNagyerOerSNPv RukA== X-Gm-Message-State: AODbwcCPiQE2PWS7JgQW7+3ltcSxB8SEGXKTjZIJ33u6BntNJwh58J7B DOlm6jTqhp1825ov X-Received: by 10.84.228.194 with SMTP id y2mr33308793pli.13.1496915733032; Thu, 08 Jun 2017 02:55:33 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id 6sm8880969pfh.57.2017.06.08.02.55.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 02:55:31 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH Cc: lkml , Android Kernel Team , Sami Tolvanen Subject: [PATCH 4/9] config: android-recommended: enable CONFIG_CPU_SW_DOMAIN_PAN Date: Thu, 8 Jun 2017 15:25:07 +0530 Message-Id: <1496915712-14176-5-git-send-email-amit.pundir@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1496915712-14176-1-git-send-email-amit.pundir@linaro.org> References: <1496915712-14176-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