From patchwork Tue Oct 15 17:56:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Stoakes X-Patchwork-Id: 13836808 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 478EDD1D88B for ; Tue, 15 Oct 2024 17:56:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CD3EE6B009F; Tue, 15 Oct 2024 13:56:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C5CD06B00A0; Tue, 15 Oct 2024 13:56:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A60C36B00A1; Tue, 15 Oct 2024 13:56:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 833966B009F for ; Tue, 15 Oct 2024 13:56:27 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id 623CEA87FA for ; Tue, 15 Oct 2024 17:56:09 +0000 (UTC) X-FDA: 82676590878.13.75EAB84 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf06.hostedemail.com (Postfix) with ESMTP id 71204180013 for ; Tue, 15 Oct 2024 17:56:18 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=nGzCcGJP; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=j0fGQyNR; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf06.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=lorenzo.stoakes@oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1729014878; a=rsa-sha256; cv=pass; b=gpy8baf2QfXPIhKcCAsofSD+D/4ORbeyWifYHnb5a06Xkt3JEPHHzfHDhMrGY1hzJGActO jJL+0wC/yepxP9O7Si833fJeEm+g13KUx2bQOyTNGwdifbVDJt1OZxjL58FhhskCt2SHcE dm6+HdjBj8xyTV4PtucoRcUmJr0+z9A= ARC-Authentication-Results: i=2; imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=nGzCcGJP; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=j0fGQyNR; dmarc=pass (policy=reject) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector10001:i=1"); spf=pass (imf06.hostedemail.com: domain of lorenzo.stoakes@oracle.com designates 205.220.177.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=1729014878; 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=eh1SwKrCEpphFxEQ1WioF6/rTLmoNgNxx/xWdW1wVc8=; b=BFXY9MSpZLjlF5Dztnzd8BQchua90+u4yEZKnJVjm+7kXBv4Cw0/hlwM3H00al+Go62pD5 wVPepiIymuHzUmsleY0iw6+RKTjFj03NxjxXRduY3GHIAJ4zIvgRGr2lnc56JNn0VImZJD l+qLdBpMgz7zUznYar8jp0afC+Jfsls= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49FHthpc018437; Tue, 15 Oct 2024 17:56:19 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=eh1SwKrCEpphFxEQ 1WioF6/rTLmoNgNxx/xWdW1wVc8=; b=nGzCcGJPNheXgbuIDhinE8OgIu72YSCS 1VaUqwaaiwsUpA7mX8pjReng6qcKF/89lxy6IwEXomamVimMuwuBMCVVimG4u4KT 1GPBz3okU1BRlGllIuhnCIkridGZCNGnSJGTALEtwb2I5OL6BkB2TLVuf6+y6X5d OVFc8FhX8ywqUI7ANC6iybhuqYdUoJ0GxVZsiLRSSXIMN1raC3AVjmuWR6cW3cMB 1q7e2Q9eUpxxM8qlOdpNjl1W/qGHTOW/jUTJRDW/+9HfljQw8mp3gmDtIcBGzred 3/ayrXBhJDZwr/fc0pntmIrke2NP+C5QdpEDUToqF6+A8VIMrZn9uw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 427fhchcsr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Oct 2024 17:56:19 +0000 (GMT) Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.18.1.2/8.18.1.2) with ESMTP id 49FHmHZw036099; Tue, 15 Oct 2024 17:56:18 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2044.outbound.protection.outlook.com [104.47.70.44]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 427fje4qgr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Oct 2024 17:56:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=mLmx4v6iDnvNwrkA1hggoqWvkuqcF8IPJl+4FsgaaxFrGv88PCmSdDLGlk0QE4dw5ByduJHxB59Xf3VtKpHsGLzkiM1BpwHHl0YUSMKt5jcZOr/7RSJHGG+J+PutjSQqi8asHXDr/wMmGoHZ4gV3u1/SawahKDkhScj75oZ5y1+2m+JhO3oE5ewFR4nwRW/EIEvEid18C0GKPTYZRmXpNHZ1IurnH/CBODY5nYLxk50Cjq+p5KVv2w5+gGLAFBrQdOdnMWoVDBJO2NNJGZ8+aryNY7qkg+FWrHGkIGlIWGzKfhJbGw/ZW/oq3SuDOCpyCZNUB9ARpVEDsWde4Q4Yhg== 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=eh1SwKrCEpphFxEQ1WioF6/rTLmoNgNxx/xWdW1wVc8=; b=SvOlyCh8Bml6xpbSnSSA7YzIyhU9IWtRrDRgIufmWNZ6ZURSCN9U5yR7cetrwxpNbMq0qOrQKs92Qi75UJ7XeTVRgtis6rx2iJ7yyXxu3yA4WNHPTdXoIGYUhSFdVEUNG4gazqnUyhR51FqyZft2nT3PcDTmHiUgbM8rNGittxi6DwQVgpM9tCNpdNhFBs5NIy10MkrWduC+N1hx+biWv0xXYEqJ9IZfjbi2wDLoQXIaSC1DBnpbkrNxiCFCMBVUO982DHj6qFX0HKtkjllTkn34KNVbydF9hgWPyXzcDiyYpZU/p1P4ybunU54mnNAzEKyyV9NNrhN4M9yi2cYwdA== 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=eh1SwKrCEpphFxEQ1WioF6/rTLmoNgNxx/xWdW1wVc8=; b=j0fGQyNR6FymtPlYfU5+XsEB7KduMxY2YCu06yh0bOqM2UOZIMZpn9g0KYiqYCzdXoi1kjdfvXnvUrxGqZNKRTCTc48PsGUGtppv/7EnpUI8UCSaoD20gijEilCXYLItA31HRcI395wbWJbuQjA3WERMsmDGOb3IKzwYcHux6EM= Received: from SJ0PR10MB5613.namprd10.prod.outlook.com (2603:10b6:a03:3d0::5) by PH0PR10MB4725.namprd10.prod.outlook.com (2603:10b6:510:3e::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8048.27; Tue, 15 Oct 2024 17:56:17 +0000 Received: from SJ0PR10MB5613.namprd10.prod.outlook.com ([fe80::4239:cf6f:9caa:940e]) by SJ0PR10MB5613.namprd10.prod.outlook.com ([fe80::4239:cf6f:9caa:940e%5]) with mapi id 15.20.8048.020; Tue, 15 Oct 2024 17:56:16 +0000 From: Lorenzo Stoakes To: Andrew Morton Cc: Linus Torvalds , Jann Horn , Liam Howlett , Vlastimil Babka , Jan Kara , Alexander Viro , Christian Brauner , linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: [PATCH hotfix 6.12 0/2] fork: do not expose incomplete mm on fork Date: Tue, 15 Oct 2024 18:56:04 +0100 Message-ID: X-Mailer: git-send-email 2.46.2 X-ClientProxiedBy: LO4P123CA0469.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:1a8::6) To SJ0PR10MB5613.namprd10.prod.outlook.com (2603:10b6:a03:3d0::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR10MB5613:EE_|PH0PR10MB4725:EE_ X-MS-Office365-Filtering-Correlation-Id: 3fe89653-b21f-4681-6226-08dced42aab7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|7416014|366016|1800799024; X-Microsoft-Antispam-Message-Info: U2doiZ3ItihxNTXIrGwWM0Fqhwi6S4+kFL/MqspXnZle7RYyo6JTCOk/ASGNBCe4OfypxSBubBVKPKzoFchH7v95m39IPqwGDDB0FTMFNcuciBW0wwLo/wDEvKh3D5YiMTIzHj4HAjlSAGuhMMSjHm0OjPwgdovSVYBU6DqErqGYHp0dP2FSFGwN8oY8BvUht/tr18klBvykCNovKdVCQIAjGqnp0BxRDCn8cVHOEuKr3mV/gtqQ/tOPE++7zNoiGutkTyAUhcc40e0UkoE6DBq4HVoS2bDPZeh94nQSUxnBfnGQuEbrHmlXSsvuFgXnx2eo6ziw+0EqAAcSbAR8KWjCf4j++OgGGhrJgcXm3fl/us3S7JvwzbnIT8b7tIJ1sKa5WkYVzXBbXSP/GfQ8shoAKThggHI5ICZ4XKwGglEeJjnXULBZNoo+bd8FqI9G5lnVV3/25/4uVVuT0qzNn541dy2M9liUB9Z1q0p9gQV08V9gvrKYv/vHQoLGl+3g+TUZJfOUQJIkjN7BJ5nh/Q1A0p87LNLDStTG1kcgI3l23/hlNz99qf6TQs/U8SE2Evd+4AGo4LvjBvvX6WqDYAMNNnR7eZK5LLTcoNMQFWuNesZue4cuyfl69SAQF9hWXQFklCGSVoL1KKzLkuAdI2OqEo++cDTDrHDc2TO8L8Xm0xPRIA9pt1dx93ejIB/RNruEeEXicelYd4eSS2rIYbVV7KOo/O6yhkZC2pR5FaKTC0IISfga1yKCQ3GqeJX9t8FvRAkiQBq4Bkql/OWZxi0dlofc8pntcePq8LZRmoso31RBiyb2pHla4gmmXO0UbRhsS1KcuNhvsx65wYlneNOoTCLxTML3K50lEsbGXNxNkNl2kQbQ+cyt5TKwKeGUBccd/7LX3NKtaR+nT4PfsjKqm6xBFxvjtaxO2bFfS+se2a4yILsPuFDkhEEnZQa4MIkfJb+crmOHy2qaByQfHPBOWh9GftFWdAtQu9mdWjXaeN0JgnSzVU4hdqAGQqRS5uwQylx/gxIBnr1nMmd4OwrC3gk+gl8tod9Fa23BOI3jSV0aZYipsfoX5UISNmeXNvk+MyAW/S7lQsPl9ZYIdOZFGYjV2GPtPA6Usp5h1NX2Ye0IxR7xJ96Rh07hQu0IhDmrQ4Xmbf/UqjspXcM3r9jSb45HUXamYBycvZF0ZwtxrGSw7KJx1kxba/snpILNgHUt5fMlPPQpEPpXObA5I4xC6GNIcgK+a/Z7BMtMj8D1KKfPb0uAU3Nbma0MbRRG80x6QeMv5pl6fp/LNBKaDQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR10MB5613.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(376014)(7416014)(366016)(1800799024);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: iSAQnlgI/VND8OAn+UFoeHE3yiQmkzdxSlion2kVMW+DXhzCvqz9LVZu9h7Joaek90nZFXpTeQPmq2Fi8PKjYEtQk5ZHb6XoY0I66QLnEOpjc4nS4Bn+cKX8EpTaCYmDAhcG3MVKW4ayCV3oskh1YeH+y/iuNtvi1IyiN8n8EjHwdkQ/h6WNOoAOuvwz+3pC9Rk6R5an/DyIoKHAAqrkG32QgMac2TBVC1s3xh5yzqXltaCGixJD89lMe1+1aBV0lZaYaIgfoDA+f7R9NRQvccFwA1srMV5HmgAF7drsouo8Utfbs4Zv2n++gLN54pL6PEaZx2UnQ3t9PAWl/IWrjDsUlEo+iAgq1UoGdnIXr++cOHfGtj6nNddctArJf1elIlSXH/Ds9XemhWyKO6GXJOpL6l8B46xJ8dqiq0uRMov0aoufXTH8I2ti7JeZz3xyWcUv1J6IRFnpwUPpM/UZ5jvQ5T449ZK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Y8/HpSXtjqKxTD7IPekzqk9M80WbKuIhnDqh581blJPvPyj1mloOFOQ== X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 75OgJhx/WJXPEoMIJkbdMY/UCdbuzo1Hj+nue8Hb1R7rnk8HBOaxqjOWJfvzBJIk4pN9ygdd2CeEEPZwwUNhHF9KrmLRzacTr63NISsTYP5pWClbYFaQMt3U1oHYeAhO6Z2QDrmjHgYerfrC4ucxWN1mqEO4oViqlA51Yq6jMiMS65CwMwSn2W7YcpCN70ygC+cOBe0qzRRGlEaJxr0biXhxMfJry2ma2298coAabs1cxU9cBytwxPThEl3SCiOVWVfBnCIo09ouBxgJAIRmROn++vGf2IqXfDe8AnrbKUqvp7z6eq2P50ak+FWlzunDVmKE9bD6sTH2avk0MalHQCtEtIKbuXtb8cgtiY/6wEeKrrkC06hY/dBeMA0IXzNxuVr9fjiDRO4YIIIxqUf5ar+JlG3CFPSbgI55s2dX6XodrDVrzL8BgzsbE6aOVqJsq7pnF/C1QeN0qft5wnub1E+Hys2U2lyS+8zxPAIGkNXfi7LOQxRiquFJBzcB10M81Npx4mQDZvn0ZICBWYOHD1xOAOyijl+6uDAihQyaaM1ZdrZD36mT1plqtT0BnTttb9+tCUAfhrsQK65Ge5NnlOFXxc9O2eoeh7ydeyHbtTs= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 3fe89653-b21f-4681-6226-08dced42aab7 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR10MB5613.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Oct 2024 17:56:16.8435 (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: ssq0GmCWU3Ezc9sPGVJPMGpaG0t3mmoxzrGCvKLO5A+FQKuQ5mxnWO2X5zPQfWCjTPvaVbd1AObz4GnDmxPhC11VONGxS/d+MD3JBTZci10= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB4725 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-15_13,2024-10-15_01,2024-09-30_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 mlxscore=0 bulkscore=0 spamscore=0 phishscore=0 malwarescore=0 mlxlogscore=987 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2409260000 definitions=main-2410150122 X-Proofpoint-GUID: JWBUJrH3Eg70BU4KmqtXfho0h3per1Iv X-Proofpoint-ORIG-GUID: JWBUJrH3Eg70BU4KmqtXfho0h3per1Iv X-Rspamd-Queue-Id: 71204180013 X-Rspam-User: X-Rspamd-Server: rspam05 X-Stat-Signature: eaoct579g51y8s5hosphnbuyg3fndb7a X-HE-Tag: 1729014978-990218 X-HE-Meta: U2FsdGVkX18peTaVrPrqAnZyGpoRmRDLpA9HUYnimw7xGKxvChNZ+WyBG7ydQL45qivdrxkWIKa5lV3oNLp8m5BPseaSVn1U6ZHfcCE0sIFCUkdF6g5SraXJmXx4TEZHjSFRgSmDs7bZWo8MQuJ8jM/JidYPhJc+M3fe2uZAdLTcVV6zMDFrY8NL1yrXbjquXVlxwox0tsrxaSoZMlZVdsE46qgsguG30WELAKdtzoI14vleFhB3UETrq3HtF0L6yNqcIGgqLPYpseZJyXsBndv0sxVudg/Nb/HRp/3LSbnDpbomXOrpZZGcoCgtq85NPuC0zoLs36ZrtsyTf8H2So/DIqivaMX2SrCqTgZ1NWsWUa7TeBBVbwRVwFfz1ipR+041DHX+JpvjtZsJw4H417sfpwEEAmGIlNg+UWAog6cty1UEyMKByUB39qeOLBSJHj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, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: During fork we may place the virtual memory address space into an inconsistent state before the fork operation is complete. In addition, we may encounter an error during the fork operation that indicates that the virtual memory address space is invalidated. As a result, we should not be exposing it in any way to external machinery that might interact with the mm or VMAs, machinery that is not designed to deal with incomplete state. We specifically update the fork logic to defer khugepaged and ksm to the end of the operation and only to be invoked if no error arose, and disallow uffd from observing fork events should an error have occurred. Lorenzo Stoakes (2): fork: do not invoke uffd on fork if error occurs fork: only invoke khugepaged, ksm hooks if no error fs/userfaultfd.c | 28 ++++++++++++++++++++++++++++ include/linux/ksm.h | 10 ++++------ include/linux/userfaultfd_k.h | 5 +++++ kernel/fork.c | 12 ++++++------ 4 files changed, 43 insertions(+), 12 deletions(-) --- 2.46.2