Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3392088rdg; Tue, 17 Oct 2023 13:16:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHJ2nRaidiuzrP5tBk4PIcWOEjXvOMIZ7ZLNeSimiX59hTGWZsfRd0WMpk1Z/OB4jvVBA/6 X-Received: by 2002:a17:903:22c2:b0:1c5:9d00:be84 with SMTP id y2-20020a17090322c200b001c59d00be84mr4295511plg.33.1697573763886; Tue, 17 Oct 2023 13:16:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697573763; cv=none; d=google.com; s=arc-20160816; b=cB9VQtfjCxu2IiJHQSXIno91zm9V6NoLIH2y0LBxSvQYI1jHcgFK9Bzo2/iL2Z44LO 0Mblt8DUPnvV7Z3fQlTLCv+ro81dqu482h7Xo+nfdyREqlbkZYzPIvcNrP78Dy+7dFF/ EWATU5gMcne6eMgsB2MWzgLna6FZxgDKudd3R5T/xlhNEGB7yBgOiWa6Twt0yttczEaX NwYV5EQBCikM5NttlFzT29wzaDYCuq3EqRgf1uLasQf7G1cUnQy2L2PjuP/98Ewl/q5i fSJfaCnFiciK8lFwQagRocvaT6+VaAQ1ADQQL2RyGt/ZaNJelLKf2JK/qw9CqxLs8Cyk VU+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:dkim-signature:date; bh=Uj2R21g4EPlt4YZKWi7SG89ievVQJ+iyFG5BwjhrmmE=; fh=g9SUMMVFv/A5rk+d0/ylcvV2eB1HdNHqn5ghaGlISoc=; b=mfkab27krwtI+tlHOHpq5r93xPOIfS69SLLsQ3aXZkLtpduJqMtmNQx8dx2tyj4lds tysUpeDTXhjzRfNzdhBk3ViQYfkUJ4SoEmirDB4ahctapAyG6e07PMfe3HMzHZGp8/EP tlXI+2lyQpZ0DMvNlx1c7TvhTD+gaW+XKkIAT+m5eMj8F52KjYQXeQt3agUHDNeH7SSs x7CkxOhga1dUOECPYhl9VBBdhSfT3jHS9Klb8y0TdyMultIFS6Qix5kTMwrgkV4VOMvw HgVWyyhCLj/fhss9gcZAPWsdvIsJZOATYuLpQXM9E+KyEVzLYuz+9HZA7cj0JolzYZ/j YCJA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b="Sd7GNP/b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id k11-20020a6568cb000000b005b7e70085dcsi513082pgt.433.2023.10.17.13.16.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:16:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) client-ip=23.128.96.34; Authentication-Results: mx.google.com; dkim=temperror (no key for signature) header.i=@marliere.net header.s=2023 header.b="Sd7GNP/b"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.34 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 361098094752; Tue, 17 Oct 2023 13:15:53 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235157AbjJQUPp (ORCPT + 99 others); Tue, 17 Oct 2023 16:15:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33118 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235092AbjJQUPh (ORCPT ); Tue, 17 Oct 2023 16:15:37 -0400 Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0F81F6FA5 for ; Tue, 17 Oct 2023 13:10:24 -0700 (PDT) Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-6bd73395bceso2294019b3a.0 for ; Tue, 17 Oct 2023 13:10:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697573423; x=1698178223; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:dkim-signature:date:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=Uj2R21g4EPlt4YZKWi7SG89ievVQJ+iyFG5BwjhrmmE=; b=MxwpeeqNfHY7X0frHicLPeeZeYmqkyHd8w3y/ANb8sFCWtaAWLrg96H8KbsYKz6TYK ZOxQTvSUqO7uZdI/QJ5nXw3cDwnGWiy6OiSVBUasJECgl/rqJzGD4Qj4KSxemJaCHI9v NAjWtEucEs/2UFfG0vKJkMtnUFjQVdZBSm1erpxuG7kmyTGXWqlUkUwQMOkRL6pMaFDq WIEvqQPW0+DEcmhqU+lP5la0EakTcxmYZmNX4hqU07xbS3oVlGJYVpEFhmaXhOQzPyEA De2H7xvy06DHkacLh7VJ3OIDqorbYbOfodLJjpyTGenlPxDVEGexvluIXan5WifPQBHk /9Jg== X-Gm-Message-State: AOJu0YzY0W3G3MQGpgI7SGhJHIiAjvEU4IHkDiWoJ+WW3f/pG+AmKz+b c0lLOLTuWs1JHEpKDuwTI4r2fmXP1vlKWdq3 X-Received: by 2002:a05:6a00:3408:b0:691:27b:15b4 with SMTP id cn8-20020a056a00340800b00691027b15b4mr3871596pfb.5.1697573423273; Tue, 17 Oct 2023 13:10:23 -0700 (PDT) Received: from mail.marliere.net ([24.199.118.162]) by smtp.gmail.com with ESMTPSA id z21-20020aa79f95000000b0069323619f69sm1918389pfr.143.2023.10.17.13.10.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:10:22 -0700 (PDT) Date: Tue, 17 Oct 2023 17:10:14 -0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marliere.net; s=2023; t=1697573418; 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=Uj2R21g4EPlt4YZKWi7SG89ievVQJ+iyFG5BwjhrmmE=; b=Sd7GNP/bf0yRIpIrDgRsW5XZ4eSKsUoJ5xRV2D58RK5XCT0LV2IxaO3HmNa60rGT2E3d5L jtdldngQhriPe+qNxE1kT0DMtqconE5I+up4eMlISXEI8569NwNjfV7GoHvR51wmEXnDgQ j0Awwtx/zDEM/wM1rwbOLFHJb8fxtJ+i1G2HDQzv3Iit94/AZTABUdDt0j4B2xHzadTkmd q6W+nawquOo//gCaRyawwJu7omaFskXMsQg2GgTH8CY6kPME9wleTHg4ppGpLSOoedSLe2 8ifxIM9dfCcdghArMGZ+4W1wU4pJWKcgmsdsM7mpNHOvJOvlBVolya0dupzNQQ== Authentication-Results: ORIGINATING; auth=pass smtp.auth=ricardo@marliere.net smtp.mailfrom=ricardo@marliere.net From: "Ricardo B. Marliere" To: Juntong Deng Cc: ryabinin.a.a@gmail.com, glider@google.com, andreyknvl@gmail.com, dvyukov@google.com, vincenzo.frascino@arm.com, akpm@linux-foundation.org, linux-mm@kvack.org, "linux-kernel-mentees@lists.linuxfoundation.org" , "linux-kernel@vger.kernel.org" , kasan-dev@googlegroups.com Subject: Re: [RFC] mm/kasan: Add Allocation, Free, Error timestamps to KASAN report Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,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 howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 17 Oct 2023 13:15:53 -0700 (PDT) On 23/10/18 03:39AM, Juntong Deng wrote: > If the free time is slightly before the error time, then there is a > high probability that this is an error caused by race condition. > > If the free time is long before the error time, then this is obviously > not caused by race condition, but by something else. That sounds a bit arbitrary to me. How do you set the threshold for each case? I mean, the fact remains: an invalid read after the object being freed. Does it matter what it was caused by? It should be fixed regardless.