From patchwork Thu Jun 8 09:55:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Pundir X-Patchwork-Id: 103356 Delivered-To: patch@linaro.org Received: by 10.140.91.77 with SMTP id y71csp2356555qgd; Thu, 8 Jun 2017 02:55:31 -0700 (PDT) X-Received: by 10.101.86.76 with SMTP id m12mr20172061pgs.137.1496915731197; Thu, 08 Jun 2017 02:55:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1496915731; cv=none; d=google.com; s=arc-20160816; b=Sw1bU6b0T4JEKkOCFkdXtXwodpMC6RX5/hYFsT+e+brjrtgLxOQz7tx2Faf52oU4bf 5Q6TpGPN0sDfSQvRQrE4u+A8RP8vkGqaxVd/NoNtyP5CzN3ZgZ+oa8OLiOLlq+YYqpsj MGNQ8oqlQ9C5PpkTOU9ySay8Vx5s3LzorsVB+AkiPtT+PFZwJvyLACb4J7ZOlzrqn0C7 FJQXUVBWK78/SVPIgMX/JmAd0jGv9P01KmzqGTFoXRfpcUGskmNf5rQ3Q9pV6JAIOwfZ 6qDPnzay65Brlwb8fQQZT/Ypeop5jh2MVG4Nt7wI7P4YFJ0KKpSQBa5p4/KhPNRud6rj X1CA== 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=Sd0Xz2DBZOFXl5EoLVUfsgHbwXtgHU7Wz/51J/I2HkpEQFQ+Szwhidv4fNinJeW1c8 KzuRRb4g9wSmP3gjaCjuMesQROfktt3Oz8iNIn00T+DacKnFOmnIsmSIGWGQHPrFgdGo 7LjBPcxpdYzRQ2Qdv3KDYHBjhefnRwz8+EVV0xsGzn4RlroKbbIsnztPmPCLnZ40HNEt sraDqWhjqFYIIoekev28FjFobjwshanjWcQcSCcGkE7d0HnH6AlSAioWtQ+HzUxEo+yx H+moUumsYXzALXCshitM7lsYhMfw1BhaS8ejNopV3wCxgKTufmjWN/6pvf2tO3OKCH1Y L6rw== 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 k185si3911787pgd.70.2017.06.08.02.55.30; Thu, 08 Jun 2017 02:55:31 -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 S1751512AbdFHJzZ (ORCPT + 25 others); Thu, 8 Jun 2017 05:55:25 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:35297 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751475AbdFHJzW (ORCPT ); Thu, 8 Jun 2017 05:55:22 -0400 Received: by mail-pg0-f44.google.com with SMTP id k71so14497443pgd.2 for ; Thu, 08 Jun 2017 02:55:22 -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=fsvrQOGymX3iFm1gS4R9SmHb0tZ8awQnjDmZ5E3RlJ3Tyz43bS8m+8k5I8ZujkRiVF 0Mjbz56tz6h3lSyTOtsfStiIgb+Y9z5JwebVFS1AsQnLMAoDtPBddogFGQjM6lUvym9O 7gjbocQzv9wqr6VlWTFl5OdoMu7fRiXnev6cY= 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=mm1AyKxwGnTvyiVx20RecshAf1hwr+A7vsa05TCdcXcAiNrJGyVPcVcKAvTyk6crYu GfwSH70jEHReXmXQ+JGHoC8Scslz+ZKsZHrBirrqjW8tGXvt+0GaFTmNSqTsooql4h2m 8lnwI2OLGOcR5BKJFqFqom0KStG5gDEMZRl3yIEgHEmgB3WDu2j1yyXp8vJ8fl4Yv197 yFuJtfLxkNzWLMeYAjX8WYqT+eTYgKqP8qbX6nAM9bcE9LOMPogAs3vHUcKa3xwFis6A Oi+RmgonwtPsqcHFkoVZoqkg6KhssxnO+XkDaX2o4JUWwDKMG5F0e2QORSyOUhKNpwPE QRKQ== X-Gm-Message-State: AODbwcCFDE7Y0m7X24F4BTM3dmGRe+RzjZxqxwCTRFAKUr0zc25dA/fl s2fBFDNVfpd6HHL4 X-Received: by 10.84.232.3 with SMTP id h3mr33256333plk.42.1496915721716; Thu, 08 Jun 2017 02:55:21 -0700 (PDT) Received: from localhost.localdomain ([106.51.140.154]) by smtp.gmail.com with ESMTPSA id 6sm8880969pfh.57.2017.06.08.02.55.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 08 Jun 2017 02:55:20 -0700 (PDT) From: Amit Pundir To: Andrew Morton , Rob Herring , Greg KH Cc: lkml , Android Kernel Team , Jeff Vander Stoep Subject: [PATCH 1/9] config: android-recommended: enable fstack-protector-strong Date: Thu, 8 Jun 2017 15:25:04 +0530 Message-Id: <1496915712-14176-2-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: 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