Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 29500C7EE2F for ; Fri, 3 Mar 2023 10:25:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229816AbjCCKZk (ORCPT ); Fri, 3 Mar 2023 05:25:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229451AbjCCKZi (ORCPT ); Fri, 3 Mar 2023 05:25:38 -0500 X-Greylist: delayed 1358 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 03 Mar 2023 02:25:37 PST Received: from mx07-001d1705.pphosted.com (mx07-001d1705.pphosted.com [185.132.183.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6125B23659; Fri, 3 Mar 2023 02:25:37 -0800 (PST) Received: from pps.filterd (m0209327.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3238cgb6024886; Fri, 3 Mar 2023 08:51:22 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : mime-version : content-type : content-transfer-encoding; s=S1; bh=kd9fyhb4A4Bg3zxA0SX/7pXZCwkoLX0uiLs9m3vgeTM=; b=h09YcgGswbVNsBwLLFe1N97INiSIYaVfWGEpmfcmehPo8h9Z07v7oLfkSMs+2B3cimEb 2orOTvmo5F0kJjJ8wInzWC/UsZIVWL+Bg2rAp5UZQQ9+zW42xjm4GcDGPiWbFP61L9g0 ujloSJb9+OHBSrrzIeGU1BHhqYikkNIYcW0mA51PlRuKUA7K7lFwcJ92FtPB4LngfwaV ZWgbHiFOMT6AZ1l2d3wxiDg642vdy1UhyCRXHw8PNe68Mt1d8oiFSjCnycl8ZapTeYfv SazEZJgpIpDi/4ahGSK4+bhnBhYA8+W8Op0jUN5wgxDjqEcxWFQWF36adHuqPeCvMvBI 4g== Received: from eur05-vi1-obe.outbound.protection.outlook.com (mail-vi1eur05lp2172.outbound.protection.outlook.com [104.47.17.172]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 3p06n1n3f3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 03 Mar 2023 08:51:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VOuGejFjYOgLrzr7BJ7HkLRsYRSrVWjhs8DmuXxv9qYv65LP0YooM3/ttlPoFaIDeAJWb6bgpKlB+7sFg9dBcJxMk9eeSGvce3zrXEluRNSY5bMG0NaYz8nkhswfo7cRpE/1sri8pDKUg146zNCU87sj5+QmHEpMA9+LUY507hkLhqTADMMvkyph5DiIO9YZcJ6K19NVGOtrM77YD5UCnbQolCOjyLoFNbjqiGtNf0yO5y8nr5f/G1lQQt1QZ6xv6iyOKHzhI2J0W8nuQ0uXT571ZtHBEWJd9iW8o9UJ73fsQiLi0CyToAjzga+Q9nTF/WBoEEhCKe1hOPBOnKMJug== 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=kd9fyhb4A4Bg3zxA0SX/7pXZCwkoLX0uiLs9m3vgeTM=; b=deLgZg6Sk8BQX8hfNvN6MyBYUeuaGXnm8L4WilXTeMErIrhUpArKMFGQsNbCt+WuMmiksoGxX6WKgYkKusWF2lafMVsDZ5fxdYFJGDtLre2/Pen+hhoy7jhWbX3qPD/vYWwjfGVRo6sFgVz2jCc1ONuK1LuVRKw3SfmWiq+VbUHKydp8xvUn2VhPkddbq31+mc7XJclwR0JF2t2GdJsOrJt0MMNEPxiyKVRpWz90qY3gWHoD3i8uyA0o0zSD3e5C0kB2+FnyzJmlboqAUWTPc3HzReIu+TIG9C/ONSk/OorpJNWa4km10ZfKGye36qKkq8luVqU21K9qutYI6snXZg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sony.com; dmarc=pass action=none header.from=sony.com; dkim=pass header.d=sony.com; arc=none Received: from AM9P193MB1332.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:30d::9) by GV1P193MB2151.EURP193.PROD.OUTLOOK.COM (2603:10a6:150:2e::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6156.22; Fri, 3 Mar 2023 08:51:18 +0000 Received: from AM9P193MB1332.EURP193.PROD.OUTLOOK.COM ([fe80::b1ea:2de8:5297:f6ab]) by AM9P193MB1332.EURP193.PROD.OUTLOOK.COM ([fe80::b1ea:2de8:5297:f6ab%4]) with mapi id 15.20.6156.021; Fri, 3 Mar 2023 08:51:18 +0000 Message-ID: <6f674f9e-9f32-dabb-60be-0e757e145b14@sony.com> Date: Fri, 3 Mar 2023 09:51:15 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.1 Subject: Re: [PATCH 1/2] maple_tree: Fix mas_skip_node() end slot detection To: "Liam R. Howlett" , maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton Cc: Stable@vger.kernel.org References: <20230303021540.1056603-1-Liam.Howlett@oracle.com> Content-Language: en-US From: Snild Dolkow In-Reply-To: <20230303021540.1056603-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: LNXP265CA0048.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:5c::36) To AM9P193MB1332.EURP193.PROD.OUTLOOK.COM (2603:10a6:20b:30d::9) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9P193MB1332:EE_|GV1P193MB2151:EE_ X-MS-Office365-Filtering-Correlation-Id: 1c456ab7-42dc-4517-cd87-08db1bc4742f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: WTXTWNydcsZgVa0JLEnUqVk5UjEnNuVH6ndQy89X3gxv6aQ1O6gnQ+yQyH6m8czFzv+1L0O52Yzh586ZGG0tIPDl5vlI0NacPQdxwIxfcKA9sqywgDi8JCY3FJeXeE6awGo1lYuFQMFah6dgTlZalcixKbrLWtv3khHpYxskDmesdSag+lFxkX9F2FlCxe2MvjpXig6lV8VB+170B59MgxTVr068zMTGRlErW1IWT7V8KqjXGM5nXVB3dL8J0XnRGK96lvkYFGxtRhUi93XxAuF59wZVuq89WOeL0rnJyBA88YpDD05B1k+ubK1e6iA0YM6m3Lz5huPUzJnps60wPI0qJxmZBsEFo09CyJMf8G2BKvVQo5kY5yvH0NCYSfa8kCgQZrhR9E9obl270sijR2HVDTkoGxpuge9Z1XyUp0yKg25ShH+xBRwlKSwwtwyQU9MRyKpnEIIS2G85YPCJ6PccaVLVSMSA9oPmNd3Ha8+uhIyZYsjPH8G/P8I4Fq4B5yWd+xElivQFbidI150NG/TT0LXH+0Gt+otWw+nbXHopt/zDNxHDDakvSSj4nJvxCM5hHXO4ECw8vji4Af4vKmCEH8qf4lTb5Z/LLtLnyp26MQ1GJ6zAH+apwu+3Yudr3rXtvR7iley2Z/iUy8QvV5llfNbzKkAP/UDpuCOKB9SfG0A2tkgmzucV1LgOErHqJbQqrBVRGCsjr0Qdd4Dj6+VNx9aRNwEN6feRIpvAEc0= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9P193MB1332.EURP193.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(13230025)(4636009)(346002)(366004)(136003)(39860400002)(376002)(396003)(451199018)(31686004)(6666004)(83380400001)(36756003)(478600001)(110136005)(82960400001)(38100700002)(316002)(186003)(41300700001)(6486002)(2616005)(6506007)(6512007)(5660300002)(66556008)(31696002)(66946007)(8936002)(2906002)(66476007)(8676002)(86362001)(4326008)(43740500002)(45980500001);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?d1NFOXlkL3BQaStZeGVoWjU0VXEvMkd3K1JlaXFTU1NaTm9oZDhyYjczb2Fp?= =?utf-8?B?bkMxWURRYzNUUDNxdTRvUUp4cFlhVExhUzVXNFZ5KzRPZ21xWlNVQWl3Y3Nj?= =?utf-8?B?azZmWXFSczllTmV6am5hekZUTXV4UXlRemZjdEpSbktyemRnVW9xaU1UWldr?= =?utf-8?B?TC9aQUlBTDlXRkRIdTdRSTBjRm5XUWhZSTJnMWdqQnVsT0pScGNWYWhZeFBv?= =?utf-8?B?S3BLN2NiUWF6SGJTZ2JNUEhmb3VycDBxTk9ieGdobll1NVlOSWs4OXJoQXRF?= =?utf-8?B?dXZQUGozeU9xcEkzNjU2QU0wRjRBN0pSTjExL2NISUhRbnU2dlRCQWZyQStM?= =?utf-8?B?REJVZWlWK21tTlZ6UUpLQm9paVhraUlSOEpSbUhhamlnVS9PMHhMaktUckhL?= =?utf-8?B?UUtxS3F0YlpWbUxxY2ZPcVpFRzRjT0Z5L1pPdXJFc0lrbTltQ3BsQWp1eng3?= =?utf-8?B?YWkxQWRWN3dPMmxjNmtMUDFRNSt6NzhVcldrVVNiZnlkaG5HdjdHM2l5OHQx?= =?utf-8?B?bWx4RjhxUGJEdjVxeDd1MWhTTjFoUVpGTVJSQTNUQ2RZUzlsdmQ5Tkd5c0pR?= =?utf-8?B?TzE2Ry9kWE1aOEZGRVBSejMrWkRRWEQvR3hYYVpkZnA0WnBWQ3JjRjVpZHR3?= =?utf-8?B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UUnROSE5pWjZwV1R4UHZib3YyQUZoZWcwMU5NMmxvOFR1U0tjQ01PNGNl?= =?utf-8?B?SzRCaG1hUXdwajhjME9lS29Kbk41VHEvZmNGY25MTVNySGZzeHhRY2ZYdlQ1?= =?utf-8?B?ejVOTnhJenBMdk1LNDZQTDhqd0Q5S05JaWYwZXVEbkVZZ1VoM2xUT1JqTmNr?= =?utf-8?Q?rFNINnX7l2fVHKJ?= X-OriginatorOrg: sony.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c456ab7-42dc-4517-cd87-08db1bc4742f X-MS-Exchange-CrossTenant-AuthSource: AM9P193MB1332.EURP193.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2023 08:51:18.1136 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 66c65d8a-9158-4521-a2d8-664963db48e4 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: p9dnEmx4/G+zIInVDgCAvDi9Ju+vjuLzHUQZca8+H1CLwHp2KV+aHGlZoozBm/bG X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV1P193MB2151 X-Proofpoint-ORIG-GUID: _aZe8OqDk2ZsbkVFwUZwiCTKdhf-Fu3R X-Proofpoint-GUID: _aZe8OqDk2ZsbkVFwUZwiCTKdhf-Fu3R Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Sony-Outbound-GUID: _aZe8OqDk2ZsbkVFwUZwiCTKdhf-Fu3R X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-03-03_01,2023-03-02_02,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks, this is a significant improvement. Applying it on top of v6.1.12 allows my reproducer to pass most of the time (running as init in qemu). Unfortunately, it's still failing around 10% of the time: > $ for x in $(seq 100); do qemu-system-x86_64 -nographic -no-reboot -append 'console=ttyS0 panic=-1' -kernel arch/x86/boot/bzImage -initrd initrd/initrd.gz; done | tee qemu.log > [...] > $ egrep -o 'Failed|Success' qemu.log | sort | uniq -c > 11 Failed > 89 Success The failures now happen later, around 25 MiB: > $ grep Failed qemu.log > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=1050 errno=12 total_leaks=29081600 (27 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=332 errno=12 total_leaks=23199744 (22 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=838 errno=12 total_leaks=27344896 (26 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=282 errno=12 total_leaks=22790144 (21 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=695 errno=12 total_leaks=26173440 (24 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=1064 errno=12 total_leaks=29196288 (27 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=608 errno=12 total_leaks=25460736 (24 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=443 errno=12 total_leaks=24109056 (22 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=549 errno=12 total_leaks=24977408 (23 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=630 errno=12 total_leaks=25640960 (24 MiB) > Failed. m=0xffffffffffffffff size=8192 (1<<13) i=820 errno=12 total_leaks=27197440 (25 MiB) Just to make sure, I went back to e15e06a8 and ran the same loop. > $ egrep -o 'Failed|Success' qemu.log | sort | uniq -c > 100 Success And with the patches applied on top of master (ee3f96b1): > $ egrep -o 'Failed|Success' qemu.log | sort | uniq -c > 10 Failed > 90 Success //Snild