Message ID | cover.1731670097.git.lorenzo.stoakes@oracle.com (mailing list archive) |
---|---|
Headers | show
Return-Path: <owner-linux-mm@kvack.org> 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 82327D6DDF7 for <linux-mm@archiver.kernel.org>; Fri, 15 Nov 2024 12:37:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D42FF6B0089; Fri, 15 Nov 2024 07:37:26 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id CF1E66B008A; Fri, 15 Nov 2024 07:37:26 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B4E486B008C; Fri, 15 Nov 2024 07:37:26 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id 93FCF6B0089 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 07:37:26 -0500 (EST) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id 42876A043F for <linux-mm@kvack.org>; Fri, 15 Nov 2024 12:37:26 +0000 (UTC) X-FDA: 82788279588.02.C4E910D Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf23.hostedemail.com (Postfix) with ESMTP id 301A5140017 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 12:36:52 +0000 (UTC) Authentication-Results: imf23.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=YfB6eSMD; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Zv2R8pbr; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf23.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731674005; 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:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=9gHrl1XejhAfXv8XmrMN1N43hg6mIRwsTQBCZfRqvGE=; b=Oln+pSjZnw1x1AGSJ4hARa+BHqVRrnspJuqvMBZLYn06y+nmq7ZK0HKHN/zY/GDsRFHn4l Fe4ZWqy++957OAWuKsszgET0Zpc9xTmlPGicT94bVuw3TI2vy2nI5dDq7CjioBx5NiEYgX xDUqvb7qrfGPgKNt2efaxTD5SO841bA= ARC-Authentication-Results: i=2; imf23.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=YfB6eSMD; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=Zv2R8pbr; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf23.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com; dmarc=pass (policy=reject) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1731674005; a=rsa-sha256; cv=pass; b=MHqJcZUN7kElOglHWRsIruoN4+PUjrl1EK2XanW5jOWrncsniW8MwyCdxxOtFMu6abkyZN aiyX2MlIqezTCgVhILJh74OEW7IwjVPwNIUbkuJta8SW+dNlXHDDYFRXeeedixfLwG6e38 3uLl2AYzwHk4aZ24V1QXYJo3gW2TAAI= 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 4AFAHUwu000703; Fri, 15 Nov 2024 12:37:06 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=9gHrl1XejhAfXv8X mrMN1N43hg6mIRwsTQBCZfRqvGE=; b=YfB6eSMD25IF9V8cwhIxCmymo5Q4DLIE RY73iuVTDw+pmfzl9P+t0fZ/FRQEnX4pJhtrTvMMdqvPxzI/2qhWV8gXOgZNZiDG 7J4NW+yJMIfHSJyw9TYyI8zW+lhmXUjmfZM/jvU4qUQmM3jGWh9GREIJ2rZkb9nP jJXcKQfZBdnRv0XCUFXOcXJt6TqVkdgcSz8ZIT/+Z0kwtZR7suVNthRA4rYNtT80 TM+qcGP3Ukr4Siuwx+Y2vqgFDL5No7JVt1xgfmPViomT9yvKGDZqTclbnldax7C8 h9S2q1PbWayuGhak3LhshJGr8As1ksBEB2tDw6JbmfMx2K+RSVyFjg== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42t0mbkd6j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Nov 2024 12:37:06 +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 4AFC3aVL001157; Fri, 15 Nov 2024 12:37:04 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 42sx6ch2kp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Nov 2024 12:37:04 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=S6lcbkEsG9drApjn13E6GcxO641+zMNTxd25WGUOtU2iBUK+5OlFkU/nAZ6HVjqKh14B1liQKWZz4WyS/kjgK0q1XImf8KEW1gpqvVM9VC8ON2ivZWaMS8G8RnPi78q4uZwnCxAN5rutZHLSBbH0WeLQy8CFxSOPB8S0m7tuzfHKRJDh50+d9fKacmo8CyB+12aDH2Q0p3w62S9e6iSwj4z7xEeSh7aj/V7o47nFbEmVtNt2Wd2G9X1ZmOObsGHj6MZuMWFLdXhdfVohloWiV/MGzzdkdfGicSybX1OtJyqoCUzxKtVM3Un4FyFaMPqa9kTmykS3u2ihGyXLgFqFbQ== 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=9gHrl1XejhAfXv8XmrMN1N43hg6mIRwsTQBCZfRqvGE=; b=t5s4+uPRllKha8tZAuTAegLBEDXTg+dSfHnefJik+Zyawa7UaYsSECzh8zzAgr1CdE2wzQgKmSUCZtHVgobUhtJKV+A0+d5ZuQJOpnp5CVVCr4HKc4u4fplbiYrVxdCOFWJHNKT47lL57HDnf9pVRg4agZAapYfKqHhPS1By6XASa6qVh38UKg9AgKK7zsnzlftrQBVlr2LyPoLNbPUnvJ9voOSVokVi3+jS3VynRc5o/DcBSXDV4r2GrjmTjAtCVQK+Qsxvt3fwzreapMXF8/i9eDWnp4awAP/Zq05H0wz124+lcNHkKv/h5h62ZzK44l3akdJTmk2TZ0SwNblyhg== 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=9gHrl1XejhAfXv8XmrMN1N43hg6mIRwsTQBCZfRqvGE=; b=Zv2R8pbrAl15H/AgyH9O2bKWf589rJNmIwe16/RSTfe+yvbpy+cNNBUxGNG/SICDfWAcDZYf5B5M6wHeLY0UByJA8Mk/6r+CI6wL/j2PgjakhhyFPFZMXYSrTYoNz8h0XsCpbCO9aNeXZtXM0LDVC21YDctQSBvUXR3VcJXHIGk= Received: from BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) by SA6PR10MB8136.namprd10.prod.outlook.com (2603:10b6:806:438::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.18; Fri, 15 Nov 2024 12:37:01 +0000 Received: from BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9]) by BYAPR10MB3366.namprd10.prod.outlook.com ([fe80::baf2:dff1:d471:1c9%7]) with mapi id 15.20.8137.027; Fri, 15 Nov 2024 12:37:01 +0000 From: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> To: stable@vger.kernel.org Cc: Andrew Morton <akpm@linux-foundation.org>, "Liam R . Howlett" <Liam.Howlett@oracle.com>, Vlastimil Babka <vbabka@suse.cz>, Jann Horn <jannh@google.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Linus Torvalds <torvalds@linux-foundation.org>, Peter Xu <peterx@redhat.com>, Catalin Marinas <catalin.marinas@arm.com>, Will Deacon <will@kernel.org>, Mark Brown <broonie@kernel.org>, "David S . Miller" <davem@davemloft.net>, Andreas Larsson <andreas@gaisler.com>, "James E . J . Bottomley" <James.Bottomley@HansenPartnership.com>, Helge Deller <deller@gmx.de> Subject: [PATCH 5.10.y 0/4] fix error handling in mmap_region() and refactor (hotfixes) Date: Fri, 15 Nov 2024 12:36:50 +0000 Message-ID: <cover.1731670097.git.lorenzo.stoakes@oracle.com> X-Mailer: git-send-email 2.47.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P265CA0128.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:2c6::16) To BYAPR10MB3366.namprd10.prod.outlook.com (2603:10b6:a03:14f::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BYAPR10MB3366:EE_|SA6PR10MB8136:EE_ X-MS-Office365-Filtering-Correlation-Id: ddbaf16e-75aa-4064-3747-08dd057233d5 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|366016|1800799024|7416014|376014; X-Microsoft-Antispam-Message-Info: TTD/f/tJTI+NNxAET08lpy8UlcczSyAhoFUXLlfm9TviFpnLKNVwvJr3Bq4PXofChmr/LoA3sUPoLAV5n5RYHCmr9V4Y543Lm+19hvnCQYcgZGxc7Uc9+PZomIxjitlg5mcVleq9tH47c1ypDHeFkFYombUi6sOAqypr8FIRCi74e1XKH9SkCe8n78c5wDcXmNCE8lEFi4zH8frSBgc0ArCNtrLFob5R2lk6dtHGly+11Va2l9KB5YdE3/KjEmhtj9u2A70M0Uo5o+ca+EhtAQ4imRmrIgDOTYVqhvnkp55WdrJEe6UQhscqEpZyBu6QX0mrp3/ONpeFsBI/eKZStxGxImrvgXBir3gF6DDacqOJHBOAz1tq6ebKzNk5xCyrfSeBKfxh6Mk59qCaZbMQKk9WwmX503T1NDqRTxDxKtQc0PtugnSNdnntVFNyvX03chFi4mHQiPp8WCS3geZJhWkmVxcemc1J7/OnbYcP3yf/xxRbr9EHdIYydhF89yEflGTQidA6RS+Abv99AEBf19uL2Dr2Hnx6Fff8rvbeHjC4oiMTTwGKq4kAd3v4pGmejs8kycKdzpStHOW1OSq1g03kvYlg0lkiLZCstYyppdwoegzJgIZ5o4+hCyJyNmejo/W/uG0fjnZulOYIDgXKwG/sVYrbvbKNZujVEYQDkZExBEo9CX+yDZ56njmfxtPx0DYjrCdPlokGjePEMxjXEz6eC4tnTJsxdBJmU1K05Ka9B3/SMossyPLXnLPPUIFzbKXf3aolm8pZDi7SWRl847qCPm5h4pNL04qIU4xA4ylpI5w5pMg3FaxdFJpwv9sqRRGehps5oJMd6ht7+ZLQdQMoWp1hiUJipJBJiHeD1f0JcC/cPLN+LQpxcdmwWr7QV42y4LX7WiZv6AY/sbkXlRUVw26egebcTQ9H8YOZ21m5GLfVlXLNny2dujMJpxUbOY9jbmE+pIEZ80GXjIPIp7isCzAg5UfYiMj1YBbCQQgszFdeDk2vhRdbIaDTZbibGlHcE2E2dhYX6bSlF88p93falQT5vh4S1PK6otihOHallYbGwNduntU3tJGnOEO463qKklukFUvQFyASHe56NFLcFhz6PU9vwbxj0YBAgw/vYyVB+4rsQVi/YL7Erdhnrwap1vkb08iH8hdhH0+QkQvfwC4Kc03oAMid9xxJUGdseH0Rm5niaqn1NfFZhE/lzvnSuxO/VWh7a/LSlqUI5OhBBM1Krc9Iggeq4lEBpZF76Ps2IV7ZT+u/pfpjY1/3a/1e6E9dXEvHNJcQvpLBrAoYuIEeyi4L2z9PXggA+amiq2KRwE0Vlp2lddLrq9hs 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)(366016)(1800799024)(7416014)(376014);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: XKnTggh3CqjGvJIL0ztQaeRqG4KJo2N4J1ikRrtiCTKFQ0Me+z9LvedPYYX3thpy6hKgF0mwQz6Ufg5gbvt+Y7wER6CVM7x07rbSIv9uPFhQPBiBRnCHhDDX3BeMZL1sxNq+L9+JoLaJBxZRjJO9Mb6/noPXoS8Wc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I0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ddbaf16e-75aa-4064-3747-08dd057233d5 X-MS-Exchange-CrossTenant-AuthSource: BYAPR10MB3366.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2024 12:37:01.2714 (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: Os4PTn50ga6qbX8yV5VzOTRjUPPlIrCIK0rAloo0pw2rqSkhGJGqj06S6tkwVtyLeqP7fGbqI0axaEOi0zMcchfFPa1PjTgaH1nVGgeN2ug= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA6PR10MB8136 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-14_05,2024-11-14_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=646 malwarescore=0 adultscore=0 phishscore=0 bulkscore=0 suspectscore=0 spamscore=0 mlxscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411150108 X-Proofpoint-GUID: lvIiO2g5qGMWgv13lmeS7gHR5loc90zE X-Proofpoint-ORIG-GUID: lvIiO2g5qGMWgv13lmeS7gHR5loc90zE X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 301A5140017 X-Stat-Signature: s5fc6bsi7wqwbfa6bisjrb5zpxae86tq X-Rspam-User: X-HE-Tag: 1731674212-83682 X-HE-Meta: U2FsdGVkX19C4XS0sIF8XW+tmf5Gm5Z25A0xLVh7idlvVfU85iLyEIGdumgBBwsTcCJEdLmq/GNCawnIq0S+pxBbsrByCjfgIdYeADfUev6L3C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lJ3nC56JZNBGv5xkmPhk2LhsN37jZa8p4+eE06nXTMLS+BBmo9K9Ov0HMnco2WhbdN2gxJqmFLrEbOC1mDmLbquZKxQdFwsWJ9ji0oPzPQ6UFYdDZK6IubONxunMqARKZ2Gd29PAru1f5ET6aKcHMbNvDuf7BW3BQ21nOhCKQnsyuFuvD+zvVD2ciPiRN1GwWuwBga7fVXtEfvR/oXpgcH3RoY4ma8YfiTiLSkfUv89DZNZ6+qMJH+/5gWCxggm5ZM7CFaAzD5mqDAjhkw3geFXKwGDVj9m2SmfBI+owiS9vhuzEf2zKKFWWkT1tW3yGnxfh+bByG/SwXRbR/3lrC9qsm4/cI65s0mIkndhp0oVsW58a/41HBjCgTHRE8KBdAWBRiuSVQSM5tw== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
fix error handling in mmap_region() and refactor (hotfixes)
|
expand
|
On 11/15/24 13:36, Lorenzo Stoakes wrote: > Critical fixes for mmap_region(), backported to 5.10.y. > > Some notes on differences from upstream: > > * We do NOT take commit 0fb4a7ad270b ("mm: refactor > map_deny_write_exec()"), as this refactors code only introduced in 6.2. > > * We make reference in "mm: refactor arch_calc_vm_flag_bits() and arm64 MTE > handling" to parisc, but the referenced functionality does not exist in > this kernel. > > * In this kernel is_shared_maywrite() does not exist and the code uses > VM_SHARED to determine whether mapping_map_writable() / > mapping_unmap_writable() should be invoked. This backport therefore > follows suit. > > * The vma_dummy_vm_ops static global doesn't exist in this kernel, so we > use a local static variable in mmap_file() and vma_close(). > > * Each version of these series is confronted by a slightly different > mmap_region(), so we must adapt the change for each stable version. The > approach remains the same throughout, however, and we correctly avoid > closing the VMA part way through any __mmap_region() operation. > > * In 5.10 we must handle VM_DENYWRITE. Since this is done at the top of the > file-backed VMA handling logic, and importantly before mmap_file() invocation, > this does not imply any additional difficult error handling on partial > completion of mapping so has no significant impact. Reviewed-by: Vlastimil Babka <vbabka@suse.cz> > Lorenzo Stoakes (4): > mm: avoid unsafe VMA hook invocation when error arises on mmap hook > mm: unconditionally close VMAs on error > mm: refactor arch_calc_vm_flag_bits() and arm64 MTE handling > mm: resolve faulty mmap_region() error path behaviour > > arch/arm64/include/asm/mman.h | 10 +++-- > include/linux/mman.h | 7 +-- > mm/internal.h | 19 ++++++++ > mm/mmap.c | 82 +++++++++++++++++++++-------------- > mm/nommu.c | 9 ++-- > mm/shmem.c | 3 -- > mm/util.c | 33 ++++++++++++++ > 7 files changed, 117 insertions(+), 46 deletions(-) > > -- > 2.47.0