Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp1573168rdb; Mon, 2 Oct 2023 14:03:15 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGsLANZAW1eASq+x7FuPmrZUY8RN+TJHXL6Q+Pp85+qZWXZA93XzgcIypYE4w7iKDMByVOg X-Received: by 2002:a05:6e02:1d19:b0:350:f51b:c32e with SMTP id i25-20020a056e021d1900b00350f51bc32emr17246543ila.16.1696280594912; Mon, 02 Oct 2023 14:03:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696280594; cv=pass; d=google.com; s=arc-20160816; b=1FKT3AlHadwbYM4Gnbu8BlNM2Bvl3mY9KPTobmjTSkpZrjtz72JRcEIJpcJySy5oND 5nLVlei7rBKniVRjEvxCYwBNDeP0vlOR9m888qnSlLvyw64X8OItZ5n9Hrv5a/83oNxD D22Ek9dWIRjI90YwWBWQfyEEre7305Zdz0ocrM4aWidklD/wLBQtT1J3xIe02vNesmIk HEJdDHhN489+El20QwLWrtDZlmZJVRJRyNS4UOxd/rXJXnaH8DGj6BvAEmxromjwuTZ+ /61wrKXnFkDRixzVKd2pGpTo35I3To3Z0tVz/v1lT4p4vqLumLAIGWpcqkIIRxveWzRx vUUw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:mail-followup-to:message-id:subject :cc:to:from:date:dkim-signature:dkim-signature; bh=u+5DXP3mdurF9dxGYP8pOyZRtkgZPdLZBjzSkaT8kcE=; fh=w/wXNuJ5pb6Ge4Kf5/nm29BvUJtCRUYX2Akl2kxxh4Q=; b=HgGkd5dNMOFGCfEPlvOvr+ICKca/QE+3fJVDeEtzmabHoumn8o3n+5JgsoE/OdCLjX orEh+NHSpSXoEgRk10r48gSV5yrJ63Sc3YssSY9BXTO1/bDpA2/a6d7/wnC4g3pocbZM V3ZgSJxInfnDhShNMfh01483C/UPb99gSrQJ/qpEJCS3XL+0j73hls+m88be2MVeEAzD l/Gc5z4leh5+5bx8v7mh2cey4uD4PEZuWpN+dRKZnqVtQ2m4r56acBOuUutk29PniC0k 0Zi4J3oww1ldbncvuU0szvTJ9Wm335wP1lzLZhgHsE6IsDnoZhARBesVPO81Nt3UevK9 LvdA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=M0bGQcZq; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gHO7UDWZ; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from howler.vger.email (howler.vger.email. [23.128.96.34]) by mx.google.com with ESMTPS id f20-20020a637554000000b00578d71884b4si28723384pgn.194.2023.10.02.14.03.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Oct 2023 14:03:14 -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=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=M0bGQcZq; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=gHO7UDWZ; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id 458C5809AFA1; Mon, 2 Oct 2023 09:43:45 -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 S238050AbjJBQni (ORCPT + 99 others); Mon, 2 Oct 2023 12:43:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231972AbjJBQng (ORCPT ); Mon, 2 Oct 2023 12:43:36 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89AE0A7 for ; Mon, 2 Oct 2023 09:43:32 -0700 (PDT) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 392GDxKe017462; Mon, 2 Oct 2023 16:43:16 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2023-03-30; bh=u+5DXP3mdurF9dxGYP8pOyZRtkgZPdLZBjzSkaT8kcE=; b=M0bGQcZqcNv3RqGEQZRUZs5stEaabD7sXHOjCT0Mm//7Fd97xNqCOnUDNGa1PCFTj9Pn QHM5nyVb3NMSpXTbSzsYkbEkXuOMRtyWdOGIN+pV5eLp4V7Wl2g1/HnouOE6dJX4c69h ojdu6b9H9w8OnOPLjbWPUNnp+PaXXuJVO3TqCM5vbSxPKhHbjNIgV/r3LoBrQgSkTVzC C/oypbp2fO0EZiQGU2tG7ft9gVjOVbJdMK28p7EGclwMXrg2aWTs1Lutf1BMBbu6MZFP nLz1bLsTm3pS/VmnfOTGsK2XeMgFM3SWs07cOw6d8RiM/MY/o8HRr3jxM/o+x0ghA+9O 2A== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3teaf42xnq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Oct 2023 16:43:15 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 392GVH2D008788; Mon, 2 Oct 2023 16:43:14 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2172.outbound.protection.outlook.com [104.47.56.172]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3tea45b6x6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 02 Oct 2023 16:43:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ho2qCJRr5f2TeKOz/JfJCB2OirrUu+0g7Fh8zY485A/xzmHMw4f+cwgGLOOs6VvKTsgR39Ag77ocVuN0riEmGzluCRFK/LgPoqsMjv2vEzAziUKYIcwRV9zhI5BcwHhGGWcF8qfvU98Hv8XmmlQtgqEblGfEkcjNUo6TdihNzjgaTXOYSW7z3AHMT/Pltt/Tly6DQuOTHl6Q93DK1c6QdJdsecVCztEx9K6CleNr0rS97KahJQSVG4AHq9IYDcnJjb08WMXXiAw4r0jzNvNXmImv8G1JX/fB1OvxIvdx9erL+XBLTl+epnxs9YZ/KeBl5LoJuElo+8XTobV69H3EDQ== 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=u+5DXP3mdurF9dxGYP8pOyZRtkgZPdLZBjzSkaT8kcE=; b=X5a3SD8uaDD0yroAxMjK7cp1D9tRmZ2Jw3mNtdzNc8Xrd/ExXJ10WtSqbqc9OCRiVodClax1v9Ym16H0q6DwkKk/2j8Npqsn2j2WmQdbu4WzoZPqdjapEnLf4JaDzImQjM+NRH2xIscUZmvXv1o0hC3fHHLRRP1PcHB2NH3EaSAx6er3jPhscKrCYLkCd8Lko6kpmLTa0WVTTSTD4gEm1W/4+8Ogw9QExtBcYkboF2uVAxq5Q0bJoA9ex6FkRhC5gCZKpjTf4eOei8hL916QLz1wzr4+aPDmZKzNAme413X2S4uifKRFS26bX8Y/QZ+IjBWhNO1ZVMixHlMdMnlyQg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u+5DXP3mdurF9dxGYP8pOyZRtkgZPdLZBjzSkaT8kcE=; b=gHO7UDWZ6LR1oBk4CxRhA0CHclXZdCd42iI9D79dDSOChV/AV0RGMwvNPEYced4Z+rTvHfHnK1mHFjmvw1ung0169iUY1j3pMJZmMzUpA2WNQLSFLjDyc6nsAdJ5jzGwCMUP2cJlVK+PkN+6rP2rQXSPGb8VDqlvyxNzhN2CIbc= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CY5PR10MB6096.namprd10.prod.outlook.com (2603:10b6:930:37::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6813.20; Mon, 2 Oct 2023 16:43:12 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa%4]) with mapi id 15.20.6813.027; Mon, 2 Oct 2023 16:43:12 +0000 Date: Mon, 2 Oct 2023 12:43:10 -0400 From: "Liam R. Howlett" To: Mirsad Todorovac Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: BUG: maple_tree: KCSAN: data-race in mas_topiary_replace / mtree_range_walk [EXPERIMENTAL PATCH] Message-ID: <20231002164310.bi62wfekacfxb3ve@revolver> Mail-Followup-To: "Liam R. Howlett" , Mirsad Todorovac , maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org References: <9c1549f9-78c2-441b-8617-3ea3c080a5a4@alu.unizg.hr> <20230922135155.tqrelea66hcj5cog@revolver> <5d908c60-88fb-49c0-a150-bfb468eaa513@alu.unizg.hr> <20230928195926.ucp7it3c3c75erzk@revolver> <5a30110b-2457-4638-8779-baa33326f6a6@alu.unizg.hr> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5a30110b-2457-4638-8779-baa33326f6a6@alu.unizg.hr> User-Agent: NeoMutt/20220429 X-ClientProxiedBy: YT4PR01CA0204.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:ad::12) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CY5PR10MB6096:EE_ X-MS-Office365-Filtering-Correlation-Id: a2a96d82-775b-4327-c36a-08dbc366aaf4 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: bI8A2ylmDLTjtCxrynElFE1w1WG9RoSgbAws4CnaibZUlf9S1YcxT1FmH+NlfaFiolvKJafYotxBM4t/4LHTDeayWmg/bavvJCh4K3U+O/xQBbCT4+zUfzS+SxS5DiBKA4nhyOKI72c59AUX5cSYbZ8ocVb3IkJIVy/7ijiK4cGhuw8Sgj8p+jz0PjLlubxpJmtFM77L6gGyVt+CNiWnXtZNdL0YJXAdm+w+plw/eZNj4qrjB/pC+wsXhrSKZI3rqqMSROUrqOxxsp5zR2+ALLwD00I9G1demPgY9A2/rtB5vTAkk3FxjxHToGWMgFXxsmM48h6G4dFocXBaLy5b7salgXHpvV6QJgHeWF55HfKtAztNro15RgKtMWpqELR52CVwPxm8hDjhidLO3wcX4yfKDtknDEiR0l5vYSkxnPfu4LM5U5cb6UONs192X4YENnHAyydxbCAtyFoG0YFZ+RdlVuaRgqJDhCJOtvu+bcmhb075RB7lf37wy1wft9mqGj+dkAaKJGsJZ/M6IEXklQ/pfvU24QrmtSCMC0qpgtt9eiq6NxAuT8dly/QQYZdz X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(346002)(39860400002)(136003)(366004)(396003)(376002)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(66946007)(83380400001)(26005)(6512007)(9686003)(478600001)(86362001)(8936002)(1076003)(6486002)(66476007)(2906002)(66556008)(5660300002)(41300700001)(6506007)(33716001)(6916009)(8676002)(316002)(38100700002)(4326008);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?P2f4V0fjJ2hD+w2dCGHjWgpwdQ5f+yQZp/oUImboBt8ih9hNsYHre9AhtD1c?= =?us-ascii?Q?hOaMMC2v7lrjW+ALEjj+RWra++01PZ0ABZE1+xeX54DsW5tXgJZ8o3qJ0u3Z?= =?us-ascii?Q?Wzi6K/eUmV4clpyBwPxsK+uB2TwSryb84isr15fzoucVv8b2ef3g4/ayEymW?=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475D/dsUDbBdjbAvWJ1OAfvijg/2J7WTZ2d8rGaHiFsFy2yqY4iPdMipXvgjqvWgrrOk5KAoYE7xSR+AFOmwmkb8UAJu4rq1uEP22hJBWCVPsUY2OffGelWnGPU1Fa4Xn6rd2yvHceqsmJfqQb55EK8ux82jhkU28OeMNknUYIeStfC6vR9UPV/DJP6Jf4zBsehZmvJo5R8z8HYlKPuYywbuU+xjgBEZjYM/BAnsd0nGv+IJjrEoOqXI5YnNUyLeA2xxlg9EV0y9yBBtLXgh02tk5oZIAFidteJD1o6XjSi/5okGEkm5W0VywsTdMVw2IuNYV0ZNmeq4aa6fu4IQupEgGwY1JhLu8ldy8ZaTvam7/SjUoI9wh9+VBNFlrqkrUYAMqo7Xkne/OyOws3vFIDB98exOJkQvplFuCSUd3fIW1HGhpIzBPvipaMHr63hNiuN10AVS5AV8mW1inD6kzS2G0EgR4e6pmCXxMsPqMMw6rEoG64wr5Tq5++CosOqAPkYZKFfq+8j4dpEdtBiL8vb/9SjaEjHSZJD8ZSsHuX3qvOmyXkcMVIM90GLfXVhYUfXDef+c X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a2a96d82-775b-4327-c36a-08dbc366aaf4 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Oct 2023 16:43:12.8308 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ockw3UvBZFv08yLqJWAWB/m/g7sIgAr3AX+kQvx3fmBZEa/yQUGer/MB4ukDCZTKxs93odYwR64srdEhwZohCw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY5PR10MB6096 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.267,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-02_11,2023-10-02_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxscore=0 spamscore=0 phishscore=0 bulkscore=0 mlxlogscore=999 suspectscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2309180000 definitions=main-2310020128 X-Proofpoint-GUID: _HsWoX3qYTaeZrqAdou0C405Pnxh64j_ X-Proofpoint-ORIG-GUID: _HsWoX3qYTaeZrqAdou0C405Pnxh64j_ X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE autolearn=ham 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 X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Mon, 02 Oct 2023 09:43:45 -0700 (PDT) * Mirsad Todorovac [231001 17:09]: ... > > They say that one patch speaks more than a thousand words. > > I am just running this little patch that actually silences all of the KCSAN warnings. > > I cannot tell if these reported data races are the actual bugs, but it is possible that > the Ubuntu 22.04 gcc is doing some funny stuff when optimising. In Prof. McKenney's > book I've read about the load-tearing and store-tearing. AFAICS, memory barriers should > prevent load/store reordering, but not the compiler optimisations. > > Please find two versions of the patch attached. > > While mas->index and pivots[offset] in maple_range_walk can change concurrently, > I am not smart enough to see whether you expect that in your algorithm or is it a potential > bug triggered by GCC optimisations and aggressive Ryzen 9 7950X parallelism. None of this is necessary, for sure. I will have to look at this when I have more time to investigate. This will likely not be soon, however. Thanks, Liam