Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp337080rwd; Tue, 16 May 2023 01:33:52 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ46VyCYmzsUYQIUjEE91RAIqWrbaLmDW8o4abyr4iXapb/FLDmyUNP/TOMhZfO3sxB3YXpV X-Received: by 2002:a17:90a:348d:b0:250:d2d8:c179 with SMTP id p13-20020a17090a348d00b00250d2d8c179mr21137033pjb.29.1684226032125; Tue, 16 May 2023 01:33:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684226032; cv=none; d=google.com; s=arc-20160816; b=BtDvWK3bTEpO/De1z8wl33myO2ysR0gMOGAq4A/19LM6OjkqNBGLlifTIxFsvqFArD E1v6aYvjJEKppxBUHJ8AM4/b77ZGCt+r6wxVcU8WWWUmW4aMhnARtjHywBYXRaEFWkbU 7pvsDv+Wr7JZKxkvaU/qqg6nGnDFw6ZqvlSIpMdwcfKV2inirbkYaD8gHTolJgMX0z08 uxDxjAdm9D4PGTA2eV7bQ0lpxYKb8bIEF3DVjkWVFrfZZMy9V52TN1jvN2tyBgqS8h3O LvAv4NW4HNab9/YhZhIITYzcENw+LeF+lYlinpJM9iVdZKBv9SWS1bfExNtCLk7N2qQX p/RA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:from:references:cc:to:content-language:subject :user-agent:mime-version:date:message-id:dkim-signature; bh=4LrwsQpkNzKQ73ySEswNaQqCDWSvOkZL+SFTwTYbhpM=; b=Z2VmLebRkZB5+RIJwG/ebF0roK4dKjlUFBsgi7UKvtv4w36TSCMe9XmHJnbnbwugna FPKa6EJ2+cuWAkVOZeKEdXcPLmJz5OlfAZOS1PQlgYevXMFtg81bU5rLgfYfdOY7J284 uDIg1tJ5UXzPjgZFTrLQBJyEgZZe2miH4NsG6RlYgsN2GGzKNb49htkFtol83IN+mwuh LAoakNL9b3M+hl1SUZGQLOK6s1UAf6BS4B9ZAk+fFmgRUOcrLRJ5UyyQ+9W0vVoGMTDR 884Gwt5nSa7/DRIJzaMQzvm2FGjfDWmm8YLQ0j8fhjCY47rIIC9iG0vphanBJdj+pwU3 CD6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Pb+od5HJ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s64-20020a632c43000000b005030859019fsi17595732pgs.675.2023.05.16.01.33.39; Tue, 16 May 2023 01:33:52 -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=@redhat.com header.s=mimecast20190719 header.b=Pb+od5HJ; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231509AbjEPI3J (ORCPT + 99 others); Tue, 16 May 2023 04:29:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231490AbjEPI3H (ORCPT ); Tue, 16 May 2023 04:29:07 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C4861FE9 for ; Tue, 16 May 2023 01:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1684225705; h=from:from: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:in-reply-to:references:references; bh=4LrwsQpkNzKQ73ySEswNaQqCDWSvOkZL+SFTwTYbhpM=; b=Pb+od5HJdB3d8TB38hoA/FkjMKY/vQ5fp2ZDZC+DH7i2sQIgFdUV+Cn5BuC2P9pEev6voQ IXmJ8toJ+uUelOlwXNN39TKKp49xAgFjYGnwMcBxcRBfNMlZEzGVhjOZ42s0LzURTffyOh IbD4GvQjQUFCkGfTy1jAnvreGsU68Nc= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-617-u3PbJbvIO9qfJoDBlN9eBw-1; Tue, 16 May 2023 04:28:19 -0400 X-MC-Unique: u3PbJbvIO9qfJoDBlN9eBw-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3f4ef4bf00dso29549015e9.1 for ; Tue, 16 May 2023 01:28:19 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684225698; x=1686817698; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4LrwsQpkNzKQ73ySEswNaQqCDWSvOkZL+SFTwTYbhpM=; b=OlrS6yjIsvqVLig4WlmkY4NDPFGuYftpJjQud7cxZu0lU0M6h9p8k5aTWwzBLJlRM/ 2YXP6b7Mz+5CXjti1ZvaU9P1r3LyPCPHW7hPx0hz/yj9xEI+1TP6jqZwVUFs2MO8wBhh DuM3ZWp7xuI+EsTbHnnZ0mkwjMQ7JySrl3M5M3dSePpQfmcP00+QrQghsiJDEXjCa/9S DrQSVNemaBxtjLN3aK6vv20Avxh4dKqGNjK9WeiLVxgY7sFbi400P6q7Tygs62eVe0Cs q+WS/uz48Y2VahC2aqh9975t67m/n2Rdmee6sWTe3P7GDI/qBdfU7WWB66EBtm1cTqZQ D9Gw== X-Gm-Message-State: AC+VfDy8COpWG2XqCz/J0H0PrWbeVZk0ctuDb+n1lY0Giv8FI6L/ve8H gXxBvfXDoWTNB2ecKvIjxhJ0BVND3VFr/U2w892O62lGq5MPPVnNb0qoVZH/OwXU+xu0RwZgQw+ 76XxS9WeGApM7yv2i/w3d4NM0 X-Received: by 2002:a7b:cb97:0:b0:3f4:2c71:b9ad with SMTP id m23-20020a7bcb97000000b003f42c71b9admr19670887wmi.30.1684225698395; Tue, 16 May 2023 01:28:18 -0700 (PDT) X-Received: by 2002:a7b:cb97:0:b0:3f4:2c71:b9ad with SMTP id m23-20020a7bcb97000000b003f42c71b9admr19670863wmi.30.1684225697971; Tue, 16 May 2023 01:28:17 -0700 (PDT) Received: from ?IPV6:2003:cb:c74f:2500:1e3a:9ee0:5180:cc13? (p200300cbc74f25001e3a9ee05180cc13.dip0.t-ipconnect.de. [2003:cb:c74f:2500:1e3a:9ee0:5180:cc13]) by smtp.gmail.com with ESMTPSA id v10-20020a05600c214a00b003f50e88ffb5sm1494416wml.24.2023.05.16.01.28.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 May 2023 01:28:17 -0700 (PDT) Message-ID: <184c0b11-4f97-5872-5b25-ffd99eb6185d@redhat.com> Date: Tue, 16 May 2023 10:28:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v5 4/6] io_uring: rsrc: delegate VMA file-backed check to GUP Content-Language: en-US To: Lorenzo Stoakes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton Cc: Matthew Wilcox , Jens Axboe , Pavel Begunkov , io-uring@vger.kernel.org, Jason Gunthorpe , John Hubbard References: <642128d50f5423b3331e3108f8faf6b8ac0d957e.1684097002.git.lstoakes@gmail.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <642128d50f5423b3331e3108f8faf6b8ac0d957e.1684097002.git.lstoakes@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 14.05.23 23:26, Lorenzo Stoakes wrote: > Now that the GUP explicitly checks FOLL_LONGTERM pin_user_pages() for > broken file-backed mappings in "mm/gup: disallow FOLL_LONGTERM GUP-nonfast > writing to file-backed mappings", there is no need to explicitly check VMAs > for this condition, so simply remove this logic from io_uring altogether. > Worth adding "Note that this change will make iouring fixed buffers work on MAP_PRIVATE file mappings." I'll run my test cases with this series and expect no surprises :) Reviewed-by: David Hildenbrand -- Thanks, David / dhildenb