From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id C3D08C433FE for ; Mon, 21 Nov 2022 08:44:37 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 28E3F6B0072; Mon, 21 Nov 2022 03:44:37 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 23EB28E0001; Mon, 21 Nov 2022 03:44:37 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 12E206B0074; Mon, 21 Nov 2022 03:44:37 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 045456B0072 for ; Mon, 21 Nov 2022 03:44:37 -0500 (EST) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id C9986A0E6A for ; Mon, 21 Nov 2022 08:44:36 +0000 (UTC) X-FDA: 80156813352.28.FA36FBF Received: from mail-yb1-f177.google.com (mail-yb1-f177.google.com [209.85.219.177]) by imf19.hostedemail.com (Postfix) with ESMTP id 8018C1A000B for ; Mon, 21 Nov 2022 08:44:36 +0000 (UTC) Received: by mail-yb1-f177.google.com with SMTP id k84so12788638ybk.3 for ; Mon, 21 Nov 2022 00:44:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=MOA8LWvdV7vpIMbp9gmLxG/AXDKNs21CCNUeFEEyCbw=; b=mh4hjbsIkIWgtGVdWHbO6uRTTCtqDAaA0PiKTf6yrwq0RcoypNQhrl/hYvdzXzWCSx 4lh1uj9/Hk34rHY3RRHj8YY0c0FzORA+o2GBvv6yPIZSjhd2jlsh+8T8lCDtdOkXtmOB rW/pgrqGY06BVrtyfCcsByO5HjzpcxVzOLy4QJPB2k6nSxcRbaEqvJWnrLb4tx7GSnYB aw5TNaDTTXCSZj5CcoHz4YDn4hvADeiFFUiFWRXOLPdDVvBkC7JFocJIFD36e3P0lr+w j5UVmAkFg4IDeJgaGmQ+j7zvrpC4P+ES1RMO0XnoUx+Zvly7UwjMnf+W7bFcUla06Xxh KYDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MOA8LWvdV7vpIMbp9gmLxG/AXDKNs21CCNUeFEEyCbw=; b=effG4s7fFhCO4C7elocapMYQ2yTVvzBU8ul0brJaRKrAMS0dTg95UrpXceLOx/JdFA GioGMIeMMa8PyTqV6poR7ZU1wXsLBvv8C8BnsLVxppOkRIOFLCLMggv5oE2C9FxoOEpU jAHwQayCbf4A8+7zbrzEuht6CpaGzg+68LSIR6AhG+u6sp0uyCgtBBBIfoh3+x6zQeDU K3eHYj4RkKLrSt9XnVnMlfxAM/blVuynchfAu7AOwxrLlJKVPj1vO2KLoJUsgSf5DcCA YkHALbWynxKhB+97yWl4nXEIvE3oPdGpxxOzsViPNVM1RQnta0MesSNLY7LLPNuazNtR 3hBg== X-Gm-Message-State: ANoB5pmYFNNcojJLdGkaCfaipj6CPy/c/dnUVG3Yw1nadxbYXGC0U4k1 L77Hyz6EZ7CMZEYsVQVG6Jvl/SpIfLiJbS03hhl65Q== X-Google-Smtp-Source: AA0mqf71c9Z2Oz47hdONC4Rp43orqWmur2bLHwuIBQFUL1X3mP3qGUw0rlvHQu+QiIynGYu5DNDw6ViXPOhYelbY4LQ= X-Received: by 2002:a25:75d7:0:b0:6ea:c9e3:fcc3 with SMTP id q206-20020a2575d7000000b006eac9e3fcc3mr6559879ybc.553.1669020275636; Mon, 21 Nov 2022 00:44:35 -0800 (PST) MIME-Version: 1.0 References: <4208866d-338f-4781-7ff9-023f016c5b07@intel.com> <41ac24c4-6c95-d946-2679-c1be2cb20536@intel.com> In-Reply-To: From: Marco Elver Date: Mon, 21 Nov 2022 09:43:59 +0100 Message-ID: Subject: Re: WARNING: CPU: 0 PID: 0 at arch/x86/include/asm/kfence.h:46 kfence_protect To: Naresh Kamboju Cc: Dave Hansen , Peter Zijlstra , kasan-dev , X86 ML , open list , linux-mm , regressions@lists.linux.dev, lkft-triage@lists.linaro.org, Andrew Morton , Alexander Potapenko Content-Type: text/plain; charset="UTF-8" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1669020276; a=rsa-sha256; cv=none; b=HxCsrMCLzjeQl5ro5Swv8C3PbvuYT/lV7hCtQEgpBra3x5JtSpw4lnB2k9fzq64tbaam68 bnZtozzur0cGD3zPjPypnnXVclGZAW6cymYEDMmMtElryslE4+BD+fntJ0VJGKF0ACLyDR ic8I5c+K5PNxZe3QAOAm+5N3YWESO2c= ARC-Authentication-Results: i=1; imf19.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=mh4hjbsI; spf=pass (imf19.hostedemail.com: domain of elver@google.com designates 209.85.219.177 as permitted sender) smtp.mailfrom=elver@google.com; dmarc=pass (policy=reject) header.from=google.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1669020276; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=MOA8LWvdV7vpIMbp9gmLxG/AXDKNs21CCNUeFEEyCbw=; b=51KD1pbVyTOpwnFnrnMY1TU4CFjWIjUUWLpku1/cOVDsB2mwjeH0fOkVDpqgEknN5ucyhb dH6s3ruBIQJZkHSTY7u42Vf+mtCZP0y+rjodlSVEE7L3BgLCxOHponHM53Si727QlCmVLp vSU8qlzcYpLw9FE3RfZ1Rd9OROTGeqk= X-Stat-Signature: icpdcyfrxje79rx7a9ce6a7itfi5rks8 X-Rspamd-Queue-Id: 8018C1A000B Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=google.com header.s=20210112 header.b=mh4hjbsI; spf=pass (imf19.hostedemail.com: domain of elver@google.com designates 209.85.219.177 as permitted sender) smtp.mailfrom=elver@google.com; dmarc=pass (policy=reject) header.from=google.com X-Rspamd-Server: rspam04 X-Rspam-User: X-HE-Tag: 1669020276-180223 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Mon, 21 Nov 2022 at 08:28, Naresh Kamboju wrote: > > Hi Dave, > > On Fri, 18 Nov 2022 at 05:24, Dave Hansen wrote: > > > > On 11/17/22 15:23, Marco Elver wrote: > > > Yes - it's the 'level != PG_LEVEL_4K'. > > > > That plus the bisect made it pretty easy to find, thanks for the effort! > > > > Could you double-check that the attached patch fixes it? It seemed to > > for me. > > I have applied the attached patch on Linux next 20221118 and tested [1]. > The reported issue has been fixed now. > > Reported-by: Linux Kernel Functional Testing > Tested-by: Linux Kernel Functional Testing > Tested-by: Naresh Kamboju > > OTOH, > I request you to walk through the boot and test log [1] (new see few failures). > not ok 7 - test_double_free > not ok 9 - test_invalid_addr_free > not ok 11 - test_corruption > not ok 18 - test_kmalloc_aligned_oob_write > # kfence: pass:19 fail:4 skip:2 total:25 > # Totals: pass:19 fail:4 skip:2 total:25 > not ok 6 - kfence Fixed by https://lkml.kernel.org/r/20221118152216.3914899-1-elver@google.com