Message ID | cover.1731667436.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 E09A9D6DDF7 for <linux-mm@archiver.kernel.org>; Fri, 15 Nov 2024 12:38:53 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 6B4266B0099; Fri, 15 Nov 2024 07:38:53 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 664236B009A; Fri, 15 Nov 2024 07:38:53 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 48FE46B009B; Fri, 15 Nov 2024 07:38:53 -0500 (EST) 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 2A9916B0099 for <linux-mm@kvack.org>; Fri, 15 Nov 2024 07:38:53 -0500 (EST) Received: from smtpin25.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 9F966C0FBF for <linux-mm@kvack.org>; Fri, 15 Nov 2024 12:38:52 +0000 (UTC) X-FDA: 82788281982.25.6A7C4E1 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf08.hostedemail.com (Postfix) with ESMTP id E33BE16000E for <linux-mm@kvack.org>; Fri, 15 Nov 2024 12:38:18 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=cgfPw3WB; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="f/9uUNed"; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf08.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1731674198; a=rsa-sha256; cv=pass; b=LaZPlb7r3Smq7GKUEAU8PcA8V/U6rLOyQjGmcq0bpdKCaz97RLSP0ftwaUoepmvXm0B2GQ FcQKiq1r16y3xctXaJEhT3J+wc1Y4UsXeF9S2L1LL5jhkLBPL4nxu2uYTNTyvert4K/1kb 7MTIGf9C+ArkbVjfzlrQAFo+KasFqnc= ARC-Authentication-Results: i=2; imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=cgfPw3WB; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b="f/9uUNed"; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf08.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1731674198; 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=rc3w/L010sIzcPzIOS8pzWtE88S6Aocnpx10HyVh/Qc=; b=YIO0ZaaxllgKLg78wisLWOIK4w/NbagpH7sJqKqyPr6tR9uJsNqIIfdpJWfJHRZFJDC2KI RlTB0qwFNcCiPwcj5vWmwFQn+en52MuC5AqZGKARWhvB/CZJhOKT0dKzGT/p6anzOuOxAw m6Ch3ISK4fIndTW+7PfF97CwOmA5Aqo= Received: from pps.filterd (m0333521.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AFAHLAG011157; Fri, 15 Nov 2024 12:38:37 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=rc3w/L010sIzcPzI OS8pzWtE88S6Aocnpx10HyVh/Qc=; b=cgfPw3WBYofArGgITulu9bOof8ZhW8pE 4HYSxXJn/9Ktb9TMODds5GLNObpujWtNVY0PXw4QTJgPFvRCS1mydMCqn7qoZmkD HWosE8i8omHZyFj2ZRbsgPXfHomVDwbDQpyEQKptLifDqwURiAft1WUPOyyKTgZC tRIoyWgUpTOOUkWQ4KfZI3gnBJXy1Y+CgGkC9vzME88fc3XSYXqcnKCyCG/8vvxo XQ821BlyXrQhiHbul53rjACqVRfjSwmeqN9h4nrRGhiOmFmd+t1nvADHH/3m/iW4 smr3jcbWo5EDu0KbxB4OlypmPCVIyRWsb37ZEXSP5YfNDoiGV/zt7w== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 42t0kc3dbb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Nov 2024 12:38:37 +0000 (GMT) Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 4AFBUaC6000381; Fri, 15 Nov 2024 12:38:35 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2172.outbound.protection.outlook.com [104.47.59.172]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 42tbpbje5k-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 15 Nov 2024 12:38:35 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Fl4i5lS7Y3qprTJRaCupWguZ0XCyXMN5xrR0s7Ek3oNrt5uABs+z8watCiZwrhw9WFsujqupyW2/g3Cv1pXXv3wyBVxoqBxp0VsSSROxmdsmo1JTTCKhUjTF1MLoFrnsSzYE3p3RwYTL7uR4fJDQJiRt43hi7to+91Y9QH2vN0XYpMeROjxrxxxO9L83YsTCDStLyaXfjjFYajY3t5QcjTm6Vko6NUNU8S+D+psleTyL4/uIov0jJWsVRZUopEDHavXjyc44Eafxi5wGgaWTe27O8LuGfyPpM3TtwSpiubGRdDe932oZ4vbKP4orLeb/iyvuJ7SqAhNBsVRrpkO35A== 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=rc3w/L010sIzcPzIOS8pzWtE88S6Aocnpx10HyVh/Qc=; b=Ynrpw1lJpIMfrbTyUK7+Lc5/E8Jl8XfPSFsBdxEkBz8gYR7seTz3we7uCLZcYK4dRPMWzk4O4iK9VwvRosti0XA1UGQAZspJFJZJ/Zqp5VkRHFFR5amzCs53aQdidw7CvBkj1q4/8b5RhdeU8ora2f+Jgw4MGon3L5QilFPdHrJPk1UuC+q4EBf3kiYylrRaPEeN46Gcz/M7lzVmg1Fd2aZQXtP9ZVqBFKhU5aHaJ9mYBLj0SpE1OmFa3vkPxy17jli8AqRFHwts5hqxZ8+VCD3arB6tZjbaYF0p2JTDJcaRmXpaaBe/ozhPJ8oJLtMH/x0qOed7ZbRCgctYGr+72A== 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=rc3w/L010sIzcPzIOS8pzWtE88S6Aocnpx10HyVh/Qc=; b=f/9uUNedc8P2LBsQ3EYJW289t7WTX6nYUrxSVGDvAR0fU2rd+ceUNnsv9vCEhulR/+m1IYKw/EavkTDXFAsW7mSr0lY0dwAtippW6co878RDeNMcUlsGL3eA9V24jJSB//raqRyAty6MsjNQXYqTvqcLFOzD/8kSKNDAVSlgujM= 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:38:33 +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:38:33 +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.15.y 0/4] fix error handling in mmap_region() and refactor (hotfixes) Date: Fri, 15 Nov 2024 12:38:12 +0000 Message-ID: <cover.1731667436.git.lorenzo.stoakes@oracle.com> X-Mailer: git-send-email 2.47.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: LO4P123CA0638.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:296::18) 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: d89d6eb8-182e-4ea5-267a-08dd05726ad8 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: UV8aM7sPdUWsSmYm9zAmou1iyFbChA4cNQbv5zlWpulAerdBIljnsO4CKLPgPgs54L8VWJj7fPiZCkYuCJnl/bEfRd9c7+8oqqmQSs1e6W3G45VYImpb2Pjie6Ure3nuFrpd3nq//rSKzEXYjf6nLVVlW5wvKWF7vM0qRHc14OI8D/1ei43grsuA5KefdrtxLp1SGq9o/JFqGKUEChG4NIXx4sARcywvHRMB/mTPqinxxQukSwfLM6fxltFg025NCG0sA471sR5AxQGTmYZIUhcB+4WAkZPKJrbW4gBRpaZb7PO4kHb5h65mAQhY6R+cN+ibHpXuPDFbPpx3nrvI3FsgE4aCGjVBeD8HExIa/TwPxpGe9pc2dME28IqfywYjrc879Bf90RO1VY1p8WD6lIUPDC9l4MngGcORPG0uePcx4ENg5PkguV2n8Q8qk/lgyulepf4+HLbASzUA7mvmLyL4JlCOEgHTxKf2zQ6MMIEbUa9BZTDrVE2Q5rv074R+brUlQE9ELUynGRqX3ycI0W9jT6BxMs94zaLiBFSFGMuLV1msjgkrbMJHoiviZlhZ/AEEV4tUm7CJa0DoYtnhDdURKiLVIUtzStl1QxS3iXsGDBn4eBfspJU6gE6E/tOMeN65qvz6GBsxm9XVsiAP+qEvB6+WHDOLRF/mRLizPKHKHUrEYeBJL9tvjLUrQlvivZ8BxPcQwwMhNhpSjtoEiS0GALodpWnhaXPomy2mKcOgD5b9Lz8mRnhHuvh4/OrKj85mZpsP7nUdz0Mwd5btZR29oQZuYMLTuasVCw9eP8fuQPBeIpX4iQVMPceCN/fkXvA9ASQHqFfG2ccy8yByDTf1/7kJYSUACIz7FE86lLg15ZiMcIz2LTF3yixT3Ec2R5qA/LTmgK61IbJD4IVeOSWVz04rOvFSs0r0dnN8mRchigqmxRS6xRJDfRXx9GuKmba6s50M2IZe0TfVz1wqjE9NclGMc/pm7M6kqeIIoSq/nrPfz2BLCrAv4GGIn9MLQUCCJmpjI+fASjUM8YMI5DKX1RhIaOszx+94w7dlPeUtDH1KjKC49z42NV0l8+ZRsaj3Gjkbv/XGNIV7ugI9NLsJUtepMj6m4POjDkTcmJcfj4SBlBhMc6/fbw+KeTWSnl+zUodSVCn3Pf92hpiCKnJOZ77W+XKdrxCthrg3hfGusYFXrJ4z2jmOrQgm0zl8dqjgVYdXN8kvwtIHH3KfXWOh4xElg8e8ZtPhmxrDrms/QocNwFsQe+8jm7fivtw5jyOvfQHLDyVe9kp3ksgK6ZpZezjyxDyqu6XRNti2EUlo+fvEvA0JE+jg3UcUgQf4 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: G1zlPQo7aWSD9mj3Mn67JULiYFzyEwR4iaRqIt0sLz+Mb2exWJwyMJCXoJ4EhVCEI3f8bCpKiYbmFz93zngG55p1tE6pCKPSflX65tLI6UJg6E7Pn10nyNkGlolQcdSZD8WPulYtBZ9mUaDipHFv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OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d89d6eb8-182e-4ea5-267a-08dd05726ad8 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:38:33.4178 (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: f5k/TunAlrayXXak/i/WAk7Fnr4FZ0j5aifg4yL4RLxi3bkg4DnLQGkDd4mCQSwABRRW8dJwS0yV4NiR1oeTB/Owy2rS6h/O8SQHA3XkL7s= 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 bulkscore=0 mlxscore=0 malwarescore=0 mlxlogscore=621 spamscore=0 phishscore=0 adultscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2411150108 X-Proofpoint-GUID: KNGDJIGrubxGPCIZ7j7zTmWqFBVPSt9k X-Proofpoint-ORIG-GUID: KNGDJIGrubxGPCIZ7j7zTmWqFBVPSt9k X-Rspamd-Queue-Id: E33BE16000E X-Stat-Signature: bm1pnjk8fwjjrauaw4bii3obm69h8tpf X-Rspam-User: X-Rspamd-Server: rspam05 X-HE-Tag: 1731674298-596833 X-HE-Meta: U2FsdGVkX18eLTZUzuR2p6ghkWtxLWJTB1ppIMUMvKUfE4FfB7TrRgN8urWG0jhwzMqPRzsqaouW7GY/TR2R7O5bG5FfzOJbtaJnp/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u/fVQDjTMZ3molpynovR19lb3w4oN3C7KxLYDwTavto30bQdBL6ZrM5mULL+fyZY56ul4XXmPe7QZCSQf5Iahso2u/iJh5CCyE3wNdBi8RqO656YLlku3OYKOElQLo4A4VA8pCHgtnxe1aeBVl1fPsON9j/KYJBkyXJwfRofVjz3bP3HINEGQDlVnT9Tl/fi+nMmJykh8Gu0QlBPne5IsymPMJftyayUh500HZGG1xpDUVIRzHeVdzN7lwtaFVOoG4BdbazXWrVkSm58SAeq2/7DBlBiLLpxR5AN2DdUIocXrcfLMNitY0SnNHGLQL0lq2Rvps295QhKX9J4PRhOSASH2FeG+MPCi+jACuB0ZQXpCKsUAifrQR/C3Cqvuv+wuV327YM6uQctlnFtlLvpLuEwW7fHA== 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:38, Lorenzo Stoakes wrote: > Critical fixes for mmap_region(), backported to 5.15.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. > > 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 FWIW, looks good to me. Reviewed-by: Vlastimil Babka <vbabka@suse.cz> > arch/arm64/include/asm/mman.h | 10 ++-- > include/linux/mman.h | 7 +-- > mm/internal.h | 19 ++++++++ > mm/mmap.c | 86 +++++++++++++++++++++-------------- > mm/nommu.c | 9 ++-- > mm/shmem.c | 3 -- > mm/util.c | 33 ++++++++++++++ > 7 files changed, 119 insertions(+), 48 deletions(-) > > -- > 2.47.0