Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4339956pxj; Wed, 12 May 2021 03:31:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkJwOs9bn3tfzZ/F9qqYJgP6jFJ/Li7HmuEXc16qy27a8YeCPnbhze7QcR22pGZ6Ov3Dlz X-Received: by 2002:a05:6602:2e82:: with SMTP id m2mr24494836iow.190.1620815507037; Wed, 12 May 2021 03:31:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620815507; cv=none; d=google.com; s=arc-20160816; b=wj/vNKEZXylzh7YeeAMdCx5pHwRPNWIlqILNBkQEjL/uVcvyBfCv0/earXQUWX/esG K2CWwMhAwZ7vo8Cwyg+HTPGCdHDcW7iDQXR1nnIyhp2YfKbzZeYAhHLBdxKM6stiQXLc +fApQ0HsEeTfZNamCKvstAY0l4Zd/2QeZoUP3BUKzVWjmdsYyL9SOToxjYsEi4RtBmwo 3qK5Xw5qOTeGyL7EIR6L8BNUsePZRfx7UJMxd+8VpWeCLzyMggocU70ac8VSZAAsTCVq CDiu5NPTiXW/zrrgyfSvVuRGFNGzBp2AXNB1xSztGtxI6uOdWmpReLZtaz9FVg9X/NUr DI6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=cln8D0zkJlvlDAVWgXEZzf+iSIdxG5w3if8C0U83rGo=; b=MWap55CnFZoQGoPLwuwW1d8sZpoxAPG3Xggnltj61NO6UR7crDQbRfNSgNsu7D9l7S QWdSTLVwACYGXscMw+6Pc6xcvoiNlMcu3CuUZSasadjI8hE4ck+OOiNehkVfkMjKgbhd Jox8pgDGGY1BtSDtzJWLM4J/XLJFJyX1jOpgNj3nTcqWhiS8qJ16LJVSRrnvKg9wvpib fM5BG3QEVV8BPgyt+QWgYbEqoFil9zewg5CGs1aWI67d6wRydDXbNB6DYCEC6FNSByNk JTZ3RHNLt7gTtf6TuR+zNqasc0X2RuFUcUOjJm/qif0QFB0SOGwTGcdcog7jbWJ9ot9z 8mpw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w13si22680267ilm.57.2021.05.12.03.31.34; Wed, 12 May 2021 03:31:47 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbhELKcC (ORCPT + 99 others); Wed, 12 May 2021 06:32:02 -0400 Received: from mx2.suse.de ([195.135.220.15]:50264 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230149AbhELKbN (ORCPT ); Wed, 12 May 2021 06:31:13 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 5181CB0BD; Wed, 12 May 2021 10:30:04 +0000 (UTC) Subject: Re: [PATCH v5 2/3] mm/slub, kunit: add a KUnit test for SLUB debugging functionality To: Marco Elver , Oliver Glitta Cc: Brendan Higgins , Christoph Lameter , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , LKML , "open list:KERNEL SELFTEST FRAMEWORK" , KUnit Development , Linux Memory Management List , Daniel Latypov References: <20210511150734.3492-1-glittao@gmail.com> <20210511150734.3492-2-glittao@gmail.com> From: Vlastimil Babka Message-ID: <99d79722-ea94-7775-8ac2-5957b42060b2@suse.cz> Date: Wed, 12 May 2021 12:30:03 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/11/21 5:16 PM, Marco Elver wrote: > On Tue, 11 May 2021 at 17:07, wrote: >> From: Oliver Glitta >> >> SLUB has resiliency_test() function which is hidden behind #ifdef >> SLUB_RESILIENCY_TEST that is not part of Kconfig, so nobody >> runs it. KUnit should be a proper replacement for it. >> >> Try changing byte in redzone after allocation and changing >> pointer to next free node, first byte, 50th byte and redzone >> byte. Check if validation finds errors. >> >> There are several differences from the original resiliency test: >> Tests create own caches with known state instead of corrupting >> shared kmalloc caches. >> >> The corruption of freepointer uses correct offset, the original >> resiliency test got broken with freepointer changes. >> >> Scratch changing random byte test, because it does not have >> meaning in this form where we need deterministic results. >> >> Add new option CONFIG_SLUB_KUNIT_TEST in Kconfig. >> Tests next_pointer, first_word and clobber_50th_byte do not run >> with KASAN option on. Because the test deliberately modifies non-allocated >> objects. >> >> Use kunit_resource to count errors in cache and silence bug reports. >> Count error whenever slab_bug() or slab_fix() is called or when >> the count of pages is wrong. >> >> Signed-off-by: Oliver Glitta Reviewed-by: Vlastimil Babka > I think I had already reviewed v4, and the changes here are fine: > > Reviewed-by: Marco Elver > > Others who had reviewed/acked v4, probably need to re-ack/review. > Note, I think if you addressed the comments and didn't change much > else, you can typically carry the acks/reviews, unless the other > person changed their mind explicitly. FTR, besides me and Marco, v4 had also: Acked-by: Daniel Latypov