Received: by 2002:a05:6358:11c7:b0:104:8066:f915 with SMTP id i7csp7019141rwl; Wed, 22 Mar 2023 20:28:09 -0700 (PDT) X-Google-Smtp-Source: AK7set8SoLEqEMQCrUTyihfgepD9/fQrR1WBWZEneeEmnwzU+k12n70HJrxAI8M45ClfxVnU4Fag X-Received: by 2002:a17:906:550:b0:93b:5d19:52e1 with SMTP id k16-20020a170906055000b0093b5d1952e1mr4563169eja.50.1679542089689; Wed, 22 Mar 2023 20:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679542089; cv=none; d=google.com; s=arc-20160816; b=fo+oMbgqIIp9sWf6rzhFuGPXBrwD/yP2AoBkjhq150CEY5BM1TLVAS2mSHhirrqbsw vEJpB5zHNs2YxqFmXJsMu5Y/xt4iExiAdrgVc/iHBiqGWS56OC6VMP5rmdu6zuIl+xJp pWWTQRRMmTvrcMJg4w1Uk1PrCaUX5wpncJ/iE+S8CLrZO3dSzxHFa8dyHbQHDWW/sVv+ xFc1C03Ao206mxvUpr3xoTmWfy22p6tgc2EaqbOT69zWnEXsDXR9aQDyM++fdlA2/nul k4iW5i4Pxm5dic47v8tGe/McHhCJV0+CHavhTpQsivPYcK6CP+tP0kO41FKCaUeS0cXt QTQw== 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:in-reply-to:date:subject:cc:to:from:user-agent :references:dkim-signature; bh=b4ANTevdvrdXUlaIGqmAv9gYDUg3WsO2URDMeMh1u6M=; b=aqAQVPMZ2v9uuGpy2QFyJ50xHD+hflHbgyccjcS/oAEQqRZ1o6rA5ajnxj1CGk4OYO WVRdszvYZAJumE82N5SGiKQsjyUgqETj7L2biHi56FOy/CEGGoIDX4tvomf7FatGRVz4 QqqnolBUKLBdh3XM01HqB9/WYt4KEqIxaUmBpwZET3+UFgmrUxhGuVB5+O/pvrtETIuN PMvUczikBKWY/VuFCcRVcKknVh5pCNF9I7hIRZ83EDu0g1Jl9PpaSTBqivMrFPQiiwCO TIQSYWghhhUtonxdeLtN1kXu59bTmGzjDkDiXt++bapI0gQCifE99DpssYtE5XbGWILd JLig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=Y+SR3cZT; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bo9-20020a170906d04900b008b19eb4252csi17864541ejb.511.2023.03.22.20.27.43; Wed, 22 Mar 2023 20:28:09 -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=@gmail.com header.s=20210112 header.b=Y+SR3cZT; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229864AbjCWDQj (ORCPT + 99 others); Wed, 22 Mar 2023 23:16:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33592 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229519AbjCWDQg (ORCPT ); Wed, 22 Mar 2023 23:16:36 -0400 Received: from mail-il1-x12c.google.com (mail-il1-x12c.google.com [IPv6:2607:f8b0:4864:20::12c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31C792F04B for ; Wed, 22 Mar 2023 20:16:36 -0700 (PDT) Received: by mail-il1-x12c.google.com with SMTP id h11so10951894ild.11 for ; Wed, 22 Mar 2023 20:16:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679541395; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:from:to:cc:subject:date :message-id:reply-to; bh=b4ANTevdvrdXUlaIGqmAv9gYDUg3WsO2URDMeMh1u6M=; b=Y+SR3cZTAEHHNf4hc0P+zMrnmAY+jfz8X0hzIdnI4gdY8fsPT8oWJMkMlBPg2pi68h z0L94HghgWyun1N6+nPvsVxwQhWSaCRU1NuT4jIYP5yxkdZ+XkGqDhEtVz33zsDCV5VH Ol42btU+2Pl3BAFN56ctQyX2d1g5i9qi+7QmzlQ7m066YIG4VMyc4Q8C9dS+8okUlCpY ow77jCmSaoPQoY8toHS2ka1dc5DOwa0pjWLkZ6ePa2E4aivfOmuF1YbZ10xGS5a+UIlo p4LkpoYK9/Q8DDkADDNI5tQt5f1RR2mRmLHWWTwJw0L0jqGqV5ZWaD3/KsduMaeRgUZc SQAw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679541395; h=content-transfer-encoding:mime-version:message-id:in-reply-to:date :subject:cc:to:from:user-agent:references:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=b4ANTevdvrdXUlaIGqmAv9gYDUg3WsO2URDMeMh1u6M=; b=hY1GP8t+JqTliDgC7HUvu6ny/A/DC4ZIPgBRZPNm6MFuW0yHLAPBJgBB3Pz74wKaMm 3/dTmtPofN438wRCmWGCUIvUAWIfHHKDi2EFOsKhMdFG1+t4gDbCL02rcNvha4qtYrCl Pex4bFyf1BKyvUg/LjiAbgK6b3VYQtOTitctXRDETgwOuOdrYew5Q1kr+J010riomfo+ YukKn9Gsu3RXy5kvUq+PuM+HrB+Fmr77VLWLNBUI8FcrQL/MD9RlMMAJqdob2VyrCgMG BW88ongRJ9gvLLTE33ItByFnva8FwxX5wqUwX+pxTfkPMeoMDlPBL2bkAheP4Km9zHEM 2PMg== X-Gm-Message-State: AO0yUKXqqVHxPzeXk8SYLFxekUgt9ip+3InJr+yjbjwsrISigbWvXuxm kCE1Fi/GayYhWj9csHPovjA= X-Received: by 2002:a92:ca8c:0:b0:323:338:cc2c with SMTP id t12-20020a92ca8c000000b003230338cc2cmr5122769ilo.22.1679541395506; Wed, 22 Mar 2023 20:16:35 -0700 (PDT) Received: from MBP (ec2-18-117-95-84.us-east-2.compute.amazonaws.com. [18.117.95.84]) by smtp.gmail.com with ESMTPSA id y3-20020a929503000000b00315972e90a2sm4831044ilh.64.2023.03.22.20.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 20:16:35 -0700 (PDT) References: <20230303161906.831686-1-schspa@gmail.com> <87bkl9jt3a.ffs@tglx> <87sfdw8yru.ffs@tglx> <87mt448p0e.ffs@tglx> User-agent: mu4e 1.8.10; emacs 29.0.60 From: Schspa Shi To: Thomas Gleixner 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 Date: Thu, 23 Mar 2023 11:10:29 +0800 In-reply-to: <87mt448p0e.ffs@tglx> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 Thomas Gleixner writes: > 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? > OK, there is really no need to do this extra check. And should I submit a new patch version with your change =F0=9F=98=83? > Thanks, > > tglx --=20 BRs Schspa Shi