Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp371983pxv; Wed, 30 Jun 2021 23:28:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzw8YELHmO/29hAwfDTH5oTvBnR8vqu09+MQDMnTqO+dXaVuBZwW2Q3+iHCe8qWl7SVXfAe X-Received: by 2002:a50:81c1:: with SMTP id 59mr9785750ede.3.1625120899899; Wed, 30 Jun 2021 23:28:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1625120899; cv=none; d=google.com; s=arc-20160816; b=Mw8khiken4LnGVYBwlRT7fxMSL2uSvt6TK+jnVbZfbJ5ZI2uoG3DJ7dvRtKdNWpgKQ b4FgMDD8UE3ZLn9OEaYjrF6lWU25cCuOzZOHXRCMIm84mNlCGFAax/aqH+ArbNUMlOVd ncNSsz/VmAtSjkT/H6wuUR32tCHcxeaxjlebuaVCbGmB9MTDxX944rxQGK9Iwv0vTMzG Ua36UDpYIzDMbJeL7m3IoJjslEbTsusTY/vWt3lMHIzvbsxwCsKmYUAb3hbNZwMLrH8F YRfOgzhcMPRZilHnFmpJGIZ4l+Xtwzxuf+mMgEozoZ/mdL/EnyuZpDtMKDhTwGA6k2F+ C7pA== 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=weLO0U8CcMdO2GwWr9sKBhxG+qWHdNo4kkTxiwdSbK4=; b=JlB1fjkCz5puwUEzBSmx7/Ae511gUvz6P1G5qoN+XZw5GXFMEp1JbanVUkgpGIjdJD s5Ej5kFzSfjEOzNz/51H9P9rYazJ3xbbNPchbvnoBX4Xmmn68KeH2CUHr7VKTcj0s3sV AgqYtf+cfewQXT1XszAwPZh13p4styl0aO/N9FEVK0736MiuXVM6HV+d4tCcVYGn4Hr5 O40K4Y2GBrOx/I8WJxMygy+G4xZ5BLM1w4O5A/y7rtrqCFUooEtAI1pmqqxna1aqwfco zpHIsCaAS+JynGSPLlcjNu+3iN/Ol0gwGoXm6YVB1aRcJySbWYZCpMQQG7znJcEpy0Vf nOag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=SqGXprIA; 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 j29si21550684ejj.60.2021.06.30.23.27.55; Wed, 30 Jun 2021 23:28:19 -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=SqGXprIA; 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 S234271AbhGAG3F (ORCPT + 99 others); Thu, 1 Jul 2021 02:29:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233878AbhGAG3E (ORCPT ); Thu, 1 Jul 2021 02:29:04 -0400 Received: from mail-oo1-xc33.google.com (mail-oo1-xc33.google.com [IPv6:2607:f8b0:4864:20::c33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51E2CC061756 for ; Wed, 30 Jun 2021 23:26:34 -0700 (PDT) Received: by mail-oo1-xc33.google.com with SMTP id k1-20020a0568200161b029024bef8a628bso1299094ood.7 for ; Wed, 30 Jun 2021 23:26:34 -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=weLO0U8CcMdO2GwWr9sKBhxG+qWHdNo4kkTxiwdSbK4=; b=SqGXprIAcInGnP7tK3RzkxDFPtE76fgh9ARvCCa7CynU5vIKHM8LIhUULBtT6tjx8N qwAYUrFIBI0aO8DYME+OnXVK8NVMazv5UTd95r/fhCJpc1ZfdwQWrx19YftkIIyLM57I uhhw2w3/2CjU+Fr811EXVEsI+nWRRi9LpedTh/wNkrsfhXM7sW9Be1j4md9z8ojoLG/e eO7l7TCzk2EojkLLOoQrmldA2gYDFbVCla7jxoXjXCaht9NVdxH71hPso7NAg3QHmyZY 5G61NKyHCsXiZQsg6gdg6MmyQRSWR/Q8v16KHHibtvvED7ygDyUg7JeL1XAE1j6fptrF E+hQ== 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=weLO0U8CcMdO2GwWr9sKBhxG+qWHdNo4kkTxiwdSbK4=; b=sZzZHQM3i1aCHZVNk9nO7b+wpGcEdzENO0Mb+nDIVcQ6mHwzKLAkUDjxM3lSJL/yaC nUEno3E/l/13h5T/MSCbu1WysdYgIqMwG7MqCaGt++f532Kve2jZcf0qx9jozGIQBeDt UU7s7DkojZh1n+nOYty8Z6IcrwKAKFdScteKNETmkGsfVmVCBbnE4WWfaXsTDjonQ89k Tq1757Jv1HjyDMsyCe4litEPqQ2tvleoCqOWoXiYPxM/YvXzIuuVnPjHxf+Lu711ZeVi DpABj6PJJSRaPuKGgqUyNNI8XRDAPTog1HjjvCaye8GCDJw66XHMi1Qzgbon92i8/T1v FHdQ== X-Gm-Message-State: AOAM5312oRJoX/0IBBXGKANgAO9IJomI99wbaf3zi1CCxCQ2uVAWM6+e jipbyuFJF+Ny1/9Ge1HcmyO2akEG5HDEsPxkIsugQA== X-Received: by 2002:a4a:9406:: with SMTP id h6mr11669704ooi.36.1625120793225; Wed, 30 Jun 2021 23:26:33 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Marco Elver Date: Thu, 1 Jul 2021 08:26:21 +0200 Message-ID: Subject: Re: [PATCH -next v2] riscv: Enable KFENCE for riscv64 To: Palmer Dabbelt Cc: liushixin2@huawei.com, Paul Walmsley , aou@eecs.berkeley.edu, glider@google.com, dvyukov@google.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, kasan-dev@googlegroups.com Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 1 Jul 2021 at 04:38, 'Palmer Dabbelt' via kasan-dev wrote: > On Wed, 16 Jun 2021 02:11:53 PDT (-0700), elver@google.com wrote: > > 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, this is on for-next. I'm just doing a boot test with > CONFIG_KFENCE=y (and whatever that turns on for defconfig), let me know > if there's anything more interesting to test on the KFENCE side of > things. To test if everything still works, CONFIG_KFENCE_KUNIT_TEST=y (requires CONFIG_KUNIT=y) will run the KFENCE test suite on boot. Thanks, -- Marco