Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp6698671rwl; Wed, 22 Mar 2023 14:20:47 -0700 (PDT) X-Google-Smtp-Source: AK7set8KgDya9rvZoT4hj73Bf4cjM2f71oQb+jwGwT1IvfxkRgM03krr4AndjCtitlOmGrmlcFkD X-Received: by 2002:aa7:c9cc:0:b0:4fa:7724:a51e with SMTP id i12-20020aa7c9cc000000b004fa7724a51emr8475516edt.26.1679520047474; Wed, 22 Mar 2023 14:20:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679520047; cv=none; d=google.com; s=arc-20160816; b=XRyC607WDOccfcWr2D6WVQd6mK9tJFRH+pa+UKKw2m0+SBOzs02rw+59totpe1v0w4 BIwbMhh15rb/Qb1rIKC3nOdL9DIbfPKoAgI59XVFHp5h1DJZx4z02fUoYNNxLXeJy/mx 6j5e9sZl0BC544pUJmTYw9/QVaK86QwyNHu3/HbRxPw9B5+20LFroe2m6C2cnsdDCmf6 1mRaOGG5hWPfZ5+K5jx6QFT4+EN+1hRcFNfyA8DF5utDE1TvRaoNF8m6IU9RqhBOR+tn mJXWdSsMpewyQ8ZanMtpJyB2CUtBnDN2um1PwCRFd4K/LiS6ctMVBrSJ5MLnxJ8v0leu LLkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=ysHgSVzR07quGP5Go4T+VaoIwNGQVyPDWF/vUAc+rqA=; b=tU/thSenE1mW7fAd1JfV8QvxX+asZqxKvKWMa7xba2I8I4KRMpupC7ikLMw6HuaPOh F7RntaVHisNeH2jCgql1sJN6HJ+JcfTrV2tGVuKUnX2OX5KABUvvNpK2SY38fWQxMmwX 4Tawzj4IY4kxCXxI1EmZzSUVHefw8jHPvKLWmtlUravcGibiy1zI2sIyxCzEHUyn85+a mQxI6mikETcbTtYRDC/0O85c7Gyq2UlQMZX8Kc5uEUV5dDtiaSsu5A+9Wo+Ehc4eY6gL U3uny7U0gnwFIoTIu078qeYUb4ujPArOG+xvyioj4PcVz3ZZTedBie/x3O8eTNcHVDoE /HZw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b="n/iEYw/4"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s21-20020aa7d795000000b004fe96201050si17219496edq.261.2023.03.22.14.20.23; Wed, 22 Mar 2023 14:20:47 -0700 (PDT) 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; dkim=pass header.i=@linutronix.de header.s=2020 header.b="n/iEYw/4"; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229543AbjCVVRZ (ORCPT + 99 others); Wed, 22 Mar 2023 17:17:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229487AbjCVVRY (ORCPT ); Wed, 22 Mar 2023 17:17:24 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 41338131 for ; Wed, 22 Mar 2023 14:17:24 -0700 (PDT) From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1679519842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ysHgSVzR07quGP5Go4T+VaoIwNGQVyPDWF/vUAc+rqA=; b=n/iEYw/4ZuHRa/SxKOGXV+pG1Rv/3nlvONeuYermaOa1THD/DjcWY4TP3S4z21AD3Fh1/x uR6Sv+Tv23lMEmSa3AgfKZqbtz3zqz+Lb8PTNlURV3nb63+eX4iA7Fluek7bH1o4cBBY6N RfZIoJl6NcKHcwPtsSN1ggtB13TuMWCkfP51HWV0efJFE+AhyJ9NX/ihommeM7djy7hUGB oA1qoa9zkeTXMPaSuAI5auaP1GaYkhar7ct1P0Sa8AATHJqFkMeuY6/1802yFH9TcvVutC Du/dOgFBa4LNqE/NgF/fvv92Nz3BVFSbnP3iLeMd9sUA4l+pGINZ5xIyz5x0vg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1679519842; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ysHgSVzR07quGP5Go4T+VaoIwNGQVyPDWF/vUAc+rqA=; b=ST9q88mmmXBX4ZPjAKdlWF9jsc0JJ0cWESW8tis9TxlYpMtScchMW6SPo8djYok1zV7Gok bI/1UBz3c0ThVDDw== To: Schspa Shi Cc: longman@redhat.com, swboyd@chromium.org, linux@roeck-us.net, wuchi.zero@gmail.com, linux-kernel@vger.kernel.org, syzbot+5093ba19745994288b53@syzkaller.appspotmail.com Subject: Re: [PATCH 1/2] debugobject: fix concurrency issues with is_static_object In-Reply-To: References: <20230303161906.831686-1-schspa@gmail.com> <87bkl9jt3a.ffs@tglx> <87sfdw8yru.ffs@tglx> Date: Wed, 22 Mar 2023 22:17:21 +0100 Message-ID: <87mt448p0e.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED 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 Thu, Mar 23 2023 at 01:55, Schspa Shi wrote: > Thomas Gleixner writes: >> Which requirement? The is_static_object() call takes the address of the >> actual object and has nothing to do with the tracking object at all. >> > > This is for the fellowing test case, actually we calls > debug_object_free() from a static object in our selftest, if we don't > report any thing when call debug_object_free from a static object, we > there is no such issues. That's an artifical and completely pointless test case. As I told you before the memory subsystem will warn when it's tried to free a static object. debug_objects_free() is invoked from the memory subsystem *free* functions. What is the value of another warning? Nothing at all. So why would we add extra code just to keep track of something completely redundant? Thanks, tglx