Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1519892pxb; Fri, 26 Feb 2021 12:59:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxp7tbw0zNqAOqJcKm2ZkHE7q836CywxuPFj0lRO7avDecAai40VjsHzhjAjg/BTh+loglE X-Received: by 2002:a17:906:3cf1:: with SMTP id d17mr5319069ejh.343.1614373187246; Fri, 26 Feb 2021 12:59:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614373187; cv=none; d=google.com; s=arc-20160816; b=FtEdZOjpe6Yh9mt9jYj3us1vNd5Rmwpj6lbbiZiJL4sW6Zx9rYx8X1wQ7EQeYpoPkT IzkQHeJyD8UNIO/6JtGz1/lYR8ql48UnUFKqRn857L5UdY8IXe0ogOoUw/Ce4HT5AUgV XJS1OG0X0d9uMDR5GFt5KFQhmKbYtljSW53M+TsKy+xcoVCaiRJxH193MfXD3Qh/pJWH bgC4hmZL/YWhR3f1YfKVzZcX9yNjEQPsO+fCMO5DD2aii61DBODlLgji5sIwa5XVNIur JPin83L3VWWY+3LDhoe3tdRnUjeflZc/7HrBV6ebET32IY8MX0d8UpGpK0SE+Vfub9ft uTxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=QMAOY4drkfNnT/pMZYqvSvr0Wi5l1ir4k0oC/IvcDeM=; b=gwk5i0E24BxTlR6OMAcYxdmMVQZj0Ob5VEs+k39ckLaO6CB9NXzbPV/DJfzWTrqRGR Zjzd0vsBZxleewzZrsRk0gaFF1OrwZVJvAhAFNW1ZK9RNKCHD+zCFCv9Ltkn43HQD40U b1GCxSpYY4qJil33YVVfbSBOXbVtmwpA14ZnBgyf0ZEM2pyixeEkPekrlryi1co7yO02 FzZsuthn9j+rKPcS94mJ/4w8m4hT6kYKmGwiGIiwb4wSIbs3xD3KaGUdO0r4eed2e8G7 KAvbQRtJg6Ha/xyGAkRV7lbC9x4G5FN/wkyFowK+RCMBIYghscimJZmitYOG/RtjORK8 QvZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Bfj2DXRz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id t5si5500519ejy.248.2021.02.26.12.59.24; Fri, 26 Feb 2021 12:59:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=Bfj2DXRz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S230018AbhBZU60 (ORCPT + 99 others); Fri, 26 Feb 2021 15:58:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50186 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230223AbhBZU6Y (ORCPT ); Fri, 26 Feb 2021 15:58:24 -0500 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51388C06174A for ; Fri, 26 Feb 2021 12:57:44 -0800 (PST) Received: by mail-pf1-x42c.google.com with SMTP id q204so6010257pfq.10 for ; Fri, 26 Feb 2021 12:57:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=QMAOY4drkfNnT/pMZYqvSvr0Wi5l1ir4k0oC/IvcDeM=; b=Bfj2DXRzoHStywHZk3W7HzxtJMF2ixlieWXuktuWJp0tsgE9p+zTZukKWxJeO8zKii Uj4DGjBr646LU92ldBHDWvPYA0t7sADaORnxRwRyOd6i43HRRLtvIOEjf9jeTjPB/dAC SVrrzek0B8o9fSGyp34VrfswjvdDVVL+rVdN3kAOMz3mJQLqX/QOaqbtt0YDlsE3gqez zaB3weUXtj2Q/nupsvCC8i2n2+7TSoMvQ8CKMAvemJ2by11tNDOx8yh0VyOOAxC8Xjzj dRtPCCKFS6d0kO+vZkikTWgM28JDMCSX4znbX6zVnaZGY0N5P65ga1qUX04h3xLiNFNk Fn6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=QMAOY4drkfNnT/pMZYqvSvr0Wi5l1ir4k0oC/IvcDeM=; b=Cj7Mc11kEQBmJm7BoWfM94TvmAaTyJUu4Fep4+swIMnxxQEh0TpIbRKgF0py7BBekR 8ehdQIrZbNouKiEjpraxhMvU4dwqpBDADGjmoZAY15rip0YSZIQnh6E/KDdY67AqgvkP itvcVMrRuATcwjARxFPhco34ce8LaW10UhyEGGY713+DI5eDtP0W5DPYkvkGyJM272YY U0QzAFOP/Xz4D8kFHYexjLK/AjU+p5lt7lpS8KwdhK+BtbWsGJoyMJHVAQ1hA6pxfEfj mqRtdO9KGaLltU1hPG6+XWfxuQwHwvmEbsmdWwsrMnxYgdOVKATQX8gLMbLQQD63KiPM Eo3A== X-Gm-Message-State: AOAM530izhbdyzy2xRtzgpV9UUOTTMtWMNQICXNcDA/AEDngHGPQBIk/ QDlJ0OTqGoUWYjsHD3tQMYOPqlrfPB/ts/RjDY57xg== X-Received: by 2002:a63:fa4d:: with SMTP id g13mr4457814pgk.201.1614373063558; Fri, 26 Feb 2021 12:57:43 -0800 (PST) MIME-Version: 1.0 References: <20210209071034.3268897-1-davidgow@google.com> In-Reply-To: <20210209071034.3268897-1-davidgow@google.com> From: Brendan Higgins Date: Fri, 26 Feb 2021 12:57:32 -0800 Message-ID: Subject: Re: [PATCH] kunit: tool: Disable PAGE_POISONING under --alltests To: David Gow Cc: Shuah Khan , Vlastimil Babka , KUnit Development , "open list:KERNEL SELFTEST FRAMEWORK" , linux-um , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 8, 2021 at 11:10 PM David Gow wrote: > > kunit_tool maintains a list of config options which are broken under > UML, which we exclude from an otherwise 'make ARCH=um allyesconfig' > build used to run all tests with the --alltests option. > > Something in UML allyesconfig is causing segfaults when page poisining > is enabled (and is poisoning with a non-zero value). Previously, this > didn't occur, as allyesconfig enabled the CONFIG_PAGE_POISONING_ZERO > option, which worked around the problem by zeroing memory. This option > has since been removed, and memory is now poisoned with 0xAA, which > triggers segfaults in many different codepaths, preventing UML from > booting. > > Note that we have to disable both CONFIG_PAGE_POISONING and > CONFIG_DEBUG_PAGEALLOC, as the latter will 'select' the former on > architectures (such as UML) which don't implement __kernel_map_pages(). > > Ideally, we'd fix this properly by tracking down the real root cause, > but since this is breaking KUnit's --alltests feature, it's worth > disabling there in the meantime so the kernel can boot to the point > where tests can actually run. > > Fixes: f289041ed4 ("mm, page_poison: remove CONFIG_PAGE_POISONING_ZERO") > Signed-off-by: David Gow Reviewed-by: Brendan Higgins