From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3D09AC4332F for ; Wed, 9 Mar 2022 06:39:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230082AbiCIGkY (ORCPT ); Wed, 9 Mar 2022 01:40:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38464 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229460AbiCIGkW (ORCPT ); Wed, 9 Mar 2022 01:40:22 -0500 Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 19E8A3FDAB; Tue, 8 Mar 2022 22:39:23 -0800 (PST) Received: from kwepemi100017.china.huawei.com (unknown [172.30.72.57]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4KD2VJ33G2z1GCG9; Wed, 9 Mar 2022 14:34:32 +0800 (CST) Received: from kwepemm600017.china.huawei.com (7.193.23.234) by kwepemi100017.china.huawei.com (7.221.188.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 9 Mar 2022 14:39:21 +0800 Received: from [10.174.179.19] (10.174.179.19) by kwepemm600017.china.huawei.com (7.193.23.234) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Wed, 9 Mar 2022 14:39:20 +0800 Message-ID: <832e7424-280c-d5e7-ae61-832f4f0a03b9@huawei.com> Date: Wed, 9 Mar 2022 14:39:19 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.3.2 Subject: Re: [PATCH 0/3] kunit: fix a UAF bug and do some optimization Content-Language: en-US To: Marco Elver CC: , , , , , , , , , References: <20220309014705.1265861-1-liupeng256@huawei.com> From: "liupeng (DM)" In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.174.179.19] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600017.china.huawei.com (7.193.23.234) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Good, I will send a revised series latter. On 2022/3/9 14:12, Marco Elver wrote: > On Wed, 9 Mar 2022 at 02:29, 'Peng Liu' via kasan-dev > wrote: >> This series is to fix UAF when running kfence test case test_gfpzero, >> which is time costly. This UAF bug can be easily triggered by setting >> CONFIG_KFENCE_DYNAMIC_OBJECTS = 65535. Furthermore, some optimization >> for kunit tests has been done. > Yeah, I've observed this problem before, so thanks for fixing. > > It's CONFIG_KFENCE_NUM_OBJECTS (not "DYNAMIC") - please fix in all patches. > Sorry for this mistake, I will check it in all patches. >> Peng Liu (3): >> kunit: fix UAF when run kfence test case test_gfpzero >> kunit: make kunit_test_timeout compatible with comment >> kfence: test: try to avoid test_gfpzero trigger rcu_stall >> >> lib/kunit/try-catch.c | 3 ++- >> mm/kfence/kfence_test.c | 3 ++- >> 2 files changed, 4 insertions(+), 2 deletions(-) >> >> -- >> 2.18.0.huawei.25 >> >> -- >> You received this message because you are subscribed to the Google Groups "kasan-dev" group. >> To unsubscribe from this group and stop receiving emails from it, send an email to kasan-dev+unsubscribe@googlegroups.com. >> To view this discussion on the web visit https://groups.google.com/d/msgid/kasan-dev/20220309014705.1265861-1-liupeng256%40huawei.com. > .