Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1964578rda; Tue, 24 Oct 2023 08:23:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEpDi6LNkzxRVmjxFu1zW0ayFDFeJzmVjadT4UWdClhfOGnoTvf0V55F+mHRrj+5cH1KAb0 X-Received: by 2002:a05:6358:7d8d:b0:168:eccb:cd60 with SMTP id z13-20020a0563587d8d00b00168eccbcd60mr4901042rwf.27.1698161018079; Tue, 24 Oct 2023 08:23:38 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698161018; cv=pass; d=google.com; s=arc-20160816; b=sCxnfHdpv8VxS/vKOhuABXAvJvxAs+vcLgs8YIrWFxrxG8dOfGu9Jq8ETKv+yjAuNq 1ZlGAZPmngAYGE40Kpr/B/j0tRI7EQk7gNIXbsKFxgF+iApfemPSa9UVumfFEaR7YhfA /48uHxxjr2QfNjwWKVzfN2/2G3qgR4sHjsxWRxLW0M1IcAR2zyioTeFNNrb+tW0k+fkh ND0TlhHNY6ykjfqpQhVITSEK3UTAE59aAWVA/XDvGjevNvHv2ulA0wdHrhv2a5uSaW3h VARpDwaexN1kwXS6Q0qiQy1zEiE3bZG6fzo30IXnrMua0EOdFVyp2Q/RqBOYoPhWaIQ5 2X7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:in-reply-to :content-disposition:references:mail-followup-to:message-id:subject :cc:to:from:date:dkim-signature:dkim-signature; bh=uYwXUMr2c9/1aMljXpg2yI95qx60Uml3td1g2uQiZaE=; fh=2rT8JTV4rnvvIzj4Z5ufSl3V5BgWwvao++twqJ5UwfQ=; b=naWK00kel2lcziqh13ecGR1iX7I+cKONOGRC8EcDT2MS1UUxSMhdhqmTd7e4RwHBJO MZBhWawmMWeP/2mzEjgVUbrbCLPiI8SKrUzsTMF0t9AMtsNkEtyMuKN7KVj2XEzGDHma EvQUaETpMCLlKz9J5RR7F53Ac3IovOoV7DovjMqFjjmn6vfgHWdYgLJHPnWeWApNe8qY 7RDGFnobJ6bGrQ1hDAS6qdYnG4jY2f9ikJTdO5bc4OMTyuDcZLp0+5mRE80vzPKrtPgy PLnN5OJqdMbxBomL4xj1LLmsFEkw2wZV1beBvSLqg7coIbju6RT+TVH/ArPB/1j+bfjg 0IRg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=j1BnIoLr; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=J1UOQFA5; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id d5-20020a655ac5000000b00565f01b9403si8227106pgt.883.2023.10.24.08.23.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 08:23:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=j1BnIoLr; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=J1UOQFA5; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id A46E580A79A1; Tue, 24 Oct 2023 08:23:28 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343844AbjJXPXM (ORCPT + 99 others); Tue, 24 Oct 2023 11:23:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33962 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233717AbjJXPWi (ORCPT ); Tue, 24 Oct 2023 11:22:38 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0CD7619A8 for ; Tue, 24 Oct 2023 08:19:32 -0700 (PDT) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 39OCJQcL032378; Tue, 24 Oct 2023 15:18:35 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : content-type : in-reply-to : mime-version; s=corp-2023-03-30; bh=uYwXUMr2c9/1aMljXpg2yI95qx60Uml3td1g2uQiZaE=; b=j1BnIoLr5L3bVSVxNooWjky41vZMmNhpxZ52ZDbFwKTa0wFLUnv4/N3dbLfvx6MZ7Evs qj4ex3/gwqy6KmfEmEpSh/lTVJi3Gglcrhb0VXGjxci7fxCNpO5IBk9PkOotjYQkR8mq JwTSJygMcBoW9ZYl4gwXXjxRhks5+BA45FblVTV5Hrb1/I8Zd7cX3d7Mv75lwr/hVAv6 jcWNsbvztXBqWAdkEC8fsy0vgM7rvD812x7yDYq3I2wmHldY7UdlmDuTQfVW8Egg7luo viUXSWORg73QmV2sAE28QkGTxmhv1yvcOa+qYsQYiEg+XbaYLAjvaJd1CtA4Chxkd9Qq pw== Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3tv68tdq0y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Oct 2023 15:18:34 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 39ODoaSg001564; Tue, 24 Oct 2023 15:18:34 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2040.outbound.protection.outlook.com [104.47.66.40]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3tv53bv9s6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 24 Oct 2023 15:18:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=B4R1IcAn1Z3v04BbXvRkejm3zFKkAG/cXmvGzXaT6pROS9aze5z44Y44BiAZN8jjQFLvlFQFRWbyui2x8MAb9tfKoIOoey0yVDyUKV70ReEQq70VOU75PdVhfAxFRtF6vVGzX4Rzql/7Fo1q34+TCghdyBzLUUr0NIrQTiU7FFa/izZZd9OO+88u4dhSGDZWaNzVQ3ZQwdI3ehf+rm8eGBpqiSiNPNsmPDDaGhdUBmDcQnD48llyqkfJsBGTOG35UqPqhqObTfw/3ZBAeGTs868KREaAJBBftiQJTBj0fbMh8gDzOxpsTjJ3xYsiiep359S16xp1hCwcVpSMxl85FA== 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=uYwXUMr2c9/1aMljXpg2yI95qx60Uml3td1g2uQiZaE=; b=iSYZFs7m52zc3H1pqLv3wLNjZGOba4K9+qDoHubgASn0PsFOAkdcqyOHp6FrDLZe7h534965TXyaLnVjo+zNVdHP1PheR08Wjq4UtkrYh6u8pzdqJy/9DXk5TwZVhtfQj0prw2qjD/B5HLPtH/ToLNRDAAvSC6L66GZdmqxOT406zTvpYelNpnOUi0YrrNnU7kOh7zWB0Lz3kD8mnYZ6kO/WDGu0IfK5CvVTc+g4bDGBpUoLZhyObh6xrY1RxBRIukjvSczewameALwK0qtKxK75xZdWj5tSNRJCNhq0qadbASopzge+eMcM/g9+oglgvjF59uF5jJxIlriB4zinHg== 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=uYwXUMr2c9/1aMljXpg2yI95qx60Uml3td1g2uQiZaE=; b=J1UOQFA5ph6k8z7VEHNR/Zu63KStgZ4dU5NGKgy4mSrKzkaJTDisX/ax2+r5VNhSbXPO/b7uUh3gWpjMtYJC3xHAUtJPVRQeln05vB+B1JtCj5uy97HlQIj7HhNAhqzWNPgXqhpevf3qqtiIzbb4qc4CpUr005HiI104MWDvACg= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by SA2PR10MB4780.namprd10.prod.outlook.com (2603:10b6:806:118::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6907.33; Tue, 24 Oct 2023 15:18:31 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::8979:3e3f:c3e0:8dfa%4]) with mapi id 15.20.6907.025; Tue, 24 Oct 2023 15:18:31 +0000 Date: Tue, 24 Oct 2023 11:18:27 -0400 From: "Liam R. Howlett" To: Hugh Dickins Cc: Andrew Morton , Andi Kleen , Christoph Lameter , Matthew Wilcox , Mike Kravetz , David Hildenbrand , Suren Baghdasaryan , Yang Shi , Sidhartha Kumar , Vishal Moola , Kefeng Wang , Greg Kroah-Hartman , Tejun Heo , Mel Gorman , Michal Hocko , "Huang, Ying" , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] mempolicy: migration attempt to match interleave nodes: fix Message-ID: <20231024151827.i7e2f6cheet4k5h5@revolver> Mail-Followup-To: "Liam R. Howlett" , Hugh Dickins , Andrew Morton , Andi Kleen , Christoph Lameter , Matthew Wilcox , Mike Kravetz , David Hildenbrand , Suren Baghdasaryan , Yang Shi , Sidhartha Kumar , Vishal Moola , Kefeng Wang , Greg Kroah-Hartman , Tejun Heo , Mel Gorman , Michal Hocko , "Huang, Ying" , linux-kernel@vger.kernel.org, linux-mm@kvack.org References: <77954a5-9c9b-1c11-7d5c-3262c01b895f@google.com> <3311d544-fb05-a7f1-1b74-16aa0f6cd4fe@google.com> Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3311d544-fb05-a7f1-1b74-16aa0f6cd4fe@google.com> User-Agent: NeoMutt/20220429 X-ClientProxiedBy: BN9PR03CA0231.namprd03.prod.outlook.com (2603:10b6:408:f8::26) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|SA2PR10MB4780:EE_ X-MS-Office365-Filtering-Correlation-Id: cc442e51-7b7c-40ac-0dc3-08dbd4a47b41 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: 07mQZD/b0jJ5mR6Ic8c+eY0pzK85kcuSza3A3UgoV7WjYUNZQNfg9nB4h2EwpGlzWAV0oaRPWcCez2IMDOZPB06GF8XThXZNUcHbqwU0iNkwVw/9F5PFLkb/Tr3OeaF1bM6JmWH2acTbPEnffIhHzARENb5bhnV+62Fx0PQzVWWwgEb3CAE8mPTvRcugj7IFDVItkxOT50FMHTwpktie4rs6ar0lvhq9omoul6yR2LT5Gd0heepbDXOLcv9/8dc36DMSu/p+1BtPaDExMoS/KyDYS+01I8+fimjjWwIDYuJocX2S3+en+KBLS1qQdfPPScP4KIy3Kx53SfjNMRzCiwpbkAeG8I5rt3BpG6urJ0SQDfHxd0piUow7l5AHcrfoUOXJrYG8HtuFLF/DYrCxJWZDgjEal+kKwWJWb7gyzpqO50iOrqpYY3apPn8WP97Pu6lRZ9NpHZEXbpaW7acd7T7UOYlLPqipH0YyySPgAOscIZ/VqbX/7imybKoUoSJvLqJRmVt/0J+1ETu3ZOllKZOSF9DBJwsdB3kyLxXF70M= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(7916004)(366004)(376002)(396003)(39860400002)(136003)(346002)(230922051799003)(451199024)(186009)(64100799003)(1800799009)(478600001)(316002)(66946007)(66476007)(66556008)(6916009)(8676002)(4326008)(8936002)(54906003)(6486002)(966005)(5660300002)(6506007)(86362001)(33716001)(38100700002)(6512007)(9686003)(26005)(2906002)(83380400001)(41300700001)(6666004)(7416002)(1076003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?GA5yJquQN223G2Ioj7LvYe//RbJmiq5DmH3Z3xe05nGhfst2HF9j+Yl7U3LJ?= =?us-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Jp8dCHztIIP3rchhQjgCL0aANwI?= =?us-ascii?Q?AV2PzIrUvHh/LirKDi/c6rJ87vX2WIbc7N//Lg+H23KdrnmDRuX2D2yQkGZy?= =?us-ascii?Q?M/pi8Nbk3ljdIbovSyUJ4356EvXFZfLgXZ4QfA9fye679Pjme8EBIpS/av0D?= =?us-ascii?Q?/gnxUpQtOJv+0pYzFAZ16mLqiW7Iu/bZGWhjp34kTSZQvMPsNf8EzDh/k76+?= =?us-ascii?Q?Zf853ad+meZlujTS92l8CAlh2C/F9B9GaMhx1H5S50E2UyNP5xqeqarAc6j9?= =?us-ascii?Q?HERr8tFZaesdf/gWG7OJ7CepjWZzTmI8e5GV/DH4y632Jul90rUPV8YOgiBm?= =?us-ascii?Q?gfp+ZgfY/9CX/ZAYiIFXIAgkN5MEcRLzgUSH0RSskoKgJqFUnNoNbYxZ+5fp?= =?us-ascii?Q?RS9qenAXp9IeTOtwkzKgjLjY4QBlE8Pkh0vkmpGf1/lkkvy4T6rg6WS8eyu6?= =?us-ascii?Q?BYMD6bOleTZuUfS9Y+9cAJimhqjOvI2JoLuwgviXgkVKytJUo9DV/Yq8hOEw?= =?us-ascii?Q?svOQSa4/81+oL5vxUjghKIrqfB3cypFeZnpqhAGWPdWNq77P5+hxkHHv4lPZ?= =?us-ascii?Q?Plu7koYTOzNIPyWF0fW5IyccQOPxF9JDnxtxYU4KNmCXGITaNguGi72iVwle?= =?us-ascii?Q?2QmV7UtHgZjtgMcHWIklXPJQ5M1d2+BMg+udg6ii?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: =?us-ascii?Q?+YMUNyXS0bEWg7NJoeVPHi2n3ayccCnv12OeBzFbKCTQrBZRUkWOvNjA0+/+?= =?us-ascii?Q?mn/y2K07fIvIqH8V+zBQcUtN35snKqR7tdbHis9NtdEqJD+wz6pyRAj1+FvV?= =?us-ascii?Q?WhfWoPux37vSZlXPd+OO0vI6e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?PJEV+1Bd2Zmw+PP+774TTsDePpDWySoKIzJm8ld4KrssWy+7LC83kycZ9A2O?= =?us-ascii?Q?zTC4XRmft9p2z4NF4mOBvr3MWV3ckIjmco3lT+SAMgvklj1mXaXSUpPi3uq0?= =?us-ascii?Q?apSjlHy0PQSuJsbs1bHWT2OPHuXJOfrhdp2e72I+Lusw4OlF3lavpelNVr5Q?= =?us-ascii?Q?r7eCEqjWZ9o8bF8Sd0g/lLj74zpPPTExEferjsABFFVLZSLyGhSgpoEeIYyL?= =?us-ascii?Q?EPHh7+BcKbek4+pdpLiy?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: cc442e51-7b7c-40ac-0dc3-08dbd4a47b41 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 Oct 2023 15:18:31.2235 (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: tLDEdGw7aK6lCjGJM2AHB9MzJ9MGW5CRlIdkyscwZnr5q4NEJ99DB8lOE0SZqpGf9V3LIGpvQzLjbFbgB+iWJg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA2PR10MB4780 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.980,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-10-24_15,2023-10-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 malwarescore=0 mlxlogscore=797 adultscore=0 bulkscore=0 suspectscore=0 mlxscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2310170001 definitions=main-2310240131 X-Proofpoint-ORIG-GUID: wBEOtOnm0RJe2YQz8VMF34e-dWIxiNWy X-Proofpoint-GUID: wBEOtOnm0RJe2YQz8VMF34e-dWIxiNWy X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 24 Oct 2023 08:23:28 -0700 (PDT) * Hugh Dickins [231024 02:50]: > mm-unstable commit edd33b8807a1 ("mempolicy: migration attempt to match > interleave nodes") added a second vma_iter search to do_mbind(), to > determine the interleave index to be used in the MPOL_INTERLEAVE case. > > But sadly it added it just after the mmap_write_unlock(), leaving this > new VMA search unprotected: and so syzbot reports suspicious RCU usage > from lib/maple_tree.c:856. > > This could be fixed with an rcu_read_lock/unlock() pair (per Liam); > but since we have been relying on the mmap_lock up to this point, it's > slightly better to extend it over the new search too, for a well-defined > result consistent with the policy this mbind() is establishing (rather > than whatever might follow once the mmap_lock is dropped). Would downgrading the lock work? It would avoid the potential writing issue and should still satisfy lockdep. > > Reported-by: syzbot+79fcba037b6df73756d3@syzkaller.appspotmail.com > Closes: https://lore.kernel.org/linux-mm/000000000000c05f1b0608657fde@google.com/ > Fixes: edd33b8807a1 ("mempolicy: migration attempt to match interleave nodes") > Signed-off-by: Hugh Dickins > --- > mm/mempolicy.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/mm/mempolicy.c b/mm/mempolicy.c > index 989293180eb6..5e472e6e0507 100644 > --- a/mm/mempolicy.c > +++ b/mm/mempolicy.c > @@ -1291,8 +1291,6 @@ static long do_mbind(unsigned long start, unsigned long len, > } > } > > - mmap_write_unlock(mm); > - > if (!err && !list_empty(&pagelist)) { > /* Convert MPOL_DEFAULT's NULL to task or default policy */ > if (!new) { > @@ -1334,7 +1332,11 @@ static long do_mbind(unsigned long start, unsigned long len, > mmpol.ilx -= page->index >> order; > } > } > + } > > + mmap_write_unlock(mm); > + > + if (!err && !list_empty(&pagelist)) { > nr_failed |= migrate_pages(&pagelist, > alloc_migration_target_by_mpol, NULL, > (unsigned long)&mmpol, MIGRATE_SYNC, > -- > 2.35.3 >