From patchwork Thu Feb 21 13:25:17 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Po-Hsu Lin X-Patchwork-Id: 1046168 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.ubuntu.com (client-ip=91.189.94.19; helo=huckleberry.canonical.com; envelope-from=kernel-team-bounces@lists.ubuntu.com; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=canonical.com Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 444wFp0N3Gz9sBr; Fri, 22 Feb 2019 00:25:33 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.86_2) (envelope-from ) id 1gwoLx-0007N0-4U; Thu, 21 Feb 2019 13:25:29 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.86_2) (envelope-from ) id 1gwoLu-0007MM-0d for kernel-team@lists.ubuntu.com; Thu, 21 Feb 2019 13:25:26 +0000 Received: from mail-wr1-f71.google.com ([209.85.221.71]) by youngberry.canonical.com with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.76) (envelope-from ) id 1gwoLt-0007pc-PY for kernel-team@lists.ubuntu.com; Thu, 21 Feb 2019 13:25:25 +0000 Received: by mail-wr1-f71.google.com with SMTP id z16so6954773wrt.0 for ; Thu, 21 Feb 2019 05:25:25 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=gaMtEvYvQpSCu/okSJxFPeP/buEj6MFtrimtpdnMAbI=; b=RfIF+bXqjwVkwQvSvRc/LrJe0/WIW6aCOpk0RVBPS1JziZmqTLYRDlshI6q+hFJUlE y0Q3yHGmCCE3iZK1pE6jSRFAa6azc7DucIxUlqiVPDiRMSnaAlHsvZm4epVynXowVEoY tw6qgNoCYeE46fcHkWzlGXqZC3Txy3b8V2oeZQKN4m8CTKpNWobdb9NQUvf4oQFYooNh QVg6lNar3cisNRjD2q8kuAJiIlN+pIyveTWu78vg7RgKL/2zy/N5pdi5ogTXOoxK9xP/ pz6Ef9PlwHyS+qKyrJQ2WDGN54ksum/9jKU0pGGR7hKruzyMsnsRcpNvtGZhBMXKKoAC 16xg== X-Gm-Message-State: AHQUAub7UbdLgT3uZasi6XXeLzCUtd2lle/lalFmQAgqpygITnHXqvKl TvRto7wOMRfVzhzIDVgHWawlfs8cs0YWbs7xJaWFu3rFA2DvdSqpkturgphiwK5rT5gt02qFJsN kiOjFh2sUrJ5AbCiA5ZHYtUwTAcc+rYc2NuN+Kf8j X-Received: by 2002:a1c:f518:: with SMTP id t24mr1695403wmh.26.1550755525381; Thu, 21 Feb 2019 05:25:25 -0800 (PST) X-Google-Smtp-Source: AHgI3IaZLDRLC1RH+S3mVw+s3T7VqPFa74QHOAtlsYKrJTON+ChoIl6D5olBBBUgdoKBbzHplKqRCw== X-Received: by 2002:a1c:f518:: with SMTP id t24mr1695389wmh.26.1550755525124; Thu, 21 Feb 2019 05:25:25 -0800 (PST) Received: from Leggiero.c.hoisthospitality.com ([194.204.107.10]) by smtp.gmail.com with ESMTPSA id u20sm4475922wmj.0.2019.02.21.05.25.24 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Feb 2019 05:25:24 -0800 (PST) From: Po-Hsu Lin To: kernel-team@lists.ubuntu.com Subject: [C/linux-aws][D/linux-aws][SRU][PATCH 1/1] UBUNTU: [Config]: enable PAGE_POISONING, PAGE_POISONING_NO_SANITY, PAGE_POISONING_ZERO Date: Thu, 21 Feb 2019 14:25:17 +0100 Message-Id: <20190221132517.15853-2-po-hsu.lin@canonical.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190221132517.15853-1-po-hsu.lin@canonical.com> References: <20190221132517.15853-1-po-hsu.lin@canonical.com> X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.20 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: "kernel-team" BugLink: https://bugs.launchpad.net/bugs/1812624 Enable these options to match config setting in the generic kernels and the requirement from the security team. Note that this should not have performance impact as this will need to be enabled with page_poison=1 kernel boot option. Signed-off-by: Po-Hsu Lin --- debian.aws/config/config.common.ubuntu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/debian.aws/config/config.common.ubuntu b/debian.aws/config/config.common.ubuntu index fca79ae..f7aedeb 100644 --- a/debian.aws/config/config.common.ubuntu +++ b/debian.aws/config/config.common.ubuntu @@ -5546,7 +5546,9 @@ CONFIG_PADATA=y CONFIG_PAGE_COUNTER=y # CONFIG_PAGE_EXTENSION is not set # CONFIG_PAGE_OWNER is not set -# CONFIG_PAGE_POISONING is not set +CONFIG_PAGE_POISONING=y +CONFIG_PAGE_POISONING_NO_SANITY=y +CONFIG_PAGE_POISONING_ZERO=y CONFIG_PAGE_POOL=y CONFIG_PAGE_TABLE_ISOLATION=y CONFIG_PALMAS_GPADC=m