Message ID | cover.1730123433.git.lorenzo.stoakes@oracle.com (mailing list archive) |
---|---|
Headers | show
Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C54881DE2C1; Mon, 28 Oct 2024 14:14:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730124888; cv=fail; b=Si20xdxLop12WmoANml5pGBQ7bIIIAmDA7H6LYqfQbMYF7pvHlxof837xodDOYtHMM7XouZIeJPmaqiw0c48HEdADv5BIxMVGrHzBrH1cfe1/6rPCmscInwzHw+qxJCnE+hIMgTfXGETBbNrWX5P0a7x8X+sFKRW5bU5jUkoZOY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730124888; c=relaxed/simple; bh=t31k4CLIPWkgxC4Oty2G27J6kezWgmbx0s/baj82864=; h=From:To:Cc:Subject:Date:Message-ID:Content-Type:MIME-Version; b=NIi/pP6VqM0T5Ej0ACGuJLd4mMdI5psbZ5mf4q4MWZpRV3jwVYhPYrTBsUv2yUu5Dp2nQzzvioYtbc16ymrUqXl3biD5UW8GIhZeFGOvFZTBa+/RdR0a1LELulhXgjNJE+ujXRebCSocNmXk4b9V8xU8R5BHcfpte9+1k28i1Vc= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=lCaRxita; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=aLgRz3MN; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=oracle.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="lCaRxita"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="aLgRz3MN" Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49SBStOc030440; Mon, 28 Oct 2024 14:13:43 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=corp-2023-11-20; bh=IuCkv98ioR8T1DsE 9PcLGhzdZ8U6gfZuTlPOIj4E/BA=; b=lCaRxitaa5dQ0+7MLpzOoJMMd0m2aPi7 K07Srd6s+vCUfwuCPle3To7CK2taV0YEUoSuEsb0C66X7Zvb9ciSgeNYteSu1wE7 4zuwjze+T+NvtOpGmcy95pzxPvIrQhKYh2pFaHoy9SSVVStE+XWIYkQx+5BnQOnV eM9vwvxjNl5WWJUAt0wzxma+rzmU/mU5Dql7DHIJGE0GAV1WA3a44Qpc/2ZI8hIy tb82uySnQ/vhqXZgGO4K2F7NN3ofOhNVuf2RZ5j54E2cqdQ98PyYOe1vJH9nLVF/ paUcyX/JzT1loPsL0Q5N7AppF2sIDLlzjqrJ5isT07MgGdmGsFaWpw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42grys2xwm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Oct 2024 14:13:42 +0000 (GMT) Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 49SDnQuF034776; Mon, 28 Oct 2024 14:13:41 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2048.outbound.protection.outlook.com [104.47.66.48]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 42hnd5xy45-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 28 Oct 2024 14:13:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=iRyz513q4Sau47oi5cNIelBHh3/1Hn8GsUrXnDjo6tZticdXNma11fl9WCa5wpai4mwPN7iSCoct+i70VRkrIkrAU3rVtkfgLQMj29l4n4yuGqcwAqSNviIrOJ46dNXkuJHrII13u8ADx/n191P+KsOpats8KN9UsCytrBmdBKGqspcEQt38L5TL934gH9ZggQaBjSHYnkZbckr5b+I0riFDDYcqc3UxCcYWWcHa+IbUjg7ytpYcqcLU3VNzcGD4aK0HyEpdiKMWOumNBj2YTGxAzc1w3lpK0F/vUHcy/aONdi8n+5qyQfF5HpyiEq0U42VFzqSPapKH+nNJyNGZoQ== 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=IuCkv98ioR8T1DsE9PcLGhzdZ8U6gfZuTlPOIj4E/BA=; b=clMbOmdVGVZyo9tY9lTSmqLq8pe4oji+emwynkiJsJtLIgHFsXUovmmSoAbi+wpYoygQbAJZP2gJLRcR+TzfoCMmbAEkKPk32qbLGlWpJHCP4RKyWYsGkWIKQ9fM/ohEtZu5MZTq9bqogbrARi+ogi63z6R0ISV12iQUYPI5KSkHNbUEtzp1kywpSO/C+YpNNF8fYgxpUhgV94C/kxvMOMcZsWZzl2Buf8S2i1gAZij9VjCDyzsp/wSV3JJ2XgUFv4lBi3qg/CWbiQNOTwCis0DQ3k2EVk0v2UGY3SDmks4pAyebCoUqAc/UQBzWCIRC5AohDZWPPo20j2Kb7klzeQ== 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=IuCkv98ioR8T1DsE9PcLGhzdZ8U6gfZuTlPOIj4E/BA=; b=aLgRz3MN/mX0cEcJgrXGgNp2CqZpHsLArLRadtmZ9VBg2gQgwSqp7F8JpLe+PBsdZ6HzPvQbLuE7eFhU1tMO2ERuQx/xqUiEhDJ6CqvrllfG20i+ufqDE7pHwSOifjNkoLzs8CWEtliBf+PMKfb+Xulug1fmyL+IUZMc7Fxq0uI= Received: from BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) by SJ2PR10MB7598.namprd10.prod.outlook.com (2603:10b6:a03:540::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.24; Mon, 28 Oct 2024 14:13:36 +0000 Received: from BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9]) by BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9%6]) with mapi id 15.20.8093.024; Mon, 28 Oct 2024 14:13:36 +0000 From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: Suren Baghdasaryan <surenb@google.com>, "Liam R . Howlett" <Liam.Howlett@oracle.com>, Matthew Wilcox <willy@infradead.org>, Vlastimil Babka <vbabka@suse.cz>, "Paul E . McKenney" <paulmck@kernel.org>, Jann Horn <jannh@google.com>, David Hildenbrand <david@redhat.com>, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Muchun Song <muchun.song@linux.dev>, Richard Henderson <richard.henderson@linaro.org>, Matt Turner <mattst88@gmail.com>, Thomas Bogendoerfer <tsbogend@alpha.franken.de>, "James E . J . Bottomley" <James.Bottomley@HansenPartnership.com>, Helge Deller <deller@gmx.de>, Chris Zankel <chris@zankel.net>, Max Filippov <jcmvbkbc@gmail.com>, Arnd Bergmann <arnd@kernel.org>, linux-alpha@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-arch@vger.kernel.org, Shuah Khan <shuah@kernel.org>, Christian Brauner <brauner@kernel.org>, linux-kselftest@vger.kernel.org, Sidhartha Kumar <sidhartha.kumar@oracle.com>, Jeff Xu <jeffxu@chromium.org>, Christoph Hellwig <hch@infradead.org>, linux-api@vger.kernel.org, John Hubbard <jhubbard@nvidia.com> Subject: [PATCH v4 0/5] implement lightweight guard pages Date: Mon, 28 Oct 2024 14:13:26 +0000 Message-ID: <cover.1730123433.git.lorenzo.stoakes@oracle.com> X-Mailer: git-send-email 2.47.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P265CA0179.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:311::7) To BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: <linux-kselftest.vger.kernel.org> List-Subscribe: <mailto:linux-kselftest+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kselftest+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB3366:EE_|SJ2PR10MB7598:EE_ X-MS-Office365-Filtering-Correlation-Id: 11f9b5a6-7e9b-47d3-bbe9-08dcf75ab660 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|1800799024|366016|7416014|376014; X-Microsoft-Antispam-Message-Info: r2v/Ate/x+VONa6Zq31fIouUu9HCoV3uRYBkCLqeyo9LJ75ciaRD4PrMLjzJufybwqDKe/k3aBZuTuxQx/1YCUaboRJfRuVEJr4I+nsb116z7UzE7m6U/PWH2wyYBsyQUuIDTJ2DGlfo3SRIFWk740jev7ISbomvB0VUnC8HrS1AGgqJbQEuYr4CzFOxGGKFDIj2phvi/o0sTtCUIEQ3BcJDx0y7EqD+417eL+5+11NXlWSKoMgyBq/hDkgV80l+i7U6SIs7/DYpFCbKT8afTazRbodtG9pmp3z/cYs4WaVj6Xnsc5/za6PHRWcmcl7yW4Zp677FHhXO04ca0MmTabxEA8O5mEH9yEAqzLrnxcW9eo6cYCfaJrhE8o7zKQjAq8CkzaZ6D5nM+lZDeNRrtfURQBQ9nDGH/9vpePB7lSwajnkd0mznENEbY3DC6MLfQzSQlVBebHsGQQc7wAZmuY42LVIB9Aiq41S0P6mLu8NdPQUCYPEB0NRa6i+XyonFHf+NGw5+rUsxUmOXYlbj3f6l0FuZP+wCrZ/OokSDTJbv/ID10yGN/HoDdE0K6joIVyz1M6y0imUhX15qpBQBkCrhJpKgsdhrtps9Kn9quFtECmfagYuQXNSYm5kJ7MB3gTz44KaunTwsffb1/+AM0kc1KYq7N2fd2H3D4MUD1Os2cND5VUKjaRAMtSAopYP8A394UqCj353+9lZL631d5zN+Yn8ETYq+ai1qQEwNfsooHa+sv/YS7DOfKE26wNYlKan3aDpJAw6qnS7rLrPuY7PrdDJHXTnq7oufeV0fNQKXL3AHls3jnULnSs7DFkuDNFk7LpBPAcQKhUj4xWxbhmn2bl+MuzLyQKzZO/FOZtKhDWTJ0oO0xjtdrzoqPfGBfaIh9TaD13uvGPH6vJIyvAs/yvlGrUb/m9nLAtgNEoZEE5GwJGas4Deza3YvhdDmkZJzss5+giiThuvxK0ex7ys7QWXorYU9jF95IJX2fKSWwiEYWmH9GM86+edbLqiXcs8+Pn1k6fR+L2IoRGCSDdsHAjNAZKfL0wRfM5zzkq5LeK1OT0LWSGRxJSSBelSOuOmdalATBsMgBZzcvrGMvRbG47e9hkjkUxEdQ+jGbi8cFoCORpVjymx3ZbfW5mkyfNaj7ZT3ag6vvrs0H4OQNwKkjHLMnIWqzb3gyAlngc37VhJZIFkSiGmtRz0LFUJf87aVftBGA3OaRGz3+t53g12O/EMDxy641vjwVTF9YZxfPAXFTZbBa0LKK5qhatRMahAourVQ4piy6vQnUyYX8rmzg1aPgZkzrC22NwGQs4Hol4sonRldTps7r7PS8szz X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BYAPR10MB3366.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(366016)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bXDO5glg/WUMtyY+/MLNTeO5S2UmSJGtTNx6v09LoM+VNgmUfoHWMdvMFBsk0O7p0KA49QzxofzKA/thfGlG1P7qNXB+y5c94SCq+DF6tLr8SgFMVMGtwkjMRmI3gXZS/4cgK+Aehx9xC/r7AUbGi1lQqG2iG8cTuBAVDN0v2drjhClrBp4lb7btmrJmOMyIxvhciaIClfD+Z+yisnJrsYzU/iFCJU0f3l6TPimY7QjIBIKHfkztO/lZPZj1F9AxQpqIex1kUyvItfHi5FFH/lhGOn75zz1tzB5Wys9IQTjOA5tSpCviHD74ZXDm97ssyzKvYygvcNkSl8hjlgk8yyD+O65V4hTjcLy3/NwZc/kVBHUOZRqyjRq73nARFYxC8+e1KTWYbY1PeTN0OeMNKWtOUV0QAgsPo+QI8zTFBzMXdctxZ7y5eFyEoKypYYngsu+A3yodRh2b/5QPPN4owCxpejowOrT3hupVAkOyNjgnj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Sz8Smiq1QtXFpU9W4BQyna/wmaC/AEfwgb7NCugQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 9uBIBuIFP60pxUa+vIWso9PcM9JevJXnOqYW6G/UAVbgM6l094Qrudt1oETGdnwohPUFmRyYmEr/sB5IVz4oCLcbShhn/u7aQg+7UWBODrUO89ZMbCH+dKA9KvRu9G0fDpiVf7qlhdsSV15yoTE+l/NSZV+QjA2fKnka8+yIw5RCO2Vg5eVZOALVRAwQKInxThTlLJi+7AMQnmwlrazQFx2blsUCwcteSBeOXrntk04/GFNBBf7EDeZarov/mI/cafsgxSybmrZoVKU6TvidH1mt10/6BvaNJIyJbRPhYZovVvc4TqmYVq+sDxSTLWYVWE221UOmdZnZYkjVkbAw3KObb1mhStRXHuqc9+NqrKgaN+ThTNXDL3YEvRboQjnR0dg1BJvecLPrL4EOqfEFJBRTHgegJu6cFQ6WuiDrpLICS/gig+K8IVTWtaDSeof0Qzleu8alSxjK6ymZ71X0RmXMl70xqudJJHqrV46+337xw40ivf94UrObVYLDPaIuv8XkL90Shb2CYbkRQ8fKAvgsxapm9ZX499HVkrzRD2Jm+TR9sdA6ku3MH+KQy6i5IrBoivpBpRs57XOehLEI2NqhiravdFL1LhNx7yUYdEk= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 11f9b5a6-7e9b-47d3-bbe9-08dcf75ab660 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3366.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2024 14:13:36.1902 (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: U+uv/syuEVkmLQd0+Q6XGj32+sOHr6k//lHZQlwqV80xHDLZzmg+t6hI2iBNV3vU/5jXaTSStIsHA66jVQuIrCyl9tiuKQ2wSEdr6rTGOnk= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR10MB7598 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-28_04,2024-10-28_02,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 malwarescore=0 spamscore=0 phishscore=0 mlxscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410280114 X-Proofpoint-ORIG-GUID: uo4wIQ4Tu_rz-c6A29lbrFqroF-CQrvI X-Proofpoint-GUID: uo4wIQ4Tu_rz-c6A29lbrFqroF-CQrvI |
Series |
implement lightweight guard pages
|
expand
|
On Mon, 28 Oct 2024 14:13:26 +0000 Lorenzo Stoakes <lorenzo.stoakes@oracle.com> wrote: > Userland library functions such as allocators and threading implementations > often require regions of memory to act as 'guard pages' - mappings which, > when accessed, result in a fatal signal being sent to the accessing > process. > > The current means by which these are implemented is via a PROT_NONE mmap() > mapping, which provides the required semantics however incur an overhead of > a VMA for each such region. > > With a great many processes and threads, this can rapidly add up and incur > a significant memory penalty. It also has the added problem of preventing > merges that might otherwise be permitted. > > This series takes a different approach - an idea suggested by Vlasimil > Babka (and before him David Hildenbrand and Jann Horn - perhaps more - the Nit. s/Vlasimil/Vlastimil/ ;) Thanks, SJ [...]