Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp946736pxb; Wed, 3 Mar 2021 22:06:17 -0800 (PST) X-Google-Smtp-Source: ABdhPJymH1U4/H8zsiZSKSSLvx91SrzJRIJlhJPBPjaxh3EMoyKy/4+68rf1Ft6RNcDqLyUaEB5O X-Received: by 2002:a17:906:8447:: with SMTP id e7mr2478223ejy.523.1614837976898; Wed, 03 Mar 2021 22:06:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614837976; cv=none; d=google.com; s=arc-20160816; b=oGknLK796tvAQyQdKTWMjw+9SDYDetgLcJ/v1z16bGFRT8A7/iuLeAYHNPJs8anotM QgXPohTXjyzzAwvdvgD1oYOeLQukrwL01vakWq2qiMgHUNKEe3ccNVh3wzki6VncdA9V NPnXJFqp750OoJPYLatZ4dvgzU/tuh2mJqsWfaagou6UflZlYgGVsWhiL8UyT0Irg/1Q TvCOI14wyYT1q/1EJCtExxV7d0/l55x91riqzowNQwLHMHxqOD5V2NbHMS5vtj4VOklB HUogVrhhc377fndFcUhchOkwO99qTgw9rDGAoLvdCaZE6tv96od9EwWntSWJ1sfDUoZe LKxQ== 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=ZedzYRAADqpCRUEjxpUyyJbfTq4kXSXEtgpjDsYUTaM=; b=Nxsn1LQuWykZM5QjK5lmW6EYM0K/DW/Rv/pIidAk2G1bwf3IUekQIpmBawHVToi1Ph ZOwD41waxmTyDdQWGy5Po7OX9+/WD6J4rxnhEDyIUAJEaew9sl8WBHrIw1xcHzGV6PjL AConph4bED+Dlhu9c1gOGaYP8U03K7lxxKpWI0HILcuzIilyUtP8Pkqrktyf7WqtLcvQ RFN/UX6LYbHqMAtZjfbghuY4TltK6r/KppiVX94piECLH9LUCADYNnWPDYmdPP2zWdbK OPgu2d1vkz+NiX68ZUasVrdbNppV8D8oNKJ4xFxod1nKoFiHHcNugu8FxuhO7qacpYsv rE0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=VuJezB0t; 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 y14si16578100edc.561.2021.03.03.22.05.54; Wed, 03 Mar 2021 22:06:16 -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=VuJezB0t; 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 S1382293AbhCBJYP (ORCPT + 99 others); Tue, 2 Mar 2021 04:24:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1837842AbhCBI7M (ORCPT ); Tue, 2 Mar 2021 03:59:12 -0500 Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3430C061756 for ; Tue, 2 Mar 2021 00:58:31 -0800 (PST) Received: by mail-ot1-x331.google.com with SMTP id v12so18190666ott.10 for ; Tue, 02 Mar 2021 00:58:31 -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=ZedzYRAADqpCRUEjxpUyyJbfTq4kXSXEtgpjDsYUTaM=; b=VuJezB0tzWYNW+rVlp2nsM418xSp5+ufG0JWLAq5r5MM0gK8qNtLMnGAtK7yHadsqw TmlF+UOZJINweGW5BON+tIaVXtB2L0NH6OKZSjkNpdTma8yO6kGtpqImMC6FondtWL/v cYDAzZwQMwxb+qIDEpg/nF96V85V4wG/Rk7rTuvW1Sly7+7/AtTKx2fY7W5p8xkRwCrS 1Lu3BvWIA04+WZGGBL8Pnq3XNaIYUnKTpX+08p/+LiJLC6k4RMdZrhXt8apJEY6APftp sj2e2Blq8v+FSC48imCvzkT7fpDSibVRZDUzuRj+zAvXCexjO4/Qdpr2e4wROPokdGt/ LKPw== 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=ZedzYRAADqpCRUEjxpUyyJbfTq4kXSXEtgpjDsYUTaM=; b=qi99eP8ViWcbKDyELOfIi05OU1Uv1kdUvSVWqV439N0Omhy0iEl6Zhq7y1nOj5CxuL 9/XTUxMgzPOqxzgo+CNGE3jeKRqy83S82+T4VO1bkoeprYvkobU4lBz3XsWrG8MEuB7N JpC54ZxOBm9X1zM57nLImcbBC6Ns8OHJ4JOsjCa8SYaKM/Xl45oAWE7ytE9vbBmKuFJk LfLUduCtxUlpEp+vaOqH2N6WJC6Im2PjwIgf26Z3GX/HXB1iVUxAtCOEWYn7hyhoIods 4CrciCPovfbm//jLar0T3RjstzY4IYFG9utgoJ5lByVR5bUu+Sk4zB/ydCpw3havh61K RA0g== X-Gm-Message-State: AOAM531KVPUGO+7rEn4ITXCeOlSKuN08LgVT6tcFsYoNFjpnNQAtYa8o rAC1bwj15ZJvTxSvXCs5ZBQwx+1NTzgbjB8CntzPuw== X-Received: by 2002:a9d:644a:: with SMTP id m10mr17387529otl.233.1614675511068; Tue, 02 Mar 2021 00:58:31 -0800 (PST) MIME-Version: 1.0 References: <51c397a23631d8bb2e2a6515c63440d88bf74afd.1614674144.git.christophe.leroy@csgroup.eu> In-Reply-To: <51c397a23631d8bb2e2a6515c63440d88bf74afd.1614674144.git.christophe.leroy@csgroup.eu> From: Marco Elver Date: Tue, 2 Mar 2021 09:58:19 +0100 Message-ID: Subject: Re: [RFC PATCH v1] powerpc: Enable KFENCE for PPC32 To: Christophe Leroy Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Alexander Potapenko , Dmitry Vyukov , LKML , linuxppc-dev@lists.ozlabs.org, kasan-dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 2 Mar 2021 at 09:37, Christophe Leroy wrote: > Add architecture specific implementation details for KFENCE and enable > KFENCE for the ppc32 architecture. In particular, this implements the > required interface in . Nice! > KFENCE requires that attributes for pages from its memory pool can > individually be set. Therefore, force the Read/Write linear map to be > mapped at page granularity. > > Unit tests succeed on all tests but one: > > [ 15.053324] # test_invalid_access: EXPECTATION FAILED at mm/kfence/kfence_test.c:636 > [ 15.053324] Expected report_matches(&expect) to be true, but is false > [ 15.068359] not ok 21 - test_invalid_access This is strange, given all the other tests passed. Do you mind sharing the full test log? Thanks, -- Marco