From patchwork Wed Oct 5 01:17:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Kravetz X-Patchwork-Id: 12998812 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 EB5E2C433F5 for ; Wed, 5 Oct 2022 01:17:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 51FCA8E0001; Tue, 4 Oct 2022 21:17:28 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4CF636B0073; Tue, 4 Oct 2022 21:17:28 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2AB968E0001; Tue, 4 Oct 2022 21:17:28 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 05C526B0072 for ; Tue, 4 Oct 2022 21:17:28 -0400 (EDT) Received: from smtpin10.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id CDDC81C652E for ; Wed, 5 Oct 2022 01:17:27 +0000 (UTC) X-FDA: 79985132934.10.C9B9BE3 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf19.hostedemail.com (Postfix) with ESMTP id 64CC01A001C for ; Wed, 5 Oct 2022 01:17:27 +0000 (UTC) Received: from pps.filterd (m0246631.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 294Mm572005121; Wed, 5 Oct 2022 01:17:15 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : content-transfer-encoding : content-type : mime-version; s=corp-2022-7-12; bh=FlgweVLRRE+b8pR1J5LwCXBCQexfEBGQWCGM+XjTR3U=; b=yA51cRhnRHajdJhxDWscQ0NLJ+0DUgeBeXcOZZCMAvYmcLk3sp4g4psBgs0GrVEaajv6 9ver0uILPGbmlp97MjKriY2IjYtOV52ggdKGu7UdcPCUMTydj6R2Sult5eur8NO3nzBR yXvAwaBVbFkERGdDdOXpnv4DOqwnRYPyrK6uUuF6v8oYh1fsXwFXyw7AgrPYOLAZmn/d y3SWnRKJ9+GCpD4+UZwYSjJAL1Jcn7GGAnwNv0Ktg9JgFFoLUq6/jpFyEmFE9FmFrO3O JjBwhCkQGH/wC39lZNn+SWeLV8SoRF9+AQMfVLx4TM0ms4JgM3dSvl+DCMh9AMnALL0+ oA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3jxcb2r2ke-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Oct 2022 01:17:14 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.5/8.17.1.5) with ESMTP id 2950Aixn019871; Wed, 5 Oct 2022 01:17:14 GMT Received: from nam11-co1-obe.outbound.protection.outlook.com (mail-co1nam11lp2176.outbound.protection.outlook.com [104.47.56.176]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3jxc0b15n9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 05 Oct 2022 01:17:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VaPic9aoLILKUciA+AfLHJFbqrrDq0B3b/qay1wZTA7FW44eB7/2/dOPIaf3EtRNySPK6qnzkX488r1bZQES7Acux+tkpJI9knp2VWn9O+oG7L5lOk0VCtx/hCbeWsD5YPeP4hMmcwKRZIaMM6BchAtO9bbBszdAzObg+l2WMGorh7yUBeyouPCerq5k4HmD4296xpqbq+iF0zKwW1x6YfBCgjESfb7RaGuzIHb2O0W1qZtlQzqrXn66Uk/SNKfqytF7MT43+YtOHKa6ukEe/pzl728pMtQfMSpvm5GtcGgYH33Y9Dr1XmFHMQhjfAJf/0Ghaiz9mb8aKwxO5DM2yw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=FlgweVLRRE+b8pR1J5LwCXBCQexfEBGQWCGM+XjTR3U=; b=IGJMqbkcunN8N5CSur4btk/SunUwSO4+9E8qWRLkbffTOIG3kwvu3QL0AE1DP4wAE83NS7LROJZVT3JMoNV0IvfOjj/An/gu2eYInsDD0rSPt73TBfTkXYvCOiCq1FtGuzyENxzaEMChrlBpvRVhxUfClUsCICgFbKl/vHSw9XVFjzAohBLYdcPTXQlFXW0rs7/oI8ljRTux8vdAjzN6sYOAknRlOUUDhbV7FwpVEddF2R/UetDmiCTVy4JBrZurt8NjK1ztjw3XDB/zJZ8Pj0tV+h+vvoysv8lt2cgsRlhU4w4TnIIfLC4b0PzC9z2H1f97zGR0wpiLsmzWwJZs2w== 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=FlgweVLRRE+b8pR1J5LwCXBCQexfEBGQWCGM+XjTR3U=; b=BCrpGaOYA09TVPW3BE17a141vDjYoNRAAY9GqRqiLrbTN7f5s5Ue4fTudk7OXVm6aVUBDo9BhLcj+xnaZhrtV8EayKsAz2PCWIVFKx98oGeN8YtFdL4iSe+gbqIZuWhcQQj8G5tqrtdUIxs9p7KhP47MjEioVMZg8SsZaqW1ytc= Received: from BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) by SN7PR10MB6286.namprd10.prod.outlook.com (2603:10b6:806:26e::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5676.24; Wed, 5 Oct 2022 01:17:11 +0000 Received: from BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::dfde:308:42fe:6c5a]) by BY5PR10MB4196.namprd10.prod.outlook.com ([fe80::dfde:308:42fe:6c5a%3]) with mapi id 15.20.5676.028; Wed, 5 Oct 2022 01:17:11 +0000 From: Mike Kravetz To: linux-mm@kvack.org, linux-kernel@vger.kernel.org Cc: Muchun Song , Miaohe Lin , David Hildenbrand , Sven Schnelle , Michal Hocko , Peter Xu , Naoya Horiguchi , "Aneesh Kumar K . V" , Andrea Arcangeli , "Kirill A . Shutemov" , Davidlohr Bueso , Prakash Sangappa , James Houghton , Mina Almasry , Pasha Tatashin , Axel Rasmussen , Ray Fucillo , Andrew Morton , Mike Kravetz Subject: [PATCH 0/3] hugetlb: fixes for new vma lock series Date: Tue, 4 Oct 2022 18:17:04 -0700 Message-Id: <20221005011707.514612-1-mike.kravetz@oracle.com> X-Mailer: git-send-email 2.37.3 X-ClientProxiedBy: MW4PR03CA0305.namprd03.prod.outlook.com (2603:10b6:303:dd::10) To BY5PR10MB4196.namprd10.prod.outlook.com (2603:10b6:a03:20d::23) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY5PR10MB4196:EE_|SN7PR10MB6286:EE_ X-MS-Office365-Filtering-Correlation-Id: 8f3f0ab3-f817-4cbe-452e-08daa66f5471 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: mDYt3ayXuSc7/zJ11aDqoZI5hASogDfMYMyN/PKQZe0vtb76g5nldcv5WpIKKv30wY32XmXrF9BRrUnMLENuMONmoXVbes+Ga+EEOgzgJESXr/9AZNT7XaPe6v1/iw22kNoXOX5/9PTbT5u4yBmVY8+aC2wh6KifP4E0cUl2zn2QV5T/YRQUz21omaw4UntvQO7b26za6qofkNQ3mX7PHLO2gVb+ih2F/DsxLfLQHfVmUIUXs2zKxwALi4CftMLiPkibbTMb/6RGTE2S0rGkFMy/1xpI3ZG4JR+uNeokFvBmhklCkzNmAlbUK7dKNDQAj+6YjGHR7o3gOhSom85coTWLgFgcHPqflxSbxp3a3bu7z3ilvhnySEbsbmSPW3uqhW4eDKcKoveaEafezsAtgFqT7e4pRiyCyxSvzzJW3m6/Vz7DwEsmKTxga63q3O9u90+nKRMiGtCJCW3CpNSNj3fOVNjEROyGgrxqmAOM1dDPNb0vSK+Y2TuwP2Exbq7n9kzgdpPjDlIGam72bqLZqa+hpxsmqQIqS0lnwSBRtas64Ty6rFjc5eLZL4tciSNisXW5CZ+gHtYG3kI7kszBSAToJKc1NNs9s3N4SmPdAE0GscMwxHDZwIfon6z2FIZUwbLUGfWs8zhorStiuLEJyGOMkUoIsiaAWvWsrXNJFFPLKUTMpC6gDZBcT4DVi2U5jQKvxRW1kESi7G5W1+SN8x3Y+0G27Ffle2dgFsHpqG4= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR10MB4196.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(39860400002)(366004)(376002)(136003)(346002)(396003)(451199015)(107886003)(6506007)(6666004)(966005)(6486002)(478600001)(66946007)(4326008)(66556008)(66476007)(8676002)(36756003)(316002)(54906003)(38100700002)(186003)(1076003)(2616005)(86362001)(26005)(6512007)(83380400001)(41300700001)(44832011)(5660300002)(2906002)(8936002)(7416002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: JYwwiUpo1p1iTzKL7UTIdGFnR6a3xyJAJXOoILK03ew9BYMN0XBToxpluJzY5+gcdAevSAgVkVs2PsUEPqQ5jT5CwY/jYdvvNQohVrXKBGr9Sv0k7CHK4vGlQDwFbi5ffyZ5xjHV/j082oi8B+wJ0LOBJVGJb3vHtXRCNS6sGxgEFKyatw+iKrE0s0NmoFscJzvxr1sFGNRoUAJLH8wgxH4juSysEAjiufX/yANHtinhJy0iW2njmhl++hdygR2xKMBxv0zp2S996Isbqm+JJkCCO+ZcheodMYQBZ0oqBvtMsqNNwqhqOighTgmRjqP7zAoEhgzTS5i8G6YKpnpFPccBvF/ddVw0sTPbpFpB215oK9ADUoiCTDcTWwH0whUkYl2TIiqFgXrrVGFmYIfWQi4ZvkMLtvqn9rCwSAIgV4v4Hah7lGSe167QJJ3mmYR7K26ecjy+HKQFM+aPTTB4VY02iWn4VDWTTDA9hMRoYag+XGU+V5LQ5+5Zpgk1HafPXqAfPCUF9y7fAENUvdbx2LadmaRbj/Q0H9TU2UD42wQy04qep3bopnnLWlU+q043olEQdqsssOgmmJNZEvtIHOdKxVb/kvF7iWn7x7/uBTHH1vQWzgRMSwZFFxClgup/NH+0NlWpk6RRbmhrAN/R1aQs/YIo0W1v0MTtQoTXUupmsYBiZqO/pEbf0OUysh/EoS0bEXuvikrIyqvEa+laaeTtw7PcqGMCfpOIfBCAkUuzlm6NNa4PSVW3exPJrb3BA/0UFbW+rbgCtkjtkEDd6UFJVh4ZbTHew68Ws4ghQx/fOY1SDgNj4uM8JIxAtvZqmRGigOmSN9IfW4dVLHdUuPQIUREQ3ZmHPUIM1ljkBgIcSC1yr3bPqVpR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+j6FE9WFvFrG8C1b6EitRmz9G5x761P+WOQHT/UyWReSCQ+TqSK3FLK9ZFc8Bu1S4BeVzGg== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f3f0ab3-f817-4cbe-452e-08daa66f5471 X-MS-Exchange-CrossTenant-AuthSource: BY5PR10MB4196.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Oct 2022 01:17:11.6822 (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: A6qOjPeQajx2I/BIuCl0ieiDVVM2c3z8zwLBhRJNmws5sR/s2K6+oKXZ9iQC30jBd5eWW6ae8uSnTN2HqtoYDg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR10MB6286 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.528,FMLib:17.11.122.1 definitions=2022-10-04_09,2022-09-29_03,2022-06-22_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 phishscore=0 adultscore=0 mlxlogscore=999 malwarescore=0 bulkscore=0 mlxscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2209130000 definitions=main-2210050007 X-Proofpoint-GUID: cahoazbePDiGsCo-HnaYtaXd_HHvmTvz X-Proofpoint-ORIG-GUID: cahoazbePDiGsCo-HnaYtaXd_HHvmTvz ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1664932647; 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=FlgweVLRRE+b8pR1J5LwCXBCQexfEBGQWCGM+XjTR3U=; b=p9Ts7Muh4LqCwT2AkL33Sg8MstjnHVbAISGA5O7Qpl+WgkxcckhpintooLsZO4ZRIgm88u vrUcHiesV47R6P2bTd1Y0KApkyPaJOhvjooVJDGmcvycjqVCk6dOyhV+FOPx9P3BU3ncLs dpuSgdu87Ah/ZvhA7WcvRIrYodScql4= ARC-Authentication-Results: i=2; imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=yA51cRhn; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BCrpGaOY; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf19.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1664932647; a=rsa-sha256; cv=pass; b=c1ES+4AimTRcK+dNIAvHja9zM56qKdReTJy4i7L50Ix1Ovr4o2Uo6xjD8wDrwZxtKK9Fxi N/eSk2mWIFXrl1EzE6V90nkKcYPA0Gnf4NPzxwlis34uwhf281K4uChsY3YghLH8gT9eHj wy9ErPsA0LVqfW36bHDitnDMZNxz1Q4= X-Rspam-User: X-Stat-Signature: 6gdrzwizzbabdbfk9auwdgxpsn8bnfc3 X-Rspamd-Queue-Id: 64CC01A001C Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2022-7-12 header.b=yA51cRhn; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=BCrpGaOY; dmarc=pass (policy=none) header.from=oracle.com; spf=pass (imf19.hostedemail.com: domain of mike.kravetz@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=mike.kravetz@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") X-Rspamd-Server: rspam01 X-HE-Tag: 1664932647-260386 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: In review of the series "hugetlb: Use new vma lock for huge pmd sharing synchronization", Miaohe Lin pointed out two key issues: 1) There is a race in the routine hugetlb_unmap_file_folio when locks are dropped and reacquired in the correct order [1]. 2) With the switch to using vma lock for fault/truncate synchronization, we need to make sure lock exists for all VM_MAYSHARE vmas, not just vmas capable of pmd sharing. These two issues are addressed here. In addition, having a vma lock present in all VM_MAYSHARE vmas, uncovered some issues around vma splitting. Those are also addressed. The series "hugetlb: Use new vma lock for huge pmd sharing synchronization" is currently in mm-stable and may soon be merged??? This is why I am sending 'fixes' to that series instead of a new version. If a new version of the series is preferred, I can do that. Just wanted to get these changes out for review. [1] https://lore.kernel.org/linux-mm/01f10195-7088-4462-6def-909549c75ef4@huawei.com/ Mike Kravetz (3): hugetlb: fix vma lock handling during split vma and range unmapping hugetlb: take hugetlb vma_lock when clearing vma_lock->vma pointer hugetlb: allocate vma lock for all sharable vmas mm/hugetlb.c | 127 +++++++++++++++++++++++++++------------------------ mm/memory.c | 4 -- 2 files changed, 68 insertions(+), 63 deletions(-)