Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp2201248pxm; Fri, 4 Mar 2022 11:14:40 -0800 (PST) X-Google-Smtp-Source: ABdhPJx4Muv6coZY5Hrb+XilUZWecMswBBH9GpMRNEvADu8fbqgH8Idcfwfp7G116SFNrMq8qPHs X-Received: by 2002:a05:6a00:16d6:b0:4e0:ed6a:cf82 with SMTP id l22-20020a056a0016d600b004e0ed6acf82mr44377601pfc.9.1646421280465; Fri, 04 Mar 2022 11:14:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646421280; cv=none; d=google.com; s=arc-20160816; b=aWMzR5s5eDKpk63XAtJvozkm+nyuCvVBR3ON+Xt+6b5GepCvdY4QuRd0lZfM8ZJ4wU hVZVvpzrH4rusj0W4hqZYCrZPcwOtdpZTsDRFFKTcOmjVfxHiAgO3AdLn/wPdy4u878K Ld6aCjgmty5tVyfJDObgUR2HB5iqeMFsQ1a0CFTfvgILtsijtk5s06M1Iq5XZ04gNR7t c3rOIO7HNiBEZCMvleLX/Dw4i83WxxoY6XcCe1kIdKPg++PG7C8q4zBlUh8JS3S4HHY7 k/WfVpDfAGCwQVuvY/BRXG3MfTG7YH7SnE3FLvPMLgeuItmZycRQcw2bmmVeWb7ZkaGJ S4rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=KUxn8JdSU+FAiz+Yz45U+PNiIfEjVkTsbOETITn3KvI=; b=zlu5KigUgnTnqFvzMxYu/357bi1bOdi3n0TZrxgIEJw40DY6QpkihzbdoNl/UO7eO9 vLab6VpnyR1V8AYruZ4enf/t/FbraV7qkgFM0olIpf2K6bjXiEw5kAS2rvZEH/yhoEbK 1jPBKcZUtjtbCnW1kapAoOrTduYagWfhnZ5UeDWniHJq9Nz6nSKcIVHVKJbhWurjJzlQ u+fC3f5OBHQwRBQCc9v/VEYV7RwGcxyIwwouw3SGMI5WKTUoqhUOyUT2fVNYOfEAK9J1 qdkXrYeqbOw4kob4YfaXT7oUSIhQGhJef1glRS65/M9zmsZKZw3EINPwYsp9I0qFY6cr 3nUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=n0vwTpqy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h11-20020a170902704b00b0014af1b7c591si5091612plt.580.2022.03.04.11.14.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Mar 2022 11:14:40 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=n0vwTpqy; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id A49B41F1DFB; Fri, 4 Mar 2022 11:06:52 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241565AbiCDSQO (ORCPT + 99 others); Fri, 4 Mar 2022 13:16:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38826 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230271AbiCDSQK (ORCPT ); Fri, 4 Mar 2022 13:16:10 -0500 Received: from mail-yw1-x112b.google.com (mail-yw1-x112b.google.com [IPv6:2607:f8b0:4864:20::112b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8639A1C666E for ; Fri, 4 Mar 2022 10:15:22 -0800 (PST) Received: by mail-yw1-x112b.google.com with SMTP id 00721157ae682-2d07ae0b1c4so100444497b3.11 for ; Fri, 04 Mar 2022 10:15:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=KUxn8JdSU+FAiz+Yz45U+PNiIfEjVkTsbOETITn3KvI=; b=n0vwTpqyGaSeYU+QRRntw2mfKbgAEHYrx8YQnH8YGsbg4ge9sCog/6QN4ThJOAVrZ6 0kj2ftdppdOZya/3BITeo1aOBkAbSA2WjA2/NNeg6lsu5hvwpe6e0wRvUQCyeZfs2Isj mKyDDw5r64ERuPobZkoNF5at2vYncMMBY2S9u4LCij/oJzuAJPDzyIRQilVpuYrzCKaP 1D67t0mU6BPrqnjCU487jIe2eS0648F8whYX1KEF9DBj+zGGXzEAnBpnqq0px/4zFk1g HP1V9Tb0S1skyDE7NshToa7WOYx3Iu5Q5SbS4CbbyyJ8zGdMcyz5ybmhKBAjcVu3UNJ+ 1Vew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=KUxn8JdSU+FAiz+Yz45U+PNiIfEjVkTsbOETITn3KvI=; b=H5+hsqHBOOpC22vCLpxWt2dwFxzg98e1Ui1Gt8/VYvnq2wmdCxVu2aB/ZO+HBh+ByR 8KYxNMOq/CtLTfBqbmAUhqgiJaEVxbOHmHkq9nq4YRY0YZ5aDzFrOhJ7DRlOHi1nPsHD VwfXvDkRdF3fWoFiAQx+WFZpFplADQZnQXxfP55pGGtoIG1XRLr+XnoP2mX9RVhR31Lq Bzz2j1PQJln79lxuHUCYadJ5dBHsB4CiuziKNg/sjAH6CRf+GHVurz+JzEqt9viIwqsm ODoCnaB0BN5Rv2oQhCwnr+hsFjMAjfvoOBLSi97mHBak++hQLbJEluAyoh2nsCvy0RP/ Ue6A== X-Gm-Message-State: AOAM530Y/VuxA1PgMFQiuw/CH5WPVDHXe+YFmgqKkll2K3kVvrOBpHi1 tEQTYYudYagxanxEJHmig0w5qJDxNoNcmMaqznWssw== X-Received: by 2002:a81:5549:0:b0:2dc:2826:e6ee with SMTP id j70-20020a815549000000b002dc2826e6eemr11829422ywb.327.1646417721537; Fri, 04 Mar 2022 10:15:21 -0800 (PST) MIME-Version: 1.0 References: <20220303031505.28495-1-dtcccc@linux.alibaba.com> <7c14bb40-1e7b-9819-1634-e9e9051726fa@linux.alibaba.com> In-Reply-To: <7c14bb40-1e7b-9819-1634-e9e9051726fa@linux.alibaba.com> From: Marco Elver Date: Fri, 4 Mar 2022 19:14:45 +0100 Message-ID: Subject: Re: [RFC PATCH 0/2] Alloc kfence_pool after system startup To: Tianchen Ding Cc: Alexander Potapenko , Dmitry Vyukov , Andrew Morton , kasan-dev , Linux Memory Management List , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-10.0 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE, USER_IN_DEF_DKIM_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 4 Mar 2022 at 03:25, Tianchen Ding wrote= : > > On 2022/3/3 17:30, Marco Elver wrote: > > Thanks for your replies. > I do see setting a large sample_interval means almost disabling KFENCE. > In fact, my point is to provide a more =E2=80=9Cflexible=E2=80=9D way. Si= nce some Ops > may be glad to use something like on/off switch than 10000ms interval. :-= ) Have you already successfully caught bugs by turning KFENCE on _in reaction_ to some suspected issues? We really do not think that switching on KFENCE _after_ having observed a bug, especially on a completely different machine, is at all reliable. While your patches are appreciated, I think your usecase doesn't make sense to us (based on our experience). I think this flexibility is nice-to-have, so I think the justification just needs changing, to avoid misleading other folks. Please see comments on the other patches. Thanks, -- Marco