From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 53D49C3600B for ; Fri, 28 Mar 2025 03:05:03 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7CB5328012B; Thu, 27 Mar 2025 23:05:00 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 77979280120; Thu, 27 Mar 2025 23:05:00 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F46728012B; Thu, 27 Mar 2025 23:05:00 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 3DB7B280120 for ; Thu, 27 Mar 2025 23:05:00 -0400 (EDT) Received: from smtpin20.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 78FB9161C5A for ; Fri, 28 Mar 2025 03:05:01 +0000 (UTC) X-FDA: 83269468002.20.E34B555 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12olkn2098.outbound.protection.outlook.com [40.92.21.98]) by imf05.hostedemail.com (Postfix) with ESMTP id B7FA5100007 for ; Fri, 28 Mar 2025 03:04:58 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=XZM62sZa; spf=pass (imf05.hostedemail.com: domain of MartyKareem@outlook.com designates 40.92.21.98 as permitted sender) smtp.mailfrom=MartyKareem@outlook.com; dmarc=pass (policy=none) header.from=outlook.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1743131098; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ha8k2bdAbnr6N3AzQlUulNJ/zG4JTBPgONthmVI13fs=; b=lHIvY/qHSbXe0VBJUrHykWnZHPSqZWFdfijQlBER9y0IqVK+Sb1W9IIoKHEMxrI4nxDA1K 1IvwN5qT1aJNyq8pE2hq+Ko6jmoVdSp5FrLQjMytXZu7RgvIc9SkoM2B7qvBL+5KXGH9yC etvudLA4TBialJo4uDvutiztr8WtXGM= ARC-Authentication-Results: i=2; imf05.hostedemail.com; dkim=pass header.d=outlook.com header.s=selector1 header.b=XZM62sZa; spf=pass (imf05.hostedemail.com: domain of MartyKareem@outlook.com designates 40.92.21.98 as permitted sender) smtp.mailfrom=MartyKareem@outlook.com; dmarc=pass (policy=none) header.from=outlook.com; arc=pass ("microsoft.com:s=arcselector10001:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1743131098; a=rsa-sha256; cv=pass; b=gW72FfjcjsdOkaS0lMpctwpdEgznY4thrvQEdz9KzKfn8Cf2Vh/tm/AMAGvVosR5fO8piT 74cLX2mO5L2sRBUqNy4wDhAnQQPBbIJUaAjIEU1rvy5/DImeYFTqfoIUmHCRc+YVkQFTtZ GFi38Q6qwvRlUOzHwmfcf96REJZvCfQ= ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=CcvpBfhjQ/4QUfVU1NBFH4ZGdXA6PphsfLwc5zjyq1JGoij0dSSx87Ejf6ypcE+/r6UyBRE+dMQ9E8z1ieB3uiqTjzYTg7Wuzbrr7YWeG01GIqSX10ADYs8U2suQ8e3uAMzhwMu9rV1dRHa2BOU990/+lDexrTTZ7Vmmc/xJphA1iayE0AJqu7qDoBM9R04jvAt1BOCSzkHt//kXmQB1Y9VMpenWypBXJTB8LDHgyJ3c4b/7Ywlr8RMQzjieOST1gCjxg2CG+PzmnIHuRZh0KB9bmuobNwGtD+LWjjhe5kMR3eUoAB38JfYXQ2JoyVSYuIzE0pMHqJGiAy2gfisBSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=ha8k2bdAbnr6N3AzQlUulNJ/zG4JTBPgONthmVI13fs=; b=H7FNtcajSyBFZOehWpMrCxIw0MFscm/wJP2GUHNwQMQYWhkS7RuUheYOxzFfPpaWtGoS7UrLcdzVc3AtBpupruyeoY43SKzPh3mn6gn0nIALvDLXLwlGT11FKUDxL6Sfur+1QjCZqDufgTbpQO4lKikgCVRUelcrNTNvZBVSMJchYHOmeVTS9R156Ky0gPGzZBUNH00hWnTZHwHPkaW+lcGl45MFm0Bqs4ZhXs42FjrPJM4mfjzwbaw8WcLJfzuXY3Bysx8e/tvIfpXRWspUDBYEMLbHkyBJC4wBoSbLp1Xdv1LAWexilTXVC33CtuLTtFtK1WtBK0Wk1a3FeHkcLA== 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=ha8k2bdAbnr6N3AzQlUulNJ/zG4JTBPgONthmVI13fs=; b=XZM62sZaRL648czeQwT/k7b8i2l7bbbyd4E/yrZhMTmxPGCIIfGI1UhdTF5Oof7J8zJYoFB8sRQ0LTMKuhD8wS6+TC/Q1IIzXzTL2QNq5rhKbLD+CL74iUMw/ZIb2+BURF9xHEstqLZjaHCjlP4fVPIaQkn9LRmWel5Ce3ZJKeooavEhQgu4wsIaWDpSsF6hH/hNCAlwjc8T7yrXwkqLBWyn55jUsKNfqCFvqhzRyv91Jc11NmjKY3pv9yCRBr9mDZRribgUts/ajoGIQByv7pBCIFmDYeoLejNPZnSBcVfzW7dj/VkeRjYsDC6obs+2d4FleAIJqvJuqu3KmIUDIA== Received: from LV3P220MB1815.NAMP220.PROD.OUTLOOK.COM (2603:10b6:408:1d6::19) by CH3P220MB1941.NAMP220.PROD.OUTLOOK.COM (2603:10b6:610:1db::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8534.44; Fri, 28 Mar 2025 03:04:56 +0000 Received: from LV3P220MB1815.NAMP220.PROD.OUTLOOK.COM ([fe80::6590:3e70:cb56:d25c]) by LV3P220MB1815.NAMP220.PROD.OUTLOOK.COM ([fe80::6590:3e70:cb56:d25c%3]) with mapi id 15.20.8534.043; Fri, 28 Mar 2025 03:04:56 +0000 From: Marty Kareem To: Peter Xu CC: "linux-mm@kvack.org" , "linux-kernel@vger.kernel.org" , "akpm@linux-foundation.org" , "shuah@kernel.org" Subject: Re: [PATCH v2] [PATCH RESEND] mm/selftest: Replace static BASE_PMD_ADDR with dynamic address allocation Thread-Topic: [PATCH v2] [PATCH RESEND] mm/selftest: Replace static BASE_PMD_ADDR with dynamic address allocation Thread-Index: AQHblInEzcW7yK5SJkOL+d62e6NbWbN3tfwAgAIQHYCAAMIngIANavrE Date: Fri, 28 Mar 2025 03:04:56 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: LV3P220MB1815:EE_|CH3P220MB1941:EE_ x-ms-office365-filtering-correlation-id: 4feeb530-4210-4c77-6f14-08dd6da551c0 x-microsoft-antispam: BCL:0;ARA:14566002|15080799006|12121999004|15030799003|8062599003|8060799006|19110799003|461199028|3412199025|440099028|13041999003|41001999003|102099032; x-microsoft-antispam-message-info: =?Windows-1252?Q?d4RWP3bk/1rxfBHMRtgA2dP1LxjxognocoLQnXRq04PAYc1toUVQDcdf?= =?Windows-1252?Q?tZhL0V916DoMitesZvdagG8ZheFGKD4/5ydODzqsOnBA9u/+0enKQK3k?= =?Windows-1252?Q?1CB9BT3gxe3zQMMBCFZv7Kv/0sl77YSGtMXddNfuNBG92Qv7z5K+8sti?= =?Windows-1252?Q?Kc2Y31P69tuxu7NrRuqduU+F1GDesTgJAiI4ph/Dkw0vuEC3/usVVwvL?= =?Windows-1252?Q?Wm6xcT5L3FmHdKa3AJAtT7L84GQqe9+IGjr4SjeVM8F0kJfjUSF5/FDV?= =?Windows-1252?Q?VVYMteMYwmSV2fDtMau6jEUzcnH6IjIZw6BSYhP17vADNuCTO3+VaCP8?= =?Windows-1252?Q?H30QL1DKO+AzU4BYJ+Qupy9T4DRyGHnhkVBQe4HlDnVO2pVGOChuDoiJ?= =?Windows-1252?Q?Vv049VwCXvMqfjbUXZikcIJXumphPuNFS2lmqfT4xKF1ZhchJRErz3U+?= =?Windows-1252?Q?OHRo7l8rkE89B4J4k00CdT7V5+D3raT0oYLg1OPD/qTBYRglQSjIuJTl?= =?Windows-1252?Q?bf480ZftX4YGbvw30YfSXxFSNZjgZN+OJmKebUHN55Xi7jBhst1Lv0zP?= =?Windows-1252?Q?w84PK4g5tOhDPb9cNG9x+L0BrXK3oB5mu104Wgz2BdAaEiPuaCra6eVn?= =?Windows-1252?Q?APPfHiwDQvigE4bT4T95O/z0gFCbeH8yaqh1Is1UkppFowpecWdYR3xm?= =?Windows-1252?Q?vNSiZ0i0pIdiVSOirWb922KYgURkB0D+w9SjNX90eFyVrmAUAMld8XNj?= =?Windows-1252?Q?lxTkUbkCJHy1B4Uq+H/hv1na+ndqdrsGW5r2nncdj7dQ68/SM754QNNZ?= =?Windows-1252?Q?8AdhuoDJLZvkn5UTY00kh8OzX8MMXPu8usiQwibkbMyunQLwohjtURsd?= =?Windows-1252?Q?jlchWkDNuiukmyVqaBh/K41Vnm3wTLKvkOhxr3exQzEfXf3dIoQkawOV?= =?Windows-1252?Q?9gz/3bpBNXLAO+Pb+uxc889xhUdzfeL3VvCcipmv++CDKBK90QTKnSN+?= =?Windows-1252?Q?TZIM8xgf4bXrz1ZTn4EbyH2mv7VkA8GUQxuFro/iiCBTY5evB/6POESn?= =?Windows-1252?Q?9BFG1xZARZRtk4xtQgrvBL8DBPNZm7ZP5wyLAlmUJA8G7Jfy+5PCru8+?= =?Windows-1252?Q?5zklc6PP6MlQfmIgwV4YK5hHZJ3p6kOpQxDHJ7mKBg3Y7R+uS+i3FMR7?= =?Windows-1252?Q?kEaqPDpoS9NeUq5OKsGpJ6y3tq3CtiI2M6M9kVsJ5DmvuVEgQcgoVb80?= =?Windows-1252?Q?nTtG3ASD42BSPUTDi8RmHkouQ4hhVfF517UnWo1Vu3bu/8QfX9fQL6bD?= =?Windows-1252?Q?uI8WGQ=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?oBhgdTiUPMO+kr6K0HfaXykFHt/x5TkqBLcNvxY3TibFtkAJNNp412YS?= =?Windows-1252?Q?4uTbRLxIHdO8JxEQQPPzKwT6hwkNhj0ozKyNeYD56d+JpDKdX46MDv8l?= =?Windows-1252?Q?ClxpNA0cRmmsH6RwAwTPrWpkw2rzS/QLPZvz3l3hrwjMcrnSX4PMM4iq?= =?Windows-1252?Q?8KLM/GrjezU/95Q9VPW9FpjFXKHfwBXcAGNlcCecWkyVQxaA2+bRbiwT?= =?Windows-1252?Q?hT84oiaUcqahVibTTOz8BIfZpAlU2tIGelA93QWNRb4kE/5dBKc0e+QR?= =?Windows-1252?Q?W0GlexvH0oGSw5d8ydxAMbrk9V2wm0Htrm1m1uSaRcoKLLlngPurJpva?= =?Windows-1252?Q?LTe17m1tFuKjgosxYrNNgMiBFp7T1oim7tmktJSJmrf9adwReWhwtae4?= =?Windows-1252?Q?9vD84KU+A9riNy9umeu30GFtqHlMuA7zXYqzG1jgpramsf5oU2ODsXUk?= =?Windows-1252?Q?U0hoFyHAdEY3z5oiv4jTb46VftAuJJtNF/bw+7edRATkFPk0f7L352Pv?= =?Windows-1252?Q?V0A3NzFAt50Hiz0erPv0F4+cEXZur9iztnPtywcTY9BBwlGe0PrDSovl?= =?Windows-1252?Q?P0Oad4UxX+jTlrKOJ51YBOxNnFa9GNX4Sl/dcJnI1ezjtFb42DI47+iT?= =?Windows-1252?Q?9Sac76QsCqhSyi1zfbbaQo8QIen9snK6SbhdehitYOysgodX8Mzzaui+?= =?Windows-1252?Q?GJkKZESOYREAcaZSsjl9p5SLj3dpC+7BsSFIoKldjtHRkb1kr+GR/cWu?= =?Windows-1252?Q?do2F2pmy7UcIO8CGmvetyYZLsA6nTuNUxXqRLBr5yGugj08h2gAUmJrL?= =?Windows-1252?Q?Fnx+js61boLIISE69YEANje7wfjBfUUPYi77p/PIDGZAGLh35YLqpDCo?= =?Windows-1252?Q?t3S6+y3IuhMvMEIUkpOG2HqM5sYGPvC4EIQTIzIwzy4Lso2ucB33elVi?= =?Windows-1252?Q?puhKnBB+HTI8tyrE8QsI/ixiSiAWAjKMo37jdK0wHcgeaXKgnpgSoMFX?= =?Windows-1252?Q?xmA93aF8i312ZpvETuIp01KxvTbaJLv/L+pdMnlk+33K3xkz4OocqfDK?= =?Windows-1252?Q?+5rzDsqQGrG9QYk+pLuesCnaF2tqz25RbS/6ocr+0lKdekuwaChsDOmv?= =?Windows-1252?Q?bDG/o7Utg3k5cdT9zrRbNywFgvBHT6W5HsNaLg1eR9ls2QNfix67TCqH?= =?Windows-1252?Q?cOn9ZWa4KIOgDMY5Bg82Ick6HGI4h7zgHRHONOWM+pnPTEw3VUEeKPZY?= =?Windows-1252?Q?c47dr7E62RlKGMXyL3pyvVL2cOBUyO/FVYhzsbrlijAwDFLWocJ1Sgtw?= =?Windows-1252?Q?TOIRvFOz4MIg1qxiSNbN67u78HY=3D?= Content-Type: multipart/alternative; boundary="_000_LV3P220MB181573467230AB623C074478BAA02LV3P220MB1815NAMP_" MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: LV3P220MB1815.NAMP220.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: 4feeb530-4210-4c77-6f14-08dd6da551c0 X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Mar 2025 03:04:56.4684 (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: CH3P220MB1941 X-Rspamd-Queue-Id: B7FA5100007 X-Rspam-User: X-Rspamd-Server: rspam02 X-Stat-Signature: 3465dfmr7xpi7pqa6nz3j9enunhwhngp X-HE-Tag: 1743131098-410909 X-HE-Meta: U2FsdGVkX19PQxFmwgDfzgRhlkLsrrMMVTM66pkbnnRaDaW+NI1D92EFNGOowAuk36Dt+bK4c/5e/W1SU62OlvdFgYfXS+pDVbbrnUFyX+PKqrTbpO1b297Spng+68eBKnhqqPUw4T45FAYWkJiQ1ytwq7OqPI9t9Z1Dwgkr4WTh8Kes5UGIqq/GRVSSupYJLClN69NnW/9WTN6S+9+Ew2Kiusb++RbKbIJwOHuNbGz+TQUEzCbiObG99kxeGyySShQrL1T5A+ZvmMjOsyQvIYrL9SA0ZPFKU/TJTyAZl1yeBFBKTFIX9W4IHt1kBI0iJbfPM2erTcPnEm/1dO/RVy5dC+LS3slabojG16ParBF+KBJvyx6VkKyPyfEtytuRwLh+G4W7BRI5hOaPiJzwo0lBsWi/PZzoVkS9H/fn2AdHw2kFVHuygBfkK9ucUYXm0Ac5eg5oCZMTbbE2v9HA4FNbzVmhx3/gf4rtfAI2rlLUj1OJ/JylA+WpiHe0EWqoWZsxqsuhOnBT7hQKTfP5pgeCBVuUysgx+t2Cz1aIZrkVVk5NqHsjunaqEkNfk0SwPD6sdcsiheRdF9hUpwx10vBoh86JVb29U8jCnbuMx8PTVFTaUJMS27/stYeWMxtj90r7n7y6WOSrE8Pyzd+jdUSj0j73TowvgrkQOVQ3kL/wv1ZViFTm6tBWYJEfvx6rdKNwC1AnAr1taAGiPml3VaXeOg9yfXDe39T2rYshHWv7J4P+lH3YdKoEbhvL5kIO+zViCf/DGISp8Ny91qhH/wFT4JCIS0FH920YhbRorjkS+Yfi67Uumw+vCOk/aRLTRvjFTWMO0qblUV6KSgLsZt7wZs+LwBzY6a6rmI9lFPQFdjeNxqQJvaZm2dW5QOAPcFGcwTvOzrf11mo/YqYWO57fo/pxgz4hc/F/XVmz3h+6VxJaL0ALrVeDeqe5H1/OqCNphDOWVI8JTq4/mWY wwjEtHo0 GxFBje6F469tHRQukpi64bpH6IJVflHAkY7E3LZJvlLwEA8auJQgzrzEFWQ2TIc0ZAoaTQn5rpqtqoxWnk9ThmdDnwaoCXIwvMeG+3oiBHqyRhD7EHWkAVya1IC7TAJnA0ZyluXvCvY/UBslMZHzPsipPlIuPtU6JtrSe/rNY0p2SpfqlqTAjNT4GQ7vvEHqBo4OaftuNSYjT8uSyYJt1a4Q+x2YAK9ogqr7Y0QR7KBHsT7pIHL/dhbBBKKttvKPZQIJtqSs0kgg3hUnLu5fPzrV5/39GCz+trwNbP08ork800sSWbcUMNiV7B1BPOVR/qIpLCVipAJe2gRYB/7WuWxgqlOyY7arGOcawGhCu9AXG++vXn0C3F2m8+kTRlXlZgTnWCluQJYH9m4YHWeVOP+VM0aJwhKJCTW6ks0Roy2n4vS9iN/g3ohTiWEn5uRw56ZoHdCAn7Jt6HhMZBdm64gY6sDhQ7QSzmaYqcTbqL/gh083xS8Ebz4AxpGVd6gX+BAnUziMhkPhM/dh4DIvnLgaK7etrR36Ifd8tBjgcrRarDIYZfulgBFaam11zyogWqbmG3bTHWoRQ8kFGGjeYY9/l80BXq+CJWYYTS4aVfc7GNn+T97uByPJffkud09LH8q5W7slhyRRUnp3qepk5wNggefPCExbGnTJguPPQKI3l7t9IspJtQi6bjluuEzLISPHzpiB9u1HJy36wcaKL3Ol2XMl2kBA9OhUX X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: --_000_LV3P220MB181573467230AB623C074478BAA02LV3P220MB1815NAMP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi Peter, Thanks for your guidance on the proper workflow. I just fixed my git email = and I'll be resending my v2 patch using git send-email as suggested. Best regards, Marty ________________________________ From: Peter Xu Sent: Wednesday, March 19, 2025 10:10 AM To: Marty Kareem Cc: linux-mm@kvack.org ; linux-kernel@vger.kernel.org <= linux-kernel@vger.kernel.org>; akpm@linux-foundation.org ; shuah@kernel.org Subject: Re: [PATCH v2] [PATCH RESEND] mm/selftest: Replace static BASE_PMD= _ADDR with dynamic address allocation On Tue, Mar 18, 2025 at 10:35:33PM -0400, Marty Kareem wrote: > Hi Peter, Marty, > > Thank you for your detailed review and suggestions. > > I've updated the patch to address the race condition you highlighted. In = this v2 patch, the following changes have been made: > > 1. The PROT_NONE reservation is maintained until it can be atomically rep= laced. > > 2. I now use MAP_FIXED to atomically replace the reservation with the int= ended mapping. > > 3. The MAP_FIXED_NOREPLACE conditionals have been removed, as the atomic = replacement works reliably across all kernel versions. > > 4. The overall implementation has been simplified while ensuring robustne= ss. All look good here, thanks. > > These modifications ensure that the memory region remains reserved until = it is atomically replaced, effectively eliminating the race window and impr= oving test reliability=97especially in parallel test environments. Benchmar= k results show only a minimal performance impact (approximately 1.3x overhe= ad vs. static addressing), and all tests pass successfully. > > One note: I'm currently having some issues with git send-email and my Out= look account, so I'm sending this patch through Thunderbird as a plain text= attachment. I=92m working on resolving the git send-email setup for future= submissions. If your intention is to try working on something on Linux, let's try to fix this. Using attachment is not the normal workflow, so you'll need it sooner or later. I bet now with all the AI stuff recently, it shouldn't be hard to ask and get something to try even without asking on the list, AI should be able to look at your specific issue. Then please send your v2 formally with git send-email. You can start testing that with sending to yourself of course. Good luck, -- Peter Xu --_000_LV3P220MB181573467230AB623C074478BAA02LV3P220MB1815NAMP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
Hi Peter,
Thanks for your guidance on the proper workflow. I just fixed my git email = and I'll be resending my v2 patch using git send-email as suggested.

Best regards,
Marty


From: Peter Xu <peterx@r= edhat.com>
Sent: Wednesday, March 19, 2025 10:10 AM
To: Marty Kareem <MartyKareem@outlook.com>
Cc: linux-mm@kvack.org <linux-mm@kvack.org>; linux-kernel@vger= .kernel.org <linux-kernel@vger.kernel.org>; akpm@linux-foundation.org= <akpm@linux-foundation.org>; shuah@kernel.org <shuah@kernel.org&g= t;
Subject: Re: [PATCH v2] [PATCH RESEND] mm/selftest: Replace static B= ASE_PMD_ADDR with dynamic address allocation
 
On Tue, Mar 18, 2025 at 10:35:33PM -0400, Marty Ka= reem wrote:
> Hi Peter,

Marty,

>
> Thank you for your detailed review and suggestions.
>
> I've updated the patch to address the race condition you highlighted. = In this v2 patch, the following changes have been made:
>
> 1. The PROT_NONE reservation is maintained until it can be atomically = replaced.
>
> 2. I now use MAP_FIXED to atomically replace the reservation with the = intended mapping.
>
> 3. The MAP_FIXED_NOREPLACE conditionals have been removed, as the atom= ic replacement works reliably across all kernel versions.
>
> 4. The overall implementation has been simplified while ensuring robus= tness.

All look good here, thanks.

>
> These modifications ensure that the memory region remains reserved unt= il it is atomically replaced, effectively eliminating the race window and i= mproving test reliability=97especially in parallel test environments. Bench= mark results show only a minimal performance impact (approximately 1.3x overhead vs. static addressing), and all tests = pass successfully.
>
> One note: I'm currently having some issues with git send-email and my = Outlook account, so I'm sending this patch through Thunderbird as a plain t= ext attachment. I=92m working on resolving the git send-email setup for fut= ure submissions.

If your intention is to try working on something on Linux, let's try to fix=
this.  Using attachment is not the normal workflow, so you'll need it<= br> sooner or later.

I bet now with all the AI stuff recently, it shouldn't be hard to ask and get something to try even without asking on the list, AI should be able to<= br> look at your specific issue.

Then please send your v2 formally with git send-email.  You can start<= br> testing that with sending to yourself of course.

Good luck,

--
Peter Xu

--_000_LV3P220MB181573467230AB623C074478BAA02LV3P220MB1815NAMP_--