From patchwork Thu Jun 8 12:39:09 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103376 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp2222447obh; Thu, 8 Jun 2017 05:39:34 -0700 (PDT) X-Received: by 10.99.160.82 with SMTP id u18mr17953641pgn.176.1496925573985; Thu, 08 Jun 2017 05:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496925573; cv=none; d=google.com; s=arc-20160816; b=dvr9RwXJ/2NM6lLptb8oFxp3EAYheWFIQVsBurPCcrdPj7c5o5HNrajtIgVovmCJYp cb0q6h/DjS4dfm9ycURSr4YDQNqvyj1D+bdfypPfHUHK4BtLlQ99cIb6OwhcXwXgIb+M jx64CnqAxznXIabZshd178cEPL5Rgrni7bMybdT9R/z3f3yfFNEd2+k0ZsvDh8kvZdGG nmC6L3dKW7Vd/FpQzTL1AK7Ddu7R7g32MKmYKFHv9nuXBn3F06NaikQfBJOmLCcPRAeV TJdn7vpz+ydHM2cFETxPh0D91L5veoEt8qFIIr3FDEXJ90OmeMPPCrP34mIF0ic8kItM azdw== 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=vKiiHm/6Isr7nECd5Y4Z7oOkWKh6oEbmAS8GfqwoMkE=; b=ejps6+qhgrOJUhLUk5pFtEt4fHEWkQfM1Y8XhcT/DK0q/1dE01Qc4jva+oGgMyACMb FI7gQtnD6mdsCah0aCoCRHGGN2jcYSrwzUWaqD0k0MLJSFd73fKVzjtr0bVqWeOV0OGt dqOLP7GfVYx1oPVOn5+ZBmyEfl7WBT/RElY2352ubT7FAVS2yLFQGZwkwtNRfIKYtWwW X7Rnun9ZR8AE02BQXmOUHpWeWBFbhVbdRY0OYpuERXVZ0KGGLykLo/jf4TESAuGhFpPy td4rfKdw85cq7PRCbwLO34+08uKRLvoFQnw44l1wIlWQctnMp6d9tMb1ZYqeAeG32AYN S7Cg== 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 i67si4309741pfj.246.2017.06.08.05.39.33; Thu, 08 Jun 2017 05:39:33 -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 S1751573AbdFHMjb (ORCPT + 25 others); Thu, 8 Jun 2017 08:39:31 -0400 Received: from mail-pg0-f48.google.com ([74.125.83.48]:33959 "EHLO mail-pg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751543AbdFHMj3 (ORCPT ); Thu, 8 Jun 2017 08:39:29 -0400 Received: by mail-pg0-f48.google.com with SMTP id v18so15742361pgb.1 for ; Thu, 08 Jun 2017 05:39:29 -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=vKiiHm/6Isr7nECd5Y4Z7oOkWKh6oEbmAS8GfqwoMkE=; b=bxgWMb2OpaUhJB3OUxH742O2N45hn10Keb2/rcrqcZotmqewkcJpz41BomUl4IOsB0 rs+6ZeEtmHK4G1iwpM1gy4lNSXxeliA3Vz6Uaxpi/i20kqgQPVmVuNxynKJyFW/FQ4hn oVyGA20TLjQ2PMyUJ+stZkcO33ulFuIbrnmoo= 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=vKiiHm/6Isr7nECd5Y4Z7oOkWKh6oEbmAS8GfqwoMkE=; b=RyjdQpDCdXjWx+7CJB1x41PpK3xuSXZ5FjpF3M3Vkmaf7heVT3ZTMtyxEDB1xIt1mX IxnhEawh0szU5txE7V+Ww+9TQRju7nHo+8Pmyyv1T4AU8i7BnUS/OEpyX9+vvQpsT8Az v33TlD8vmLyK7gDX1A+SrBj0a3ZDQ8CTO+C//SYQyXRxQGiMpPLKT7VP3O9enRdODiHj G9/fQyPpu4n3IPRdBqt6UhGQyptl6/0xsufixT8V5T7Gu+zlgqNDLlzCsVcXzXL6aSrI ODgAm9ATrPXHXt6rgmnQhaKXxqESY+w2wnOzC2DaPWKhxuW/x1a0eWqPjKmB6SkR9Av5 Mdmg== X-Gm-Message-State: AODbwcCUOxKc/wTQROCf+hi5E3cnMfk02wDqfl+Jed2hwK4esQv4Zqfe tsedWVRDp3hKIt/l X-Received: by 10.84.129.132 with SMTP id b4mr23996456plb.0.1496925568502; Thu, 08 Jun 2017 05:39:28 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id b129sm9114528pfg.102.2017.06.08.05.39.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 05:39:27 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH , John Stultz Cc: lkml , Android Kernel Team , Jeff Vander Stoep Subject: [PATCH v2 1/8] config: android-recommended: enable fstack-protector-strong Date: Thu, 8 Jun 2017 18:09:09 +0530 Message-Id: <1496925556-19417-2-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: Jeff Vander Stoep If compiler has stack protector support, set CONFIG_CC_STACKPROTECTOR_STRONG. Reviewed-at: https://android-review.googlesource.com/#/c/238388/ Signed-off-by: Jeff Vander Stoep [AmitP: cherry-picked this change from Android common kernel] Signed-off-by: Amit Pundir --- kernel/configs/android-recommended.config | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/kernel/configs/android-recommended.config b/kernel/configs/android-recommended.config index 28ee064b6744..a86faa41bfd2 100644 --- a/kernel/configs/android-recommended.config +++ b/kernel/configs/android-recommended.config @@ -11,6 +11,7 @@ CONFIG_BLK_DEV_DM=y CONFIG_BLK_DEV_LOOP=y 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_DM_CRYPT=y From patchwork Thu Jun 8 12:39:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103377 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp2222535obh; Thu, 8 Jun 2017 05:39:49 -0700 (PDT) X-Received: by 10.84.194.129 with SMTP id h1mr33476073pld.260.1496925589544; Thu, 08 Jun 2017 05:39:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496925589; cv=none; d=google.com; s=arc-20160816; b=JL5R7g8MmyDCIg031lWNox6IW3Zi9H1jg2CE9OigdpVs+0DLy7SMa4n1SGVS4P8TbP KjugIWaNWrJNvBrgd7xm7ovNyObWhUARSfllYANmR1J6rqjJr2y6Sy8gRxyWHbZJRMlG FKc01+c7UOlSLMeIA6lU5+zJ02Or4krh0sdJ/aZLZkByeEB++VUx8mXaWOnhB3KhLhY4 Rm9lrX4yTBoNz6XlRcGikIjcqhmQzf//aNtkG6ziZwE9nbnp31epW1R9nI1V1OQDDafl FRBoKtQ/cz8ZlhJ3XC1WUf8ObL/gldqZ8gLEH02ZaW0uvV1qOEcYJ1HlDWt8y39lepAF yEyA== 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=aTsbPIc0mOPjUofWaezEOb/K2RARg9IzDhUCxvGqW90=; b=Q31JfBHp2TiSnKGxoF8G6a4ZQ6rbSfgXL5A/vs5036xMJcuu/xy6PtEfaMeDKUwy76 +tVswQiGenufIvQQou596jUFPNnVpkPbSSwLqJNrNumByOW6EHxVJ54nh4+mwxvct166 gWXbFeVO6Sw6AmY3TvKxN++S4EO3bRBBKWJQz+Hd7z1PLxwvzq+cl81CnQ1FQGRGIUtu a4oafxdF9W808p/yx7QPynchUP2RmEEP7M6uc8GPzSyBkapSwG7HvopLu65LPjFIyM5c ApKRYCN7saxyHcbu8ITewpTNFRGerJnoxySPuRuC3ywnKSX+26/xmUEbpZ8+P6FEZ4Z/ kl0w== 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 f12si4369199plm.415.2017.06.08.05.39.49; Thu, 08 Jun 2017 05:39:49 -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 S1751602AbdFHMjg (ORCPT + 25 others); Thu, 8 Jun 2017 08:39:36 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:36060 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751548AbdFHMjd (ORCPT ); Thu, 8 Jun 2017 08:39:33 -0400 Received: by mail-pg0-f44.google.com with SMTP id a70so15721716pge.3 for ; Thu, 08 Jun 2017 05:39: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=aTsbPIc0mOPjUofWaezEOb/K2RARg9IzDhUCxvGqW90=; b=gVFaRtHhstOZEyfs21mOORALzVHy7SG6gTwB6w4FBmd117EzHnblLHejfvooWEN1c1 212NiZadrjdj5PAPsuURzUaItNzc/JI3Blm38xfAMp25Kf1x8W1Ay7aSzMvQFzNLC2Qu +V8yREwfiGT8YXcGqTcTwlSm+CEaJi3edDm2Y= 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=aTsbPIc0mOPjUofWaezEOb/K2RARg9IzDhUCxvGqW90=; b=V8TMeu3rnwkYPqUNVTEqdaaZ5m14jn5do/5PqeRYJrOFglBtd+bJwTL9Okg6ScRtDQ zCCWnKW8uQmiytQ4ANhJoMCsaj4Rk6EnzgrBqyywh0xnfUutitcP3kLzWEFOnUf3sZCu uP1nZTrPsMdYw/Ihujaro0ku69AGvzs8GU0Ur+N8I0z8wpOQKMKkoHGU8hQ55rbyXfim R6INwMOSE6Th+o66wGP/HrsCiyOBzg2MXff+xmP0eENkvq8HoUtMaoa7ao//YoSRZ2k5 0ZbK5D7KvuN5krc3RpN7ZhdhB+fsvg5xw7BPVykY/uyR6+l9BdV7t9OngdEgoBglKzw5 5SxQ== X-Gm-Message-State: AODbwcBGerwV2p9lnHWzGyngNMS2S4P20aMql8s/kwLDPK1nasG/oXMn HJqqm5fR9HiovNdV X-Received: by 10.84.195.1 with SMTP id i1mr33947778pld.120.1496925572744; Thu, 08 Jun 2017 05:39:32 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id b129sm9114528pfg.102.2017.06.08.05.39.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 05:39:31 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH , John Stultz Cc: lkml , Android Kernel Team , Sami Tolvanen Subject: [PATCH v2 2/8] config: android-recommended: enable CONFIG_ARM64_SW_TTBR0_PAN Date: Thu, 8 Jun 2017 18:09:10 +0530 Message-Id: <1496925556-19417-3-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 PAN emulation using TTBR0_EL1 switching. Reviewed-at: https://android-review.googlesource.com/#/c/325997/ Signed-off-by: Sami Tolvanen [AmitP: cherry-picked this change from Android common kernel and updated the commit message] Signed-off-by: Amit Pundir --- kernel/configs/android-recommended.config | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/kernel/configs/android-recommended.config b/kernel/configs/android-recommended.config index a86faa41bfd2..a02c447769f7 100644 --- a/kernel/configs/android-recommended.config +++ b/kernel/configs/android-recommended.config @@ -6,6 +6,7 @@ # CONFIG_NF_CONNTRACK_SIP is not set # CONFIG_PM_WAKELOCKS_GC is not set # CONFIG_VT is not set +CONFIG_ARM64_SW_TTBR0_PAN=y CONFIG_BACKLIGHT_LCD_SUPPORT=y CONFIG_BLK_DEV_DM=y CONFIG_BLK_DEV_LOOP=y From patchwork Thu Jun 8 12:39:11 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103382 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2418880qgd; Thu, 8 Jun 2017 05:41:25 -0700 (PDT) X-Received: by 10.84.208.102 with SMTP id f35mr31568574plh.53.1496925685252; 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=pNBGRo5OFXLRLJ8baXUghJCZ4uPjrZGUy0oZ3JPqbxpUbSYK0FJ5DszybdXmd/DMg7 V3wh6+fAf6G/cRjA8JwMzeRoXFZeUcoTaadyGWF8fkRbXbHgM5OpkKgkTXA0O4OOa/xz hXe9p1Wowh4HMRT+b9iagLd7Oa1lrFgPCBebL/mcPAZoZy541l/sMQ31eFBRxRibn/YF nun3lQ85DLDYienHl4ZGjgITJ55GRSryQ41hMSvjxXrc7rWS+rRUmYq7ZdfcIQL0XPj+ A3puAJWt+Q350JitNY2rAAJ2MZ1/+ON6aGpIZgE0XIql6hAdStwc8dPfZSE2YeDi3bRL oPQQ== 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=f5Mttj4fKw1HQhopyVII/N5ntpWerLt5XiQ6EDWS2qk=; b=fr48w/TM99WV32a1jsplU50DgI4mhgUCdhXb/lsmLPMKEM2m7gsDGLofMx+Repnq6/ 3GgRQD0sjpj/Pg/As2iXXmu9Tb4eCGmfbUaSrXTLis8Pre6ilyTlDdTnC+S5LDOg3vH0 4NcxKLtHam6a1S2XQ7y+WcxVnxPkePe85w8U6Itszn7wjE+yWL/u0Zomz+FvArg1V7wk rM6BeyetN4ilhb5HXhz3AwMNfBytwvPNfYS82HVBJqeKp7qBf2EHkJsHY+NWbbdd1TzS XWbe+FwBcXqYlQ1bMFZV/Ts1TUGIvJUOwGs23OqScl4ndiwMiduIBDiQPN1gANIGhK3M 9Xaw== 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.24; 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 S1751671AbdFHMjx (ORCPT + 25 others); Thu, 8 Jun 2017 08:39:53 -0400 Received: from mail-pf0-f176.google.com ([209.85.192.176]:35949 "EHLO mail-pf0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751624AbdFHMju (ORCPT ); Thu, 8 Jun 2017 08:39:50 -0400 Received: by mail-pf0-f176.google.com with SMTP id x63so16801544pff.3 for ; Thu, 08 Jun 2017 05:39:40 -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=f5Mttj4fKw1HQhopyVII/N5ntpWerLt5XiQ6EDWS2qk=; b=H627tcxyyDVeGAjFqjKcjQwazy/Hay83Wkn5Om3BCzGcV2APAiXf6gkwZ1foo7ERw8 U239Lh7yWLCc4hqC+OfwTGi2P9Pet6YwU2uI32jfePevgw8SUMWZng3WoySWTVf+NAKW zPMT4Zf8j0ChDN6PoiCJ2NTuorN3Wd6pInyz8= 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=f5Mttj4fKw1HQhopyVII/N5ntpWerLt5XiQ6EDWS2qk=; b=Vfp9e/hGQKJrXMp8urWaqEZ4nQGg1mV9fRgPsp9Mj9whVlbgeLSZanE17s/vOBDiNd FqVOlzyMORQXPkUSPaxcdx4UOHmOH6YrvTs3sjOsE4B5aAClcHO2/KkqL5/yFyRiCsgM 3FykAdAZfMJJjpaH6Ma90oQ7N7LYLHcixHZhy2ByYzxWbN58yMq5NzVJNzx6K0uwGbLs 28obiXhdJSMZs8mg2IBaajxeUjyEHZ8bN/tq+Pi7/pVrlgTdMVRfSugHK/bZlAR89l9B h0cha2FAnaXr7YfDsGUY6KIHDYvtYqQShC33LhsSG3OlyKLQk4TUKzeRUuc1RA+u9W+S wrRA== X-Gm-Message-State: AODbwcD6JKO1C0q6tK5p+X48NFH8ybsbmAKoAVUE4xito5q1kJkKx3c/ SrptKIgsqbKZtS3U X-Received: by 10.84.134.164 with SMTP id 33mr34243226plh.220.1496925580061; Thu, 08 Jun 2017 05:39:40 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id b129sm9114528pfg.102.2017.06.08.05.39.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 05:39:38 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH , John Stultz Cc: lkml , Android Kernel Team , Max Shi Subject: [PATCH v2 3/8] config: android-base: disable CONFIG_USELIB and CONFIG_FHANDLE Date: Thu, 8 Jun 2017 18:09:11 +0530 Message-Id: <1496925556-19417-4-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: Max Shi Turn off the two kernel configs to disable related system ABI. Reviewed-at: https://android-review.googlesource.com/#/c/264976/ Signed-off-by: Max Shi [AmitP: cherry-picked this change from Android common kernel] Signed-off-by: Amit Pundir --- kernel/configs/android-base.config | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index 26a06e09a5bd..efe5ff86767e 100644 --- a/kernel/configs/android-base.config +++ b/kernel/configs/android-base.config @@ -1,10 +1,12 @@ # KEEP ALPHABETICALLY SORTED # CONFIG_DEVKMEM is not set # CONFIG_DEVMEM is not set +# CONFIG_FHANDLE is not set # CONFIG_INET_LRO is not set # CONFIG_MODULES is not set # CONFIG_OABI_COMPAT is not set # CONFIG_SYSVIPC is not set +# CONFIG_USELIB is not set CONFIG_ANDROID=y CONFIG_ANDROID_BINDER_IPC=y CONFIG_ANDROID_LOW_MEMORY_KILLER=y 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 From patchwork Thu Jun 8 12:39:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103378 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp2222655obh; Thu, 8 Jun 2017 05:40:07 -0700 (PDT) X-Received: by 10.99.104.199 with SMTP id d190mr38327837pgc.185.1496925607717; Thu, 08 Jun 2017 05:40:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496925607; cv=none; d=google.com; s=arc-20160816; b=wM+y3R1zoXw9JWpH9BQDRhtb/OlTla8UaQZ4o25H+y8N63s1zWG5mq+9KzhBUwZR1j kFfTOLOnWI+3elpi8/Scmfdba0peuiQKgCCklOOFKnuWt4Y30xLVDdwnM03A4l1eqisw 5bDiJof2ylMmld3m9iKmCDxJ0DBJupcn/qVFLIfwWa3+hrpsd/UfG+/CQjkN1QZ0oLvM QfnrxYOPkymfigQM0pPyQGvi2bdsYq1LKtIWXoJsqUSLhhHwkAL36JIivDmhgAM152G/ U5xr8glXddo5947tG1Us3mZZFMrZKRwNsS0scd7xMZ0TQjutnshJAbs5UhJByG0+O8Ow QZPw== 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=EYQwK4Z0t1+D43tX+tNe/TGvH7jXLV54a5pjWFP1L+4=; b=lQFzSuJICGf/TbPieZTSwDuiCrqinYqMBCvdllNvS/Y7sQyIUReTxYW8R6qunX0zql hK5iZAnWNq/xFBNTg1RuGK+Q9J7DKvZuLbgmQ3uWx1VorgsKbKW7OvLjaqjZXgzMuW9S +l+00aNuadYUtxPwaNx5zWSKgw5fbeWFDuki3M2X6KnT6xJFFvF/C5JLr19rGPGkK2qk gVgZmvOaxWQEhvLfcLmpUsO3ZPee1dLmLwAnuRpjIb0RxnJHz+5xtb93jnDbBRnRhuOD yvZpgMynpUIPXeIgIXLHXCWZ9TpNZc8BEF8xo9eeXy8YK5Ua6UTKYKDslqysVEDo7PK1 sO+Q== 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 u59si4195119plb.175.2017.06.08.05.40.07; Thu, 08 Jun 2017 05:40:07 -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 S1751694AbdFHMjz (ORCPT + 25 others); Thu, 8 Jun 2017 08:39:55 -0400 Received: from mail-pg0-f54.google.com ([74.125.83.54]:34037 "EHLO mail-pg0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751620AbdFHMjt (ORCPT ); Thu, 8 Jun 2017 08:39:49 -0400 Received: by mail-pg0-f54.google.com with SMTP id v18so15744899pgb.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=EYQwK4Z0t1+D43tX+tNe/TGvH7jXLV54a5pjWFP1L+4=; b=JaeYScWpXZ7dL9zwdqDO7YQcoeRYQTZnbr8cNebWktnL1BYCwJeeJofYnaHOl8rJP6 mO57NSnjajvb1l1suouzXOhKNCNDJwYx37wySDoJw5m9sH3mnhjzSqKioA9DKBd34NpK 8xTi/3c95uFmMqJ5HiEvve5C7fuzomcxpqGew= 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=EYQwK4Z0t1+D43tX+tNe/TGvH7jXLV54a5pjWFP1L+4=; b=d4J0y9XF5PCeinn9y5A43SwYzfA9GdAthJIw129JR9d/VtLuun5E4Fmwl5UaBSmZ1R ogqIO4E7E5WSZCqWds/Bqv9+GiKcO0MhMnGwB211xfTJknKltIl/R6+oxv8h5hymo/un PKS1MCxACCvxt7vvOWc4XQeA+qWblKAQQADvGXnptXYcr2HhI3FEwP/mLlOhQ1YdJf9E HZJeyaCsC2t6yJNMTzvQLvMnq/GkZvxnV2Q/3XVlLHgahzPDxSjiEIoLY0vh0bqq1vsw NWJSett9Ydz2m2NuVoCcsqkbNroO7YFb+5Ai5rt6fUYCM9BgVvFGZHgtJWlBQFU+5YP/ 8m2w== X-Gm-Message-State: AODbwcAXPycga9Nr1JPFGw4PlccpyS5dBgPxhDXTmY7OUB2m3Kjw0AdV hP0e2wal6PDzaTpc X-Received: by 10.98.138.16 with SMTP id y16mr23733389pfd.131.1496925588846; Thu, 08 Jun 2017 05:39:48 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id b129sm9114528pfg.102.2017.06.08.05.39.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 05:39:47 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH , John Stultz Cc: lkml , Android Kernel Team , Greg Kroah-Hartman Subject: [PATCH v2 5/8] config: android-base: add CONFIG_IKCONFIG option Date: Thu, 8 Jun 2017 18:09:13 +0530 Message-Id: <1496925556-19417-6-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: Greg Kroah-Hartman This adds CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC options, which are a requirement for the O release. Reviewed-at: https://android-review.googlesource.com/#/c/364553/ Signed-off-by: Greg Kroah-Hartman [AmitP: cherry-picked this change from Android common kernel] Signed-off-by: Amit Pundir --- kernel/configs/android-base.config | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index efe5ff86767e..e12cfec25758 100644 --- a/kernel/configs/android-base.config +++ b/kernel/configs/android-base.config @@ -25,6 +25,8 @@ CONFIG_EMBEDDED=y CONFIG_FB=y CONFIG_HARDENED_USERCOPY=y CONFIG_HIGH_RES_TIMERS=y +CONFIG_IKCONFIG=y +CONFIG_IKCONFIG_PROC=y CONFIG_INET6_AH=y CONFIG_INET6_ESP=y CONFIG_INET6_IPCOMP=y From patchwork Thu Jun 8 12:39:14 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103381 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2418770qgd; Thu, 8 Jun 2017 05:41:08 -0700 (PDT) X-Received: by 10.84.224.76 with SMTP id a12mr33894416plt.25.1496925668601; Thu, 08 Jun 2017 05:41:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496925668; cv=none; d=google.com; s=arc-20160816; b=k8CE4mxKG96SZBlO4i2mFsvSUvCy7hZ/uEfUTpdi5b/jaiLKnqYNohNKK/y3WcjJDq /s4vDC58PbEXFlVjd8L2+I6c3nuPNy6PfO4Rqh4rvW7xucwTqkQ0bwmLUtIAPYgG+Urk VdpYlA8TMMUWG8TsVnK3YKP9Egt9J/DBOqQwZp1tOwWGZ0E5kM0fl6+pnP7hXoB3DBRO Utue3CRTAXkT/3hLas2okbIeY8KLbBL/B8lDg23OjHmlC/HY6a+ZupN/XiQx+noSMpL5 1JqRDEiIygMoFolRyRo2ZrddGaJ/eroBVw2hh7J0nQgU5l2RXQdi2hqitOE3yTd65B3H MY2Q== 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=NQ7efEbDWPlAABTd37kwYhz5DA11wSahvMquDIJzLVY=; b=cY7N09MsS2DjjFlwVHNS2fHfYgBnb8bmTDzD6MT6xBiAhgGYjYXtac9+Lr7WFmsZMx p05U0AD4MnPVsKgofPGeXWmgc63o+4ysQgxagYcg8ePGNFzq8UbDsWpgRiLpKq+vRLJd ltOqS5eGHFUXK7WgNj/0PQEeW9Q4DZXqw/eqxklaD/o0zv82nRkp7CcQEZ2BlDLJo32S depm+Kx5D+fC2jVxVfDoJRibhC7aF/2r9hn/frRrzKI7ZmElAyVUyWOHVUm4sDGdZWIf 9dISlp3WUw33vK21F0QvYekDkmJzmtQvkLRVsMdo96Pcpc0VSb5puINNKDjDZgGqiY5X 9bFw== 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 a6si4318066pfb.310.2017.06.08.05.41.08; Thu, 08 Jun 2017 05:41:08 -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 S1751717AbdFHMkA (ORCPT + 25 others); Thu, 8 Jun 2017 08:40:00 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33193 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751697AbdFHMj6 (ORCPT ); Thu, 8 Jun 2017 08:39:58 -0400 Received: by mail-pf0-f182.google.com with SMTP id 83so16849777pfr.0 for ; Thu, 08 Jun 2017 05:39:58 -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=NQ7efEbDWPlAABTd37kwYhz5DA11wSahvMquDIJzLVY=; b=j2XllJXxGZhscM1aRrSLZxKuSEGXLKEvwAejYpP9AeV3O6Yhl0aWb+2ezIM50ykXn5 0IDiKynefrz2CVq0r78//Wc4SKw2ELhVmTBHNC1j2PAoYwPHZ7d9JqRkqk4g6vcMUmRZ vqotm7mFbbVnCwrYybNDSll/YDmMwnaCsTH84= 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=NQ7efEbDWPlAABTd37kwYhz5DA11wSahvMquDIJzLVY=; b=EUdABO01SudCCnD4FDOkOnAaZa3kiepiwQfh1bmS9UQ2GbeBZya7lihfyKZXHtxYo5 LGNrdfsNB4wxtfUeUMlZnF3O6hMFK8feAlZM9BpH4k5cXkFPEj32oYOrpkPfWBbuDF1l bBq+U2IrnpGRk9d8F5GSgHmsXplbe/vhKSqSvFPa1SNMgaStGGBfSLlH3/JFDbgRNsh6 pyhLfoKDLTkZuVuFYcacGhWjvkWkCjywYaG8ybePXt/3xtV9tOQQy4mpkp7oYPwMoWUU 8I+2dmIOhXCLPz3cGEFF+PgZHm55CH4e5F1TER8fcwNYuGvoXv6Fl85jiKX37+efxAJ7 V3Mg== X-Gm-Message-State: AODbwcBAONdNcvLiFlsAaP2ZSERTCYNcBcjLQuGrXHvSjTZeLV0k36N0 XwvsUxP1Q8YGzlpJ X-Received: by 10.99.96.81 with SMTP id u78mr31397819pgb.101.1496925593063; Thu, 08 Jun 2017 05:39:53 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id b129sm9114528pfg.102.2017.06.08.05.39.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 05:39:52 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH , John Stultz Cc: lkml , Android Kernel Team , Greg Kroah-Hartman Subject: [PATCH v2 6/8] config: android-base: add CONFIG_MODULES option Date: Thu, 8 Jun 2017 18:09:14 +0530 Message-Id: <1496925556-19417-7-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: Greg Kroah-Hartman This adds CONFIG_MODULES, CONFIG_MODULE_UNLOAD, and CONFIG_MODVERSIONS which are required by the O release. Reviewed-at: https://android-review.googlesource.com/#/c/364554/ Signed-off-by: Greg Kroah-Hartman [AmitP: cherry-picked this change from Android common kernel] Signed-off-by: Amit Pundir --- kernel/configs/android-base.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) -- 2.7.4 diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index e12cfec25758..62cb392fc34b 100644 --- a/kernel/configs/android-base.config +++ b/kernel/configs/android-base.config @@ -3,7 +3,6 @@ # CONFIG_DEVMEM is not set # CONFIG_FHANDLE is not set # CONFIG_INET_LRO is not set -# CONFIG_MODULES is not set # CONFIG_OABI_COMPAT is not set # CONFIG_SYSVIPC is not set # CONFIG_USELIB is not set @@ -64,6 +63,9 @@ CONFIG_IP_NF_TARGET_MASQUERADE=y CONFIG_IP_NF_TARGET_NETMAP=y CONFIG_IP_NF_TARGET_REDIRECT=y CONFIG_IP_NF_TARGET_REJECT=y +CONFIG_MODULES=y +CONFIG_MODULE_UNLOAD=y +CONFIG_MODVERSIONS=y CONFIG_NET=y CONFIG_NETDEVICES=y CONFIG_NETFILTER=y From patchwork Thu Jun 8 12:39:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103379 Delivered-To: patch@linaro.org Received: by 10.182.29.35 with SMTP id g3csp2222672obh; Thu, 8 Jun 2017 05:40:09 -0700 (PDT) X-Received: by 10.98.157.204 with SMTP id a73mr32768921pfk.235.1496925609661; Thu, 08 Jun 2017 05:40:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496925609; cv=none; d=google.com; s=arc-20160816; b=XY0A5SZwu4nt787dFc68OGtYr8u9rGvs2kczmOp23ABhYsfRaTVoYphivJGd0wPbl1 +NZCAaqIfmDe+Uq3AhhKSCrmqproY29eu5+O3DvVqP+QiJM/ptYdAKguLj/kmvoZekJR 20l7gv3OabUHVtbSXkMj6XycjF7jHFR0lCp5EH3/eaQCau++1CEFAInZqxk5ayg5oqMG QdoUgEtZm27vEYTj7NilO/Sc8xCk30P1+ABMZPbMzYj3zAslXYqgvvYwkXP7gkMiGy87 nu9JCcLKZGeVDqeWiOSE1H0cT99IBOdhOawaa7JAZ44ws0pjj+JpaEh2PNlMdWFWYhls yhFQ== 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=MpHZ9X0UQh+SNcxDEbHDfaQLOfTq0rELSgNQ//BI/ww=; b=d2ml2KTLgdScgmHAWTSvbdzAdmdADsrhwsJmfUlC0LoA77dkRLXzS4kSuoyLtcCytn 44ydeqjec4ITA5GL1sArBApzmKjXhur0fiPwJCSQQHGB1s2aZo0opUTOlkEUzywMUz4+ WQlyrRkD5p97AEkFDgpM3HEsa3qnhNagRB4UbFFoN0xerAPAIWJGcTXYI7Nq6vM/ID23 xtGt8+qDHJtf/drWYZrkOAbFU8qSMQygi3Bsc5pzEjx4kniVT6pP71SSJ75zzQSPjGMW A0viFSVGQUd8y9EOHhnuPtPqdr4twpGteUdtkoGZ8WidIjbyr5J0h7aZcDANXBNAGohL XRlw== 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 u59si4195119plb.175.2017.06.08.05.40.07; Thu, 08 Jun 2017 05:40:09 -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 S1751734AbdFHMkB (ORCPT + 25 others); Thu, 8 Jun 2017 08:40:01 -0400 Received: from mail-pg0-f51.google.com ([74.125.83.51]:35010 "EHLO mail-pg0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751502AbdFHMj7 (ORCPT ); Thu, 8 Jun 2017 08:39:59 -0400 Received: by mail-pg0-f51.google.com with SMTP id k71so15744756pgd.2 for ; Thu, 08 Jun 2017 05:39:58 -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=MpHZ9X0UQh+SNcxDEbHDfaQLOfTq0rELSgNQ//BI/ww=; b=asEdxZt+/DxqWzROzpCFIljJ0FoP9a0T7JF3N75F2dqlnXgpVAVjbEPehysItDqHzV S450u3W4glanIeM2HQGFkVtCPjbyjCKZnS9oYO02h2esRp3f6AUhws55Oa1gWqBBnrsU kyNBTrR/p9Bqg8Vr74oDf1+O3sGBHI95sjINo= 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=MpHZ9X0UQh+SNcxDEbHDfaQLOfTq0rELSgNQ//BI/ww=; b=JOTG4aK8KAKzjs7Cb9rx81wcdFSXaCxkSELvvCKaeXNsbMwKZSA/vq/AOhSfIIQABk 9Fc3y6FdLN6tO6FAzb/fFiy1RAxeRXZDmyZOr+9dhcFbpploKAmGutbmla+TGRIVwyKn yfCla//cFlcPhkkwYbYPx/mifZzHxvHCIBdoOJlcMYRxneER16J1JH7I4uJDbyH5ZAMr cQZ7NGsm+d2LJJsTLKBAu6VW3BCORofAF0QZ27NH6CfokRTqdaXm4F9WnwvQp8SeF+jM VxLC5NT8kkVbxacyz/QGCJ+KFZ7JehpQ+UzAnXrisTm9+lkP05JgZPeAjsbISHfmUoac s9GA== X-Gm-Message-State: AODbwcBQYX419XD6UjwvC0a7kxJm3fv/uEjsPabTCNlGcjnDY1L2KjaL 9y1F71+wQ7L93Bdc X-Received: by 10.98.41.130 with SMTP id p124mr33073551pfp.220.1496925598498; Thu, 08 Jun 2017 05:39:58 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id b129sm9114528pfg.102.2017.06.08.05.39.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 05:39:57 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH , John Stultz Cc: lkml , Android Kernel Team , Chenbo Feng Subject: [PATCH v2 7/8] config: android-base: add CGROUP_BPF Date: Thu, 8 Jun 2017 18:09:15 +0530 Message-Id: <1496925556-19417-8-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: Chenbo Feng Add CONFIG_CGROUP_BPF as a default configuration in android base config since it is used to replace XT_QTAGUID in future. Reviewed-at: https://android-review.googlesource.com/#/c/400374/ Signed-off-by: Chenbo Feng [AmitP: cherry-picked this change from Android common kernel] Signed-off-by: Amit Pundir --- kernel/configs/android-base.config | 1 + 1 file changed, 1 insertion(+) -- 2.7.4 diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index 62cb392fc34b..cdde5af6b332 100644 --- a/kernel/configs/android-base.config +++ b/kernel/configs/android-base.config @@ -14,6 +14,7 @@ CONFIG_ASHMEM=y CONFIG_AUDIT=y CONFIG_BLK_DEV_INITRD=y CONFIG_CGROUPS=y +CONFIG_CGROUP_BPF=y CONFIG_CGROUP_CPUACCT=y CONFIG_CGROUP_DEBUG=y CONFIG_CGROUP_FREEZER=y From patchwork Thu Jun 8 12:39:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103380 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2418608qgd; Thu, 8 Jun 2017 05:40:43 -0700 (PDT) X-Received: by 10.84.176.131 with SMTP id v3mr35116348plb.138.1496925643368; Thu, 08 Jun 2017 05:40:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496925643; cv=none; d=google.com; s=arc-20160816; b=Ev8hWmYksJOVNfrXOCwp6bgagqTPlMg52rX0JURttgeh6UdwSHxfCOF8hyAGoOAH6c 0jE3GnfE/uniyzxzJ6rKluuG5YwjA3a2WUvuE8xlJbqgFaR5+Fj7Eq56WRqp2Ctzeqc7 BOvNU3Xe1LO3GcgnqrgOBZd6aKd3X0gsHi57lQFKRKcRQt8i/OM/jiUi/wQP/w3mlwxZ HuHwoCb/GODDYP5YABO8tZ/Nr5rNSU3oU0e25tUkBsvSKXhvEDM1ADZJncF4RA9oLh4r XofjN2W4PYEukJUpqXDAaTliGHDhNpKWjKvrdXojEMcQuDoZ2RSi/W4MKQIDj+/pP23o uRhg== 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=J3dDiVmHTB6QEQfs/faMR8MqYbmF4q/dV8BVpExbQ1w=; b=HMc2BmSGwjHGteS2UHi0Q2dUj4NqtxBwiFBeo+EqT650TluT95hZwFAdJ6zJ/NNGfV NBoKz0CgBRM/Ab1/tQtfUaiB2FVFVs3de9bV1sJ28Mps7bMJF06bjK+0RrfpGo1pbzuA /2hMFhROg6tQ2czsqmiGL1tEXhtvfCcAlqJFLgB1bduxmvbBbjQsZbug4ubBNgZe4nTj 0dVApDZ+i43UJDRZKghhMSVTHzG0LmTYyhvxyxJYVg9w9FjPj3yt7BhJpu0UgKfQ/ktD yRX8R5H0aJwh475X/uKafmSELZO1FzcDrmYa5nLbfwvhaTO0PsJTqY+wsgApWQhgX5PI jouA== 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 v81si4017201pgb.328.2017.06.08.05.40.43; Thu, 08 Jun 2017 05:40:43 -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 S1751761AbdFHMkK (ORCPT + 25 others); Thu, 8 Jun 2017 08:40:10 -0400 Received: from mail-pg0-f42.google.com ([74.125.83.42]:33621 "EHLO mail-pg0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751741AbdFHMkI (ORCPT ); Thu, 8 Jun 2017 08:40:08 -0400 Received: by mail-pg0-f42.google.com with SMTP id f185so15760597pgc.0 for ; Thu, 08 Jun 2017 05:40:08 -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=J3dDiVmHTB6QEQfs/faMR8MqYbmF4q/dV8BVpExbQ1w=; b=NBBTv+Wb7f3d+Wty8Gw7OlST1NemRj2zt4MMumvEogn0waxxJ0J+GCtMDUxcoUmZPS r3e77dv6J6zzqEENyq6T9dHZCtZfcMmzl/k3BJ80gfxTHcfOwvqEwLiyy3tuguPt5WSm WT1gwRqrrJwXKQswD6cpTQSt/jeOsLZoXXl94= 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=J3dDiVmHTB6QEQfs/faMR8MqYbmF4q/dV8BVpExbQ1w=; b=gZBO4akzsMJiC0+QDX4EBjGdc3aLFeE0YrC9KWwG6XLFkTWIWBDjsUImO/RWH8bdKf ongYQeOUXxHQYMxf0PZq0Xj0dyDV5as1WPYndgez68Gyvs5wiOfeuMb4YeEXb4TIS/1m 2JhIZlbTVCV4PnkWj5grGp9aYVvLN5Eo35l+6O5VncmIg5EFyMRjiOy1HKyppSZxH0fh tBm04h5t8gAYc1z+HFAKayE4BMaUgneOarE16HphHuWQvtbJEvZR7CO6SMHRu6NY0pXM Lg7HBX9otcZ0qhrroJC2nIVdhCucasyK23/nkPS69Virfo0DX04X+17S13OPij80Wkxr 6oow== X-Gm-Message-State: AODbwcDRSYLynNHweWvausOaSHGINeqxSH+Bp4DQ0HzC/VUlovFNdEy/ pFlWp7dAgCxwB2Oj X-Received: by 10.84.133.3 with SMTP id 3mr34311000plf.283.1496925602547; Thu, 08 Jun 2017 05:40:02 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id b129sm9114528pfg.102.2017.06.08.05.39.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 05:40:01 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH , John Stultz Cc: lkml , Android Kernel Team , Roberto Pereira Subject: [PATCH v2 8/8] config: android-base: disable CONFIG_NFSD and CONFIG_NFS_FS Date: Thu, 8 Jun 2017 18:09:16 +0530 Message-Id: <1496925556-19417-9-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: Roberto Pereira Disable Network file system support. Reviewed-at: https://android-review.googlesource.com/#/c/409559/ Signed-off-by: Roberto Pereira [AmitP: cherry-picked this change from Android common kernel and updated commit message] Signed-off-by: Amit Pundir --- kernel/configs/android-base.config | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 diff --git a/kernel/configs/android-base.config b/kernel/configs/android-base.config index cdde5af6b332..d70829033bb7 100644 --- a/kernel/configs/android-base.config +++ b/kernel/configs/android-base.config @@ -3,6 +3,8 @@ # CONFIG_DEVMEM is not set # CONFIG_FHANDLE is not set # CONFIG_INET_LRO is not set +# CONFIG_NFSD is not set +# CONFIG_NFS_FS is not set # CONFIG_OABI_COMPAT is not set # CONFIG_SYSVIPC is not set # CONFIG_USELIB is not set