Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp807491pxp; Sat, 5 Mar 2022 20:20:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJxVUz9Hiy5PdUgzUQYFVUAaUcBzw5RjlsuMo/8lHZ0weRzhOvaE06Fis4HOrUbskahB5fjy X-Received: by 2002:a17:907:c28:b0:6da:6f40:eced with SMTP id ga40-20020a1709070c2800b006da6f40ecedmr4518452ejc.400.1646540443068; Sat, 05 Mar 2022 20:20:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646540443; cv=none; d=google.com; s=arc-20160816; b=EzjXXs34BWXGqoFOJPPa5dhshx2adMvZ+9qwQZAGYYjAly9PYktu7zXgw3M+lANSyU xZzTzrKrq1CCgLMQTcpNWljbe0DFrfuOcc51DRJCGgCBLnLtBNwTY8pem6De1RG9C5Hg 2w+MVsQORFGfdlSmRcI0gNxhOSdYWi0vTiQtmBI4Yag8gh5KOc9M7QAW+nYkTF3CaqCR jxQ8DDREmm5CmVr1iTOKealj5rJkj4S7B75JgSW1q14Mjyo1MeXqIFMgvIovmPht5cUE ffd9NJ4DObNC/HDt26oLhHJ2xUjiSCsbwWr0cJSYVUZWZ2D+VrFgtZ8T0H6ty8bY5Gaw R8Vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=9VcL551A3TxVykm0jE7KKo0qII6AHkQR38dlA/avbUE=; b=z2dM4oqPeX8xILBruocgZJCM9iYC+DLAna6dEY2o9OeL09OOyULa51tQm26uh6QnWD m+dq6oLrCaeqkTTUy9YxOmj4lx5KbkNGs2KiPESHLRAi6JEQK63s+m3lGHSm5MMIZc+b 5KWwQApR2ytWXLvx7zduPuXWr8ifBCYVFx314i7iOsL06tPibELkctaLQes8vYVGugQs sc4dutIykS+13tI+1SvljYJLE0BPpYLxqcrntP+9+OSw5P6CjBl0JvG7uuAr5iaUYVi2 TA/6M91VeLzD+2ugZSENysdVtqsKZcpvKAr9K08wfkeOscYvNIx4uazbrpoXjGcKpGPt BNwA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq26-20020a1709073f1a00b006d9f4f899cfsi6501856ejc.164.2022.03.05.20.19.43; Sat, 05 Mar 2022 20:20:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231858AbiCEOuD (ORCPT + 99 others); Sat, 5 Mar 2022 09:50:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbiCEOuC (ORCPT ); Sat, 5 Mar 2022 09:50:02 -0500 Received: from out30-132.freemail.mail.aliyun.com (out30-132.freemail.mail.aliyun.com [115.124.30.132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3FCA4201BD for ; Sat, 5 Mar 2022 06:49:11 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04395;MF=dtcccc@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0V6HF7hU_1646491739; Received: from localhost.localdomain(mailfrom:dtcccc@linux.alibaba.com fp:SMTPD_---0V6HF7hU_1646491739) by smtp.aliyun-inc.com(127.0.0.1); Sat, 05 Mar 2022 22:49:08 +0800 From: Tianchen Ding To: Alexander Potapenko , Marco Elver , Dmitry Vyukov , Andrew Morton Cc: kasan-dev@googlegroups.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 0/2] provide the flexibility to enable KFENCE Date: Sat, 5 Mar 2022 22:48:56 +0800 Message-Id: <20220305144858.17040-1-dtcccc@linux.alibaba.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,HK_RANDOM_ENVFROM,HK_RANDOM_FROM, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=no 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 Hi, I'm sending v2 about (re-)enabling KFENCE. I've removed description about use case and just focus on flexibility. Thanks. v2: Take KFENCE_WARN_ON() into account. Do not allow re-enabling KFENCE if it once disabled by warn. Modify func names and comments. RFC/v1: https://lore.kernel.org/all/20220303031505.28495-1-dtcccc@linux.alibaba.com/ Tianchen Ding (2): kfence: Allow re-enabling KFENCE after system startup kfence: Alloc kfence_pool after system startup mm/kfence/core.c | 114 ++++++++++++++++++++++++++++++++++++++--------- 1 file changed, 93 insertions(+), 21 deletions(-) -- 2.27.0