Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3393490rdg; Tue, 17 Oct 2023 13:19:37 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE1uP8N5ZSJSaioautnjBWWqua+UnloSSMsyEc2qMjw4OZjpSXF8TyRD/iKI9IQIjM122OI X-Received: by 2002:a17:902:f68b:b0:1c8:a68e:7f1 with SMTP id l11-20020a170902f68b00b001c8a68e07f1mr3558489plg.66.1697573977116; Tue, 17 Oct 2023 13:19:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1697573977; cv=pass; d=google.com; s=arc-20160816; b=R0OaSmm8sDAYxvTPnp6OWINkDAIB/ztw+FSxlZDJXHhzeuTVH/OHkNIgCdsspK9ZBn QVmtzvP5MOFi/KU/sCCAHMc1v5wCzpbdXcmL3W6UTeYU5Hh2B39ywufCmYnQd89cOaRS QvdDWXS1WZ+EBMKjaFKOeeN83S3nsjEnCeMtCdSORjGtl9jwVkyfTtO4wAIz+Te7zGfL uqcvVhBMOY72FHSAn3Y2Oa0ExMHlPqvtMZmdizaE0sAJsdpxCy8X+dyEE4iNitDlnfBu MYcsQrnsaf2VBk/RKzYu9eM1mX6cK4H1goX8y9Xu8aQP07VkuLP43+G0rppW0pAqq1kl MLRA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:subject:user-agent:date :message-id:dkim-signature; bh=cDw4QNRhrpdcz12iAryqrnEdVrjJ07EfuZ/2BL8T3/U=; fh=KwGnOaESi3uEdSZ4dtKbj5c9dwQbcmGvMKzH1AjxksQ=; b=IJDbZtyNqP5/313KXh9Mvsx52wnqM0Nc1S8Y608e1wbd9qgiwJ1/oXubOUrLzuk71d PK1vrycKgUMUkUO4lZnuV0Bse4hxiDobsEas7ohLvktQ9zcWHD8d0OQnXLwrOy+DSqhf Vq4X1ZZqssH/qh3N2lRgY0lATps5fel67yehndV8x1rvlUVdqL8GVQgKeqrS9eNdPtE+ skR7hjZH7VLFsrC3MyxLx+OaACj8ANXUcKaGIZUsvywjLQlYPHBt5lUsdA6t7Q9wskfD VO5rHM0Q8ufqMDBTrZ/Fy4FQIcVB/LAIZReYjbriPrxhBLyH7hLey1CDa/XQK1ZFbFI/ qgcQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Kk2C6qDh; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id g15-20020a1709029f8f00b001c58401354dsi2318522plq.565.2023.10.17.13.19.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 13:19:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=Kk2C6qDh; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=outlook.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 9F90580811EC; Tue, 17 Oct 2023 13:19:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231478AbjJQUT1 (ORCPT + 99 others); Tue, 17 Oct 2023 16:19:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34552 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231149AbjJQUT0 (ORCPT ); Tue, 17 Oct 2023 16:19:26 -0400 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05olkn2014.outbound.protection.outlook.com [40.92.90.14]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3D31AB for ; Tue, 17 Oct 2023 13:19:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=HchAAx481mdhwic1lrvObpqnDUWNR2wcCunlkbBxhCaP4A3cEFGzwHPZ5houPf7o/HGAKf3LTSojtByveJln0ObzXMnMhh49CfRiwbbI5sabAgg4o275DOmqZMUBjdb4SarMKnmV+3C/BEr7msnoC+5DpqwVRp1fFNQ2EeflqvBRY87xLHdZ9fVf86uFqvbh9G7St2UGab/F1USG6pHu+w5YTuO7gBYwm32hF6v19VaKrBOrYtG34ELSubHbEp3x3SVqd//H3Ty1B6teJrsD6zkwkzhAg8wDmvlpHHrMCjheoERvW7xDiP7GsEnKYLcimuw6naVp1atuv54lU5JOHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cDw4QNRhrpdcz12iAryqrnEdVrjJ07EfuZ/2BL8T3/U=; b=ih/fFLFM+nX35G5EzVDhB50diQu+A+3LOC9HgByfqZ+eXOIbC6ihrVrIls6xXPwWYaIQfXOi5DZt37gIBaLiawPmE4KgQzqY7SgZtQ5sQOHsKJRWhsUtnC8NywsCu89xY0U+k3MLzOm1luuVcgR5cXgFBRifc8RX2kVw35g3Q5K7xm6lcK4SfUQHghpeQyUF4W8ul72hrAkTEzMFMVhy2aUT3qUzRa9sRM6+MmvwZvaEcWbbKeTtnwb7wVuE8YlL0GIDlk8P2xsDPoxgr7rW6Nvpe7ImfRZp5FZDsiTFtD/fiXT7KK1MCTBVBzcu015L+gBHURDtfSl9cC2SbUMeOg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=cDw4QNRhrpdcz12iAryqrnEdVrjJ07EfuZ/2BL8T3/U=; b=Kk2C6qDhGw+jvIjBAR/R235zUfJXqvEdVstiGE7eVpRM0Py/Cl9w4rSqKKdDv74cGpZz6U+rK5o9wimtyAiz+YvZwbYabcjTM5FsIy0fKo70yywEJOJdhL81RNbOnVeyIkdwtvBzDgCVpMxwiPPqXK1/6kZ7dDoSdrESg1V0KwdwXGuIP0Zbrgz3SuqJM0VIifam6OtVrnjqq+uQZjPCbOtjg+pVvZUVRQzDMneLrCLaM+cQL4v53lz1gBeufZTDdVGdo3ftXHosLgqt/oU8vpQd0pDih81sGQKCj+lviS5YzswkKfzXWqfNm1rXXGg5FJes34k99lw3Vvad3vNhGg== Received: from VI1P193MB0752.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:32::19) by DB8P193MB0600.EURP193.PROD.OUTLOOK.COM (2603:10a6:10:15f::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6886.36; Tue, 17 Oct 2023 20:19:21 +0000 Received: from VI1P193MB0752.EURP193.PROD.OUTLOOK.COM ([fe80::af68:c2a:73ce:8e99]) by VI1P193MB0752.EURP193.PROD.OUTLOOK.COM ([fe80::af68:c2a:73ce:8e99%3]) with mapi id 15.20.6886.034; Tue, 17 Oct 2023 20:19:21 +0000 Message-ID: Date: Wed, 18 Oct 2023 04:19:21 +0800 User-Agent: Mozilla Thunderbird Subject: Re: [RFC] mm/kasan: Add Allocation, Free, Error timestamps to KASAN report To: "Ricardo B. Marliere" 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 References: From: Juntong Deng In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-TMN: [YAWcUX6F5uacVXMXsIpXKn1iaTT7wF4S] X-ClientProxiedBy: LO4P265CA0281.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:37a::13) To VI1P193MB0752.EURP193.PROD.OUTLOOK.COM (2603:10a6:800:32::19) X-Microsoft-Original-Message-ID: MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: VI1P193MB0752:EE_|DB8P193MB0600:EE_ X-MS-Office365-Filtering-Correlation-Id: 70758ed8-4d02-4a36-fa0c-08dbcf4e5956 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ActTe+xHh6WkP3aW/tJQpEyG7+RSvBO1Co1mWEtQZiuEYx9J1c8Ia/7/uikbJnleKkJiidUt+kdwAr7WOduV1tz6yW1cdh7CbeYIl+XoLkmANpw3dsTkSX7775RXVoHhWp4qPXqFsZhFNC/kwNBuQJsS4HUKyeajSoWkhc627PU8sFsFX4CT6Z8UbbZviyk836T/SeEj0rCItxGfpouJu/hZqzMWclH8twyWjR4PiQ8a83zkaantFVlw60/QM5NfdGpx4Q84hZM8kek8nwJK+P34zY09BJFjLCiI3k3QOgWpmMPOGfr2fArH8DPRTLcopkNBKf8YbkqxCH7I+eDjLjHxyBgaNrz2rjMWBUKmsBXCUyb8/8A8U4W8kbWZVwlgBknPvEpKy9xObKlMCNRdDqyW0qElStiQkwRCm6S4n/8+3HGJ+rG0AfDAxNgEFZTXZTxb4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-8?Q?1iYt2nsbadS6MAN377Z7b8BYOH3cj5n92154z2/vCovw=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 70758ed8-4d02-4a36-fa0c-08dbcf4e5956 X-MS-Exchange-CrossTenant-AuthSource: VI1P193MB0752.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Oct 2023 20:19:21.8791 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8P193MB0600 X-Spam-Status: No, score=1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FORGED_MUA_MOZILLA,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.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 (pete.vger.email [0.0.0.0]); Tue, 17 Oct 2023 13:19:34 -0700 (PDT) On 2023/10/18 4:10, Ricardo B. Marliere wrote: > 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. There is no threshold, and the timestamps are there to make it easier for us to guess the cause of the error. More information (timestamps) can help us find the real cause of the error faster. We can only fix the error if we find the real cause of the error.