From patchwork Mon Jun 24 17:58:50 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Desaulniers X-Patchwork-Id: 167634 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp4517979ilk; Mon, 24 Jun 2019 10:59:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUkuF92vCbLnS2ITMu3MClJeLfUeR0vBv39ooK5hBKMJ8r+fqPCSjdV2oqGkOTwGKeYMnv X-Received: by 2002:a17:90a:3270:: with SMTP id k103mr25233859pjb.54.1561399148141; Mon, 24 Jun 2019 10:59:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561399148; cv=none; d=google.com; s=arc-20160816; b=w28DpyNzxB2TwPnCw6StyNYRfkmq0wQCZi5uw33vrqJ4OcIgI55qz1oHgQTzg++fUm zvyYrkOUkyczh3W3UNOYgj5Mq1wk0M27W8WEslz7zdS+SpU2hC0xIwMUUq6fs5BHAHBN TXPYdBevEQPS6655bU+Zfs45sF4qeJdNBlX8+DxYJyxYarFeX/f1S8HS9Yb9Irk3BzEZ GRKAqnp1Yu4B8uNFDn0Wk7OQwyI4TmtsE0k+ljrZ/iqTUZ8gGPbTMtOvfwrIjHTb0eN2 UOfpmOYARiBRbepP9DBgjozimEdBJifusivfEMsfhErdWer5r5ASE4idyB0zELSRdrYE xHXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature; bh=6TEQbk/zbfOFf1CWrQQmcJadlQEFi4113uyVs78HH9w=; b=PP3x1xhj/dkB4FQpM4jS5R0EYg4ks8WTM2tX3KqNFF2OPeV7EGsWVL2ft2tr7B5OMN 3/PQtcUPv/s7TriRT854Uwy12QSWzq6Yr3S7DY5tSMBbjhVDOdiVGxtEHwjvOjzUebQo 6HWTEnbuXADQny/5gIrM0dv9EjOMUbbcAYL1lfduzf4fX2A7bdkwCFo22ZitmYydLCLF ydC3PTzmcP917mbF+OxcbqngWjWc8K9XajP5pFKBv5+FuiytN/tGH1gVfIgbbVARKnd8 P9wdHZY2jcpvZK7LF0uBypyaoEavqDAdrZkaGGOr/vRjUzGEw5LCi3n71CQlcYFYPiZO 1Nbg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=De9s5wBK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q191si9255517pfq.63.2019.06.24.10.59.07; Mon, 24 Jun 2019 10:59: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=@google.com header.s=20161025 header.b=De9s5wBK; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732682AbfFXR7G (ORCPT + 30 others); Mon, 24 Jun 2019 13:59:06 -0400 Received: from mail-vs1-f74.google.com ([209.85.217.74]:33157 "EHLO mail-vs1-f74.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726331AbfFXR7G (ORCPT ); Mon, 24 Jun 2019 13:59:06 -0400 Received: by mail-vs1-f74.google.com with SMTP id x140so4148444vsc.0 for ; Mon, 24 Jun 2019 10:59:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=6TEQbk/zbfOFf1CWrQQmcJadlQEFi4113uyVs78HH9w=; b=De9s5wBKaGKkuPG0lVsLPimGxgSJl59lxtDRzxPVUTeAawreGLYCxd/zmaM/gOuXva P/HrZpBqMiuzokHtcC7CWJjceyfstrfIeqRjWphgd4dg1KLZ8EBaXYj80VpMcEQ2VncW un6dkSZjt8nn++btFG4v8XlWrDSu64LTyToOghteAYoaglbbu8z8wpWhGXJp4/wTJ32M /l6KA0w2wrWU6dLuLnkN9+THJwP4XVb/tmgZqwVBzn+2wcB3rHlz7XSoQMpYBsD7l8Ou nS3WT38wwAbOTzjzKLyHo7KJ6Cxg0LcY0UgCTRmgpBP8opgNkoy/Vq1S+NI/jS+AQZfD YwfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=6TEQbk/zbfOFf1CWrQQmcJadlQEFi4113uyVs78HH9w=; b=syk0C/TC645JIX1l2oJNg/I7wzRh+D80lqTwIzYpT87xzsIyuL8hxYreGke05LyP/9 SnsPJkqclVg0KqWIkR4uMJaegT/lB32ctNC2EnWnH2niHj7ZWkcnTipWpHsqibYRT0b8 3ORYcLRU4RRv9ApjnaczaTW2ht2v8CUizsQwyaAhSnNfNKYOqP6dsVdt611CewkWavyf A9FrfSpG+CHWXqgNxNvo+7hlETTpm2CBc6+Ee7XQ7PCZlMIbCb4Q4tI7LZv/5f6DjJLj cESWQIpt9DUaTJ07OEvv3PLHshSSGrUdce04ZzyEzk8aoJwhC4sfAAG0yuikSZXzFP6z 21gw== X-Gm-Message-State: APjAAAXlUdk0sN350+UaColQnkAl/f0SyWC97hNxbmSmFaJy4OI1/Lbc f2M/jgR3auOqggMw28leyJ0RKRzrKvr4z3amOZg= X-Received: by 2002:a1f:728b:: with SMTP id n133mr18841620vkc.84.1561399144841; Mon, 24 Jun 2019 10:59:04 -0700 (PDT) Date: Mon, 24 Jun 2019 10:58:50 -0700 In-Reply-To: <20190624095749.wasjfrgcda7ygdr5@willie-the-truck> Message-Id: <20190624175852.46560-1-ndesaulniers@google.com> Mime-Version: 1.0 References: <20190624095749.wasjfrgcda7ygdr5@willie-the-truck> X-Mailer: git-send-email 2.22.0.410.gd8fdbe21b5-goog Subject: [PATCH v2] arm64: defconfig: enable CONFIG_RANDOMIZE_BASE From: Nick Desaulniers To: catalin.marinas@arm.com, will.deacon@arm.com Cc: ard.biesheuvel@linaro.org, broonie@kernel.org, mark.rutland@arm.com, keescook@google.com, samitolvanen@google.com, jeffv@google.com, shawnguo@kernel.org, Nick Desaulniers , Will Deacon , Kees Cook , Arnd Bergmann , Olof Johansson , Maxime Ripard , Jagan Teki , Andy Gross , Bjorn Andersson , Dinh Nguyen , Enric Balletbo i Serra , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org For testing coverage and improved defense in depth, enable KASLR by default. Acked-by: Ard Biesheuvel Acked-by: Will Deacon Reviewed-by: Kees Cook Suggested-by: Arnd Bergmann Suggested-by: Olof Johansson Signed-off-by: Nick Desaulniers --- Changes v1 -> v2: * drop other hunks as per Olof and Will * Collect Acks/Reviewed-by * Add Arnd and Olof's suggested by * rewrite commit message arch/arm64/configs/defconfig | 1 + 1 file changed, 1 insertion(+) -- 2.22.0.410.gd8fdbe21b5-goog diff --git a/arch/arm64/configs/defconfig b/arch/arm64/configs/defconfig index 4d583514258c..a7cbf7cd84b4 100644 --- a/arch/arm64/configs/defconfig +++ b/arch/arm64/configs/defconfig @@ -68,6 +68,7 @@ CONFIG_KEXEC=y CONFIG_CRASH_DUMP=y CONFIG_XEN=y CONFIG_COMPAT=y +CONFIG_RANDOMIZE_BASE=y CONFIG_HIBERNATION=y CONFIG_WQ_POWER_EFFICIENT_DEFAULT=y CONFIG_ARM_CPUIDLE=y