Received: by 2002:ab2:4a89:0:b0:1f4:a8b6:6e69 with SMTP id w9csp281372lqj; Wed, 10 Apr 2024 10:10:12 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVusHr9hIC3k3sMWAWNZ+InoDdBq4dKRGsmRpib91CYWZbcPY5VB659ZbrtZam9LXdIDO8JacnJc8lLzQDvUno0fg5pB4BtNk6zQgqONA== X-Google-Smtp-Source: AGHT+IHEl62f903MBTgg3+i9+mivBM8Tb7+ZHwDNDycjpFzn9c8l1PaT5xmlWO10EqtLMu2ZKrW2 X-Received: by 2002:ac8:5703:0:b0:432:b560:41fa with SMTP id 3-20020ac85703000000b00432b56041famr440872qtw.34.1712769012230; Wed, 10 Apr 2024 10:10:12 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712769012; cv=pass; d=google.com; s=arc-20160816; b=k11fP9KXEw+52D75+w6iBJZFgbGsI2BEJKeX0u0elJH9/nYIYZPOD8UBEbK4LmHAQ9 DgtfqTA6VvbqHYiGSC6KxJqLhTNGNSii3cFrj4vwHT/DwZI/zVXGtiW529qsWshBo9Sx +YEevCIYhtRbtIdz7Ua/AWhDbHMcWJlQClirntYD6JNlXa3z68LNyFz3BI+6aEPYce9V u8XQHUPDzkfWaVBiqDSC59JEUjkA0VTpgoqgvtwx5HnKa7O+EdcBpbyTGZ7nUBDnJngU 88UivJj/pk4xYFkjj0XlfzGq1++IntTa02y6i73xjnaoJVUOkTVo/Ff7BtBaux12O3rl qOpw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=v0l1ynD0EW3Jmpq+Ulyaiq0nHLkeBnyCPceM9vs7ots=; fh=6JLrX+lOXPEcVVsEPBa3dDre5OBmH/9cP7AaIQ3zYDw=; b=Tfm2e7hhC3KG44j+l+KNPUXG9jtIsCvou/DLtfNuIdaEKf5s2vJ0DQK1jSWcB9vdMZ N2v7NvUpxZXR2D0JpSKIwhUOokALhzNsMuwSSayqD94GItYC0k9HJU4NNeFrL94R8RS6 SkWElA5PUuTzyGhOYeD33vjqekL3rCXoXyMety8vN0l7fnI8CnrIBHWM7FFMTBRvtVnr W43S/SdxYWa3dAs5O+b+dxNu26ulsXLF8k+WUKZZuVe+6SPLieBc6gzN/71a6WeCjgqW gQaA6tk00lkWM4iE/dWp1NcjO7Wva0TOdIz0WDGAZZgwWwQGvEQPX52eZIJ+SuSSL3bA BlAQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a+xkYvV4; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-139047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b21-20020ac87fd5000000b004310ba91cf5si13046875qtk.458.2024.04.10.10.10.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:10:12 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=a+xkYvV4; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-139047-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139047-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id EE8931C217CA for ; Wed, 10 Apr 2024 17:10:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 287C217BB05; Wed, 10 Apr 2024 17:10:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="a+xkYvV4" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C676417A918 for ; Wed, 10 Apr 2024 17:10:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712769005; cv=none; b=iysmNkX5x4zrwLFbJ7rpHda/xtpzDww666CDd7ho83mdrRdVNb0amxmxU1Ozf0N7TmDvddS0lhm/BGcfpSKBLjrFjJJIZr7eL5+mJ55u9QW9X1gQxHiklNpKbtlzZQdkhUxdnmjasjrhaOJmMwHXs94kr8hZQme/H3g15torFzU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712769005; c=relaxed/simple; bh=VtpjC07++KGGgzAE60ATz4dYFOQkqcE78s6E1W/Gh+U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=tf3+9OtB7H6bsCT1YQgmSOGl/U7ck4bKUFmj46L5U3itxYQqD9sILsFPlVpWq+vO2R4GxJfW2k9O9RAvLK+6qsXpC+PDnPlBxRCXwhTap3FD4YXs3G7gClH8+1NB8VS6NXyJ2hT4JSJ3m7nLFgVu/kHINY8Cn3/he1GWKPb+1+s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=a+xkYvV4; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1712769002; 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: in-reply-to:in-reply-to:references:references; bh=v0l1ynD0EW3Jmpq+Ulyaiq0nHLkeBnyCPceM9vs7ots=; b=a+xkYvV4inKFPfhDBqU28Em/3EVC3F2scfVFJQ1FBVA/KNC/ykqN3574yZvIYJioFtLUCU AMhDOZWK5BO/FxdANxR0186fMhqY+LAKgd+ymciNG5zJfiQozBtOcPV2M3ABWmWqU74y5P csz+9WnhyNLYRG3GuBDEi9Ungn/ZThs= Received: from mail-oo1-f71.google.com (mail-oo1-f71.google.com [209.85.161.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-509-mUbrnu4PPfG377ge4dMEuw-1; Wed, 10 Apr 2024 13:10:01 -0400 X-MC-Unique: mUbrnu4PPfG377ge4dMEuw-1 Received: by mail-oo1-f71.google.com with SMTP id 006d021491bc7-5aa3afc55c6so1144296eaf.0 for ; Wed, 10 Apr 2024 10:10:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712769000; x=1713373800; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=v0l1ynD0EW3Jmpq+Ulyaiq0nHLkeBnyCPceM9vs7ots=; b=a8uzSfeHHzCrQnLA08Zyz38OSX/mtSJqJ250HRl0+maTMo3t1emEeL5M59p+UU6QTb 9KVaJEk67gGGeFvuRSqr0hWj4gFxeH13UerujPAUfvOM1Y+W70LCRyZ52ZvjbKssQC8X zCk+iHobEWpLSxm7kN5xjhyyw5Ww2cUlBAbgbXPnpSipX80bM+5t/9CNVZf9uDHubK1W v7ysFnhOjHEiIyj4FoataO7Q/V3ntU6x+QNHc08nUsaEw9fykeOMm11pqLwydjUzMyy4 xMil94dtEr7BlscifBpcmUhhxE2stasOP+GphsFW4Va7a8xcQ2L8EEVZQK9bFVPGNFQB PyKw== X-Forwarded-Encrypted: i=1; AJvYcCXD8GQEMzXAmLEsy60m+eE7CnabHF7JPw7jVgxdTT2ZFHPcuXYGyZ0iW3jXbZWaX5tA47UwBA3aV9rEzrjDqhiK5YJpcrJtAkMiQ2PQ X-Gm-Message-State: AOJu0YzogFnk+asm7Mz/LXwvVDCbxfy8881KaZPZUfbko/tBB1Vjm7x0 mfPjy2jKXVHUltXBvnQ4qIjxffzrWKI1+Kdg+Gj2yiAFxucEJ9/3PYH/+NZr/LyNx/iosISibe/ RgKmWJMy3LW1y/kHHGWO1Kkr95Vw+L5kp9iNxmSfd4n0h+VNvdSMbjHm+wLQI+w== X-Received: by 2002:a05:6870:f216:b0:22e:8800:b8bc with SMTP id t22-20020a056870f21600b0022e8800b8bcmr3433182oao.5.1712769000028; Wed, 10 Apr 2024 10:10:00 -0700 (PDT) X-Received: by 2002:a05:6870:f216:b0:22e:8800:b8bc with SMTP id t22-20020a056870f21600b0022e8800b8bcmr3433135oao.5.1712768999323; Wed, 10 Apr 2024 10:09:59 -0700 (PDT) Received: from x1n (pool-99-254-121-117.cpe.net.cable.rogers.com. [99.254.121.117]) by smtp.gmail.com with ESMTPSA id du47-20020a05620a47ef00b0078bc4cad726sm5455316qkb.72.2024.04.10.10.09.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 10:09:58 -0700 (PDT) Date: Wed, 10 Apr 2024 13:09:57 -0400 From: Peter Xu To: Suren Baghdasaryan Cc: Matthew Wilcox , Lokesh Gidra , akpm@linux-foundation.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@android.com, aarcange@redhat.com, david@redhat.com, zhengqi.arch@bytedance.com, kaleshsingh@google.com, ngeoffray@google.com Subject: Re: [PATCH] userfaultfd: change src_folio after ensuring it's unpinned in UFFDIO_MOVE Message-ID: References: <20240404171726.2302435-1-lokeshgidra@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Thu, Apr 04, 2024 at 02:07:45PM -0700, Suren Baghdasaryan wrote: > Yes, I was typing my reply :) > This might have happened simply because lock_vma_under_rcu() was > originally developed to handle only anonymous page faults and then got > expanded to cover file-backed cases as well. Your suggestion seems > fine to me but I would feel much more comfortable after Matthew (who > added file-backed support) reviewed it. Thanks. Just in case this will fall through the cracks (while I still think we should do it..), I sent a formal patch just now with some more information in the commit log. Any further review comments welcomed there. -- Peter Xu