Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp284296pxj; Wed, 16 Jun 2021 02:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzFhN24oYHPgUfwKvBIM/Pm8Id959St3xSfhRuEM6SfO8B7boj57+Pd1Ea4OY+zW60MP/BR X-Received: by 2002:a17:906:9512:: with SMTP id u18mr4324692ejx.61.1623834860742; Wed, 16 Jun 2021 02:14:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623834860; cv=none; d=google.com; s=arc-20160816; b=PyKpCTVCvFvKvTmjPW8OMHCeG5uHXu+7diniRukt9apVR58QMRXrhpGKs54x42Lp9T CLJMri1eO7E2M2Ehux0AxJGHx+UHWqhFzUYoq6znbtUDh02NInomAxyVVwb47VR+LbSJ eV4Rd0TU7UjgGPtIOkzYZR4rECNXGmBI0mAQbicEHHOmw2WMuB96vsO81JagQe59tmdq HRM0VzbIx/hnNi2y0TjYcfYkuu+TDKrycjIGWFHDrQZCMW5qfnFCOoJX2pyT2jNJAnEA kR2wbD5BLHZG8gDavFoAEDuYy5PWRNcapcR3W9BZJ7XFDRszO9FQd3hGSkH0X2kSUx+j q8+A== 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=zwXeE/T9A/OrTylBMfS7m9SAT845lCEQygKVQTKDO1g=; b=aWeNCxpHdXGd1+qePjVIukQ/UrU4WWF/MEG7yse/QOvIJPc5zA6nBE1G7N1NdCM9EB pY5iQWSC/q/NIyGqCX+raEjSFY/VmDCLUeW62Obdk6DIj2JjN87gABQE+oMCEMSWUrIW qcfJHrd6k4MJKb3r+NirdhebyTpwfk6MGgUfxXO56/ZKpAlTy6TMLo5fCtY4HublwU4m VtGkeW+V1+2Si+XDEL5zUFoSj2/A6FQ+WbCi4AyZkv6nhql1AuU12iEfI5SpiON2rj+X cik64bGyggi/XCaW91dleMJEcEOQ3qnq6plIqjPebFpdjPPjpFqVaz5ItSph5oBWGFfw r1Tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=RElzJ2hc; 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 s26si1639713ejq.633.2021.06.16.02.13.58; Wed, 16 Jun 2021 02:14:20 -0700 (PDT) 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=RElzJ2hc; 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 S232239AbhFPJOO (ORCPT + 99 others); Wed, 16 Jun 2021 05:14:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37330 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232221AbhFPJOM (ORCPT ); Wed, 16 Jun 2021 05:14:12 -0400 Received: from mail-oo1-xc29.google.com (mail-oo1-xc29.google.com [IPv6:2607:f8b0:4864:20::c29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A5FDC061574 for ; Wed, 16 Jun 2021 02:12:06 -0700 (PDT) Received: by mail-oo1-xc29.google.com with SMTP id 67-20020a4a01460000b0290245b81f6261so501486oor.6 for ; Wed, 16 Jun 2021 02:12:06 -0700 (PDT) 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=zwXeE/T9A/OrTylBMfS7m9SAT845lCEQygKVQTKDO1g=; b=RElzJ2hc7LrZCUP88cqmIT5SmDkbzIOCj/FtUDQinBJda4kLAvYUFxtOc+bR7clliV WlIsUs4vcuoeAie5wl4aqs1VbotnGDvk9niC8fflUf7H0yyqbQ4FoGFYl+eQaYf/Jm5N GHcbH10qGL5iabgOzIJ0o2h9Cuk4+h0Lh3oeHoFxJuv8oSUIbBmljuMxXvYveUmhwFFS fq8stEa4IlssAoQmWl7xNloVppaAYhFGZBiKAbNPL8yD+rQ8XcH3ZKJYJDO5FOBJ0Pa0 JE11w1jFJQU9bnJ9cvleB79kkB5wexOBGyTGOIk4XLihR690/YFYPnJn9n9CK1OSItGz KOLA== 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=zwXeE/T9A/OrTylBMfS7m9SAT845lCEQygKVQTKDO1g=; b=QXvhG2zG328jFU9+LIRXNqTP+kITTFeZ52xxLiL30SO7vHGjXUZPL/U1GbxgshCGht +q2mGzVpubDxLVqvyRaM/ST0jGtExPxAmY4zoXhN4buHfuS6OFgx7OVVD80ctaLCCLvd D73zjOYKPp8N7DMoJegjx2u4UjuPEEef1qnQXfGKhWPZhXaOMv49DOs2o+K/GZJiwFeD 1uN1EVxsbqRStk/frqi1E+dHB5gTUo2LPXxfjt3Ozvata/2+t7kRLLz5g7OtDqpOaazZ COuim1mrt4FGioBsWArQJS6UKYvphq1bhDeC3klD2aD8l39FeszO+5FBUTsvdhx5y0cW opRg== X-Gm-Message-State: AOAM532lhEQjVfal3IJNSaSY7+veDYajwKYBQaDrI24S21K6kwMYvKjD 01xPo14G5OYeEMyfdUxoqb4oHhpAxnpUcbbzKMPIxg== X-Received: by 2002:a4a:6049:: with SMTP id t9mr3118549oof.14.1623834725852; Wed, 16 Jun 2021 02:12:05 -0700 (PDT) MIME-Version: 1.0 References: <20210615030734.2465923-1-liushixin2@huawei.com> In-Reply-To: <20210615030734.2465923-1-liushixin2@huawei.com> From: Marco Elver Date: Wed, 16 Jun 2021 11:11:53 +0200 Message-ID: Subject: Re: [PATCH -next v2] riscv: Enable KFENCE for riscv64 To: Liu Shixin Cc: Paul Walmsley , Palmer Dabbelt , Palmer Dabbelt , Albert Ou , Alexander Potapenko , Dmitry Vyukov , linux-riscv@lists.infradead.org, LKML , kasan-dev Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 15 Jun 2021 at 04:35, Liu Shixin wrote: > Add architecture specific implementation details for KFENCE and enable > KFENCE for the riscv64 architecture. In particular, this implements the > required interface in . > > KFENCE requires that attributes for pages from its memory pool can > individually be set. Therefore, force the kfence pool to be mapped at > page granularity. > > Testing this patch using the testcases in kfence_test.c and all passed. > > Signed-off-by: Liu Shixin > Acked-by: Marco Elver > Reviewed-by: Kefeng Wang I can't see this in -next yet. It would be nice if riscv64 could get KFENCE support. Thanks, -- Marco