Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2067059rwb; Fri, 12 Aug 2022 11:19:12 -0700 (PDT) X-Google-Smtp-Source: AA6agR6IHWVjp2c897mMnypLpcOPNX3s/IUSX6hWtTzsOD3Zk+PGXo9VGxK+YeT/ytLRkZ07lBlj X-Received: by 2002:a05:6402:449a:b0:442:c81c:b938 with SMTP id er26-20020a056402449a00b00442c81cb938mr4529098edb.289.1660328352771; Fri, 12 Aug 2022 11:19:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1660328352; cv=pass; d=google.com; s=arc-20160816; b=ukwM/CSX15GjDUpaRMjWdc1Z6d/600p0Rbyw0ebUIUE7rK22KIrYmqOMoacbbRmldi JoQJgFqN83+J7GuMo3fWlkFlptiTGirlwC//47XSle3OxXFybbzryzyegV6DhV+3Bj5P xpjAeHerCVU6979V0Qwi55YYecmmWndZ6p+8Jhi1g0YIT1+o338iUt4PIMgOaCJsSn9W 6lXPP+o9D2CWRtLxOHIKdoORz6h4KeDlfrouwM1HAAZBk2+MSnpLZXQEs697ds8Vagt+ j8KfkcwhVjdHR93aZnfYeRvG3GBhtCQQ11Pxve9AaRvf8K01vM9X7Mwb1YirQp6zajyu /elQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=q5gt6Zg7d6bdRXaJRss2RDX1cvh4CFPpPnePPND0e/M=; b=i9Ym01/YN3GlhkaeVLCg4IyFGAJBK4KHr6zfL2PoD33p6V+d7XBz29PGmd62gzCBY2 kSYkzQL2gWTGC6S4caU9uk/VjFe7MMJWaz85vPCq98BV7i1jYfn8t+KlcOnHqhy/QHe6 udxqkHkWpKvfpy0GnmCtJJOtc6Gn6H1P8Up6CPsg9g1/iPOmS5K2/XQw++lJ7vEnIrrm iZZOQoPfly+iDkk9YiwwoD0AyBs2hBkSs42QTUTeiZDNE90us8mAbBNxoEMpKtP1yHlO 3Ugeyms2tlh4MENGIQKUNbuVkjXaMAW4GNoNK8rNas385SG0ina3DsxdQaIub84mc4H2 5vnw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=noWYHMFC; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b66-20020a509f48000000b0043e8539199bsi2643805edf.489.2022.08.12.11.18.46; Fri, 12 Aug 2022 11:19:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@Nvidia.com header.s=selector2 header.b=noWYHMFC; arc=pass (i=1 spf=pass spfdomain=nvidia.com dkim=pass dkdomain=nvidia.com dmarc=pass fromdomain=nvidia.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=nvidia.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238789AbiHLSCv (ORCPT + 99 others); Fri, 12 Aug 2022 14:02:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238086AbiHLSCs (ORCPT ); Fri, 12 Aug 2022 14:02:48 -0400 Received: from NAM12-DM6-obe.outbound.protection.outlook.com (mail-dm6nam12on2061.outbound.protection.outlook.com [40.107.243.61]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C9A5CB2865 for ; Fri, 12 Aug 2022 11:02:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gqS/ZR+Ad5nJMjOehOfUpKm4IIeuje9DAgY98hMxeBmMwGPy7dJ4qB7Nw/bX5XuJb4+R5RgVClfTYRu7Yj4nxtV6yjI68XJSwSLl7ss+968XKVuu+L8aOicV+/qWuQ8fF8Cyhh2UIq8DKhTYCiDjJtoLazrwSzFpSRHO65GAo5oRNsKFfvNxZN08qSIUFMa0X2dIZTCVCGsa9LK17wrAMLVtWgqF9y1ChD5cM8t6cTJNtzBa0KzqsXK6EroRx3gds93p4wGZ8TV2SL9EPLKyYOXH9SszTGPxayQi6jJ9p3jnlsHWU+RVJPG9GQEf+TxRQLgMqRg2n6xPEFSNfEkO6Q== 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=q5gt6Zg7d6bdRXaJRss2RDX1cvh4CFPpPnePPND0e/M=; b=fhmy31fUb1PrqXwg2WAY674dNCCqerVJ2EquCwNlPtqoMZE3vKlvwRsWhod1tF0JY/UBB4whuoLlot9sGofJn26feWJ9xfp9UkXIUiDhRf6nn8DFqvSPdppOKifGFqEWp9XFkAelT/84KAvOmTUSZW46bbB/b/fjxehhS8YmGKla8Evdq5Tq1pBUjvMAYbh4WLwNO4ePU/k9t/ghB4NZDYWzhIvd3YMDct1VN0gbMaqyjxzQjkJ/Qay9shcoXFJFj4VA08da5IZ/JACH9N7ulWDxixNjgiosbUlHNrusnYfqgjfaHmpmWHBi1we3QodhM19qKkGZEy1/QmKvhsNEOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=q5gt6Zg7d6bdRXaJRss2RDX1cvh4CFPpPnePPND0e/M=; b=noWYHMFCfzeD8JkYZRBKHw6zZKn59nlvMEtc3pqsDbWvWG/Qfexgd2fiomxW999nfrYLpo7ZRE2M8hx3SkqDj1e6Ys6T2za84p71BqYOsLmXgUFEwwS2uZqfrYoiun6LUHRKJG/7r0pEegrm87sRTfcmtpAmiO104ZdH6QFxAXShI43zINGJvB4S0BmZTicFyQM0NcIX0yvYUaF4JNKEgyT/czVjwN/F1D4TNUsiMdG/FnlhqiaR8olIXE6IIjHl1nvIiKa7OAhlWj1OLC6nJNu5xamQdUIyuk8VBTahB1jynnaZftKbr9vphn2L+e/ksynn+iT18JYywbwJykk15Q== Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nvidia.com; Received: from BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) by MN2PR12MB3694.namprd12.prod.outlook.com (2603:10b6:208:165::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.16; Fri, 12 Aug 2022 18:02:46 +0000 Received: from BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::508d:221c:9c9e:e1a5]) by BY5PR12MB4130.namprd12.prod.outlook.com ([fe80::508d:221c:9c9e:e1a5%9]) with mapi id 15.20.5525.011; Fri, 12 Aug 2022 18:02:45 +0000 Message-ID: <51d4408b-14f5-f6a8-80cf-d23cdb0a7c69@nvidia.com> Date: Fri, 12 Aug 2022 11:02:42 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v4 1/2] mm/gup.c: Don't pass gup_flags to check_and_migrate_movable_pages() Content-Language: en-US To: Matthew Wilcox , Alistair Popple Cc: linux-mm@kvack.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, "Sierra Guiza, Alejandro (Alex)" , Chaitanya Kulkarni , Dan Williams , Felix Kuehling , Jason Gunthorpe , Logan Gunthorpe , Miaohe Lin , Muchun Song , Ralph Campbell , David Hildenbrand References: <487960bf67c7273ff5606c76f73bb51271bc7b90.1660269441.git-series.apopple@nvidia.com> From: John Hubbard In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: BY5PR16CA0006.namprd16.prod.outlook.com (2603:10b6:a03:1a0::19) To BY5PR12MB4130.namprd12.prod.outlook.com (2603:10b6:a03:20b::16) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9f884319-71c1-4f4f-0529-08da7c8cdbd8 X-MS-TrafficTypeDiagnostic: MN2PR12MB3694:EE_ X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AQPG80qTl4c6eL/pp/zpMGbcREXRR+9/9YlsbhBroy9bSqa/UrrGKXKUxRQXfqCGd+9pAVe+qZbHp5N/YVg5KmhceV64DlAu64M5IsWOrdG6aJHwAM4TtIDTUtOa8nSvnDcyDiKRcZQXo0wUTefg2onOUrNF7Oh/Gvb37+sC0a3tiQBcfiV8TcyT94dTxaYSXdPRxSqURX93/eTimIPZ+5IqHg1MxzbZkKTKbEcQoL9ur3o53rayKwNQpqFKgdBwiu+APmy7E5T9Ssydb0ztltVCxBMOtfQInba+ucrsRT90b2mHNrWKsxpzeC+elD+rfSDwN4agoGApJ0PH8ZQ7GweC0eQ/8kkIJEHooCpIjBYvpea7jR5wcxNWfcF49Gvj8A9b0UHfXRK0RR0X0DlEaFTJkEZ70SQ0CDGfeLlRd5qff3gTDfgEq0tYtJJxMLDEWB0sJLjL/2T3xO8GXa1u/ZoXd7V8E+QMF50A5+P+6gWu4W7E6YI33lEBDuDSxFKJ/6YOOAuoQj0pyFmcAAb8ISaVmlFZGIFVOaZecl2pS7T15OvmUgKZWoKJ6tIU39RyQQKXE7n/1WtxnJOh0lunMDaa00ahaZHF0b7QVx3QzYrh3EMruMMhuMsPq/AJLTgO838SmFZ9b+WuAWFTg6dXGUvdZ4Kbz3jGuXxvqmSu3sCpLiSp/G6IjkuUA/W9rK5wgKbBnFEJW7aUxj6WaKvYD90A5uZmxfpPbGdHDcSXf6q3xoHtWMj6qo1uTJUOGfZdtuAmdQH15HLuR+pBhBVK70DTnOVODVqEvywbjxgouznHPTAVRImuRlRyyHcEkv2uDGifavrZMWK5d2eWO39CMTAG+muM97ZkDt/PV4/NSp4J+XgsSPsDOVqD7Pgz9XyxotPTJr1IzqiTIFxAZgBkmqxWA3rdxRlAJcpW21//hjA= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BY5PR12MB4130.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(4636009)(366004)(376002)(39860400002)(396003)(136003)(346002)(86362001)(31696002)(38100700002)(54906003)(6636002)(110136005)(316002)(4326008)(66556008)(66476007)(66946007)(966005)(53546011)(6506007)(8676002)(478600001)(41300700001)(6666004)(6486002)(6512007)(2906002)(8936002)(186003)(2616005)(4744005)(83380400001)(7416002)(5660300002)(36756003)(31686004)(26005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?K0tsRzNSY3M5SjZoSWFGY1ZkcS9aNWlSVFJ3Z040ZU5MYlVOQUNDNm1QL25r?= =?utf-8?B?WThvOU94QXIrMHBVOEFJMERnVUw5K3dq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= =?utf-8?B?Q29Db1NsN0RCVzhlS051UFRwOERoL0hlVE5CYUxLR2h2bkZzQ3ZlT3JVUHY5?= =?utf-8?B?NXRPMkpldzFxRVNCY1pENjJ5bGRxTlM0a3JUVjFIL1Rtb3ZESVh6R1NLd3dE?= =?utf-8?B?SStGdm5vc0hCeUhGYnFGWFZSeC91bGIzdm8yRUdFb29YZitWbTk2end6THFa?= =?utf-8?B?cDhTUlMxeHgzZ1RVMVpYemlhZmlPWklPN2hyelJNWGg4MDYwbTVmaWtPQ1Iw?= =?utf-8?Q?WC5ozgK2WLV4gNcuKnySvv6JA?= X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f884319-71c1-4f4f-0529-08da7c8cdbd8 X-MS-Exchange-CrossTenant-AuthSource: BY5PR12MB4130.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Aug 2022 18:02:45.4322 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: UKWSwu/HuXKJzY58BOJOfKs0IovOM4peGl9KlcRMETbk1zCY68yvxqEFZnfyu7+Y1mUSXaRjzxT3pWt4WEyjLw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB3694 X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_SPF_HELO, NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/12/22 05:57, Matthew Wilcox wrote: > On Fri, Aug 12, 2022 at 12:13:08PM +1000, Alistair Popple wrote: >> + get_page(&folio->page); >> + unpin_user_page(&folio->page); > > https://lore.kernel.org/linux-mm/YvJddHPZsh7Lwzps@casper.infradead.org/ The above fix shows up in patch 2/2. I noticed during review that it was applied to a different patch than the one you replied to, but figured it didn't matter which patch picked up this fix, since the problem precedes either patch. thanks, -- John Hubbard NVIDIA