Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5934304rwr; Mon, 24 Apr 2023 11:01:48 -0700 (PDT) X-Google-Smtp-Source: AKy350bigL6XWlvLnDgae2piNlTd6Q3wC/sZs8etldCiIPrG5sWyYcr8zfvDdZRtF9D/qExTF7vG X-Received: by 2002:a05:6a00:1144:b0:63f:120a:1d96 with SMTP id b4-20020a056a00114400b0063f120a1d96mr15777827pfm.11.1682359308035; Mon, 24 Apr 2023 11:01:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682359308; cv=none; d=google.com; s=arc-20160816; b=ruVTXiqRTAztdTrgTYrReEh4yNdEx0j/ZEnplYxZr8RTKEWFOUkBY6QOh1Iq0/ekCm Z8VMzl3hwbudCcJpeR2EmYQwIEVt0U6sduWO+NUg92rDzgiPohMeg8Hk9pwT8h/6rZgV 6G4V7vLJIihTd4pGlltSjoCBwfv/wDdguaQz565J3z4O7FUJkbsQ6Fxc6fXAZYLw1gM8 rY5tdZEWbKk3m1zy3+/VG2oXfmw4WHKu0Y1seWwtJ0S/2AsSwqGO3OfY8jeop7us5Xgg ysUNot6LNgeyYXDgclQgeranUArLu5gd/lhRc63ljJ1ELPZLORwBpbzT6OdxrIDvTkUO RLow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=0MKUvioDFym51E51dk6ySi5zEPkblTDJdgaK3QIKchw=; b=fDqyAzA0uXWKHp4MoSMOhOO52694JuTXgTzZV8Kp8eOoaEBx37FKZbDDxGYObRAagU f4cvw0eQnP30RmZ1bd5cmdRsoCCj8610UEqxdTttWYv0GfMOYz9aLKsD7p0qhfxepXvx o9ceLnrtWACY69ZCkx49ARGXdKRpEJG6Z5SNdR3w6J1LZqkJFYDKb6WCQRWSXmduDhtY v0TuMe8+Bv/Fp4QLd9WTDbZoOHns0gNYI6CekqxP9keFdI67OxGwhyiOBrevchrLVf7t bv3clOYiu2EHMv3+gmbl9N+4S1JZLcxyj1SgYvR5pUzf+Qtjtlbj3J33SESY5cQouTyv TLOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ziepe.ca header.s=google header.b=pU0zLUiE; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c21-20020aa79535000000b0063d2f769408si11678709pfp.8.2023.04.24.11.01.31; Mon, 24 Apr 2023 11:01:48 -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=@ziepe.ca header.s=google header.b=pU0zLUiE; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232118AbjDXRxG (ORCPT + 99 others); Mon, 24 Apr 2023 13:53:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231681AbjDXRxE (ORCPT ); Mon, 24 Apr 2023 13:53:04 -0400 Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B6726E81 for ; Mon, 24 Apr 2023 10:53:03 -0700 (PDT) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1a50cb65c92so39229945ad.0 for ; Mon, 24 Apr 2023 10:53:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1682358783; x=1684950783; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=0MKUvioDFym51E51dk6ySi5zEPkblTDJdgaK3QIKchw=; b=pU0zLUiEMqXNhNeDmdJkzerLQjfaVU6ziVMZ5aBW6/8vN8a4a4aaz0CGYe1VWpkXdS E3TAxastF2Qi8dfdy3CivEZaZAyEEqPau4V5u7GLpGIWazqDGhMvtqXwcOJk/18GWq9l NfYdflAXc2r5Pfs/8SKAQovKxj0V372VR5uqG12EHP3WUXy+vP1g+SEh7+pO/YgPVrGQ dPeNBCPwbJ55mq/jXw1ApR+87m2LRk772pjV+8HKvXMpUlsBub3G6yz+igtpk6UZgAfP g8+ZGHmlL+iVDIoopHyR1q0mzoLuVMgm6DEf8g3nyX83DG+CllSTCU7ZAFrebqwbyNCa gjZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682358783; x=1684950783; 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=0MKUvioDFym51E51dk6ySi5zEPkblTDJdgaK3QIKchw=; b=bepyxO8LthmsK1qR9NxIAj8iCRcZ53wC6TsbPWDnI5wbIxxMgU86FnERtm34Y/E/+j JuzVVSGJXn0b9MpHgxa7n7944Y+QEXUf0dVM2hT8wh9jjAb1oGV/i3nN0Nl0OQvYvzao rm1+HM53+LMEQVmFjunSgw3x84Xoe1+bLwVu36Kt6/RLjeq7164gQ5rd/XiT4xDVv7UD uowVv5KkzjLzxGPNxbCTxNSIhm58/xPzxKmYkDjA4kCQ+A0j7PJnAPR4Bt0DTw0nBcnF NuewuEZJCX+GpcNMi/Y8i0A3nm7FxsIL+YNOETHbBjhvh4zhdiCDFSne4ILQLFeFLZ9H sgsQ== X-Gm-Message-State: AAQBX9cn61Cur8DvLrqefrTZPKStEFQv4LaCYrczhN8bnTbDrnBSodY6 ObNvkK+0RdD8U7r/W/JYOdLcqw== X-Received: by 2002:a17:90b:1c87:b0:24b:2b9a:7fd2 with SMTP id oo7-20020a17090b1c8700b0024b2b9a7fd2mr13857171pjb.9.1682358782987; Mon, 24 Apr 2023 10:53:02 -0700 (PDT) Received: from ziepe.ca ([206.223.160.26]) by smtp.gmail.com with ESMTPSA id fs21-20020a17090af29500b002470e095920sm6824171pjb.40.2023.04.24.10.53.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Apr 2023 10:53:02 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.95) (envelope-from ) id 1pr0N2-001Vs1-FA; Mon, 24 Apr 2023 14:53:00 -0300 Date: Mon, 24 Apr 2023 14:53:00 -0300 From: Jason Gunthorpe To: Jan Kara Cc: Lorenzo Stoakes , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Jens Axboe , Matthew Wilcox , Dennis Dalessandro , Leon Romanovsky , Christian Benvenuti , Nelson Escobar , Bernard Metzler , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , Bjorn Topel , Magnus Karlsson , Maciej Fijalkowski , Jonathan Lemon , "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Christian Brauner , Richard Cochran , Alexei Starovoitov , Daniel Borkmann , Jesper Dangaard Brouer , John Fastabend , linux-fsdevel@vger.kernel.org, linux-perf-users@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, John Hubbard Subject: Re: [PATCH] mm/gup: disallow GUP writing to file-backed mappings by default Message-ID: References: <20230424160952.bvii2ahgxss2chev@quack3> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230424160952.bvii2ahgxss2chev@quack3> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Mon, Apr 24, 2023 at 06:09:52PM +0200, Jan Kara wrote: > So I'm maybe missing a bigger picture why we would like a change like this. > Because we still need to teach filesystems to handle pinned pages for the > usecases you don't forbid and for which we know there are users and then > what's the benefit of this patch? It immediately closes a security hole we have been talking about fixing for years already and still don't have a full fix for. An acknowledgment that this is not going to go away and starting to clamp down on the insecurity may motivate some investment in the proper fix. :) Jason