Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5048478pxb; Mon, 15 Feb 2021 08:12:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJxgdlBOMkh4kWNM347VzBgetdLLddSE0QPwj9b3/ek66h0gHXeyVGiTtm2yyHoEzk0Pyn+B X-Received: by 2002:a05:6402:1ad1:: with SMTP id ba17mr16625878edb.243.1613405522412; Mon, 15 Feb 2021 08:12:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1613405522; cv=pass; d=google.com; s=arc-20160816; b=zDr7Aur0FDpI7VGGLBXgkf3YyUkJ2ZHGMDJg04rDYP0yjhQlvAIY6izZUXXofoLfnT jbTZfLosk3MUIo3oR4PxJgyBsmpofaVdulW3PYbhhgaxyIuJ9MUE6IWgF8pkPxeRPvGx ipzZupUUHVeiCNpUMl6SCFPPBpJnYVsm9pY4vlJTOYT9a2FTEQlJAN6m30Xl4jFXa3EO d3tms5Gx07gF+hdbjhHsTH5kDsaTR1N91OBivOHcPu0SQlewVXBRPfUAipRRZZEEyqry AUcukdrUc4vgdOi1SOqQseXrJoOims/B0kBU1+gnWlC5eoyseDuPZuCTQwLlG5n7lT8q z7pA== 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 :content-id:content-language:accept-language:in-reply-to:references :message-id:date:thread-index:thread-topic:subject:cc:to:from :dkim-signature; bh=LaGNQARnwpEkL1xtIrvWd4c7lfcd0NMUQPoWZ/HnLps=; b=BRcSPcd8Zf9S/jSjQt1aPJXEfnED4jxRU/7sSPEapKY58XK6bsY5bvb5X7Knrc8A3m ijEBsJM2Cx+uXljcmq49BTgJa8iYljTV4SJiPW75vRpGU6JDCt83YzqS8fXsNQnDxX1P Ou8j3iuEsmhF7cAD8qEX5OLWq3OC+W4w3nSuUSfSNbZqfs2BFqUtEGviY5ZZFNGRHPSu sc+3kL3741oZWHYHdUzed2uqcFQgL4mImvcL7mhKzmqu6zoWkHvVqie1IiXEkaYliP/S KfN2dnIjaCPSiYeyESkUL2+ll1LpL/zPciG2Wxk2doAir2VJrZk+2xU9ffbayflGUIaQ 98dQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=P3eOoel3; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l21si12985334edv.137.2021.02.15.08.11.38; Mon, 15 Feb 2021 08:12:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@hammerspace.com header.s=selector2 header.b=P3eOoel3; arc=pass (i=1 spf=pass spfdomain=hammerspace.com dkim=pass dkdomain=hammerspace.com dmarc=pass fromdomain=hammerspace.com); spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hammerspace.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232165AbhBOQKP (ORCPT + 99 others); Mon, 15 Feb 2021 11:10:15 -0500 Received: from mail-eopbgr770090.outbound.protection.outlook.com ([40.107.77.90]:9518 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S232747AbhBOQDN (ORCPT ); Mon, 15 Feb 2021 11:03:13 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=N6aLwAVfdxMZjAsWo265D0wP6AioUyOPQkeEqDOnTFyuiXuISZiINRRlpg3KUQbNc6Q66S4Pti2dBKaq1JsW80GXeSq0aszNXdlAOZSEvkY6Jq8KYO4MVeW4VlDAGD4IQQzZxyz+oERyrN6VI1EWUeOVx/pEDfScTFzfr3J7RlK1SCceD63Oh4cdjr/riaUj+X+udEgAfTG7HkXv8E+wUKjUWaWdVRMnvPo4orio6FoDCczhuPCEtV5KnVsRmS+D6Y3oGZpDL1LuEZ85TTS+fNp/btK0SEIjsiwnn/zkW+XLFEc228e+h3rAkFIzvQ3dA/9JwtZ/FEIep9lDFb7d7Q== 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-SenderADCheck; bh=LaGNQARnwpEkL1xtIrvWd4c7lfcd0NMUQPoWZ/HnLps=; b=RLZbs5mpRkBfBX4bB86c9enmyXl+53IHw/3vuQd2fyBauKG1Go+RkQ/6+v2fJGJKq177pEJzGXbDbaHjAv/oHq6uB2OOjJGZf5eFdZVeslF1GZpG0BCn8brEDEU+mhKnGbuRB5t9T3vmuD7VPxnAxPX76ruGFKyxCj5K41pB4TwxRBRnGNpRYtqeCrKEZsIKtStLQt/EdHnC887w6jxqIIe6z+XyYZE6421NS5/XCnJJ5Z7oWiNlPoWtGRYptfwmltD+K8p9g8EHWER/JUpd1RdAWNR5UAoydlN97MlctNigZVMU535SaCUDif0q9kdOEJz8kWQiDr9rdArLXiPXvA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hammerspace.com; dmarc=pass action=none header.from=hammerspace.com; dkim=pass header.d=hammerspace.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hammerspace.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LaGNQARnwpEkL1xtIrvWd4c7lfcd0NMUQPoWZ/HnLps=; b=P3eOoel3tAJ+g7XCd82wEpMt+y1KxGExfelQrJRWJgT+ZbOy4SxbK+s0uui1jXcgpJHVNMc+GzIVxtgIKNk1fzmwka5Z9pmCTpQ5y+EVJvIcz+kUHs3eKuEt7qH+n3NkInrbaQ+H4ARIRmMV8z0yEmOIygiC28Xb7SB64Dog+1w= Received: from CH2PR13MB3525.namprd13.prod.outlook.com (2603:10b6:610:21::29) by CH2PR13MB3847.namprd13.prod.outlook.com (2603:10b6:610:99::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3868.11; Mon, 15 Feb 2021 16:02:20 +0000 Received: from CH2PR13MB3525.namprd13.prod.outlook.com ([fe80::f453:2dd2:675:d063]) by CH2PR13MB3525.namprd13.prod.outlook.com ([fe80::f453:2dd2:675:d063%3]) with mapi id 15.20.3868.025; Mon, 15 Feb 2021 16:02:20 +0000 From: Trond Myklebust To: "drinkcat@chromium.org" , "anna.schumaker@netapp.com" , "iant@google.com" , "gregkh@linuxfoundation.org" , "dchinner@redhat.com" , "llozano@chromium.org" , "lhenriques@suse.de" , "sfrench@samba.org" , "darrick.wong@oracle.com" , "jlayton@kernel.org" , "amir73il@gmail.com" , "viro@zeniv.linux.org.uk" , "miklos@szeredi.hu" CC: "samba-technical@lists.samba.org" , "ceph-devel@vger.kernel.org" , "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-nfs@vger.kernel.org" , "linux-cifs@vger.kernel.org" Subject: Re: [PATCH v2] vfs: prevent copy_file_range to copy across devices Thread-Topic: [PATCH v2] vfs: prevent copy_file_range to copy across devices Thread-Index: AQHXA7EmiAMwHAQV80CDyBR44E7wi6pZYHkA Date: Mon, 15 Feb 2021 16:02:20 +0000 Message-ID: References: <20210215154317.8590-1-lhenriques@suse.de> In-Reply-To: <20210215154317.8590-1-lhenriques@suse.de> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: chromium.org; dkim=none (message not signed) header.d=none;chromium.org; dmarc=none action=none header.from=hammerspace.com; x-originating-ip: [68.36.133.222] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: cce1c63a-bf40-438b-352a-08d8d1cb1335 x-ms-traffictypediagnostic: CH2PR13MB3847: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: p9ABEgRiSzR5EEdXJSG8JT3ZqLuy+vYu6QX0oSH8q3s9gde3nmI0dwlJ7XtvwWzA8lKsi4NTrLuk9cCPiLGHfLsp5d16JtwYwywovDXcVVPQvZ1H9h88m1PjFoABw2ijX6MXqTt6EAMtjPj7Gp92MWYaCgXUWF/9ZLI5VJIGDKNs1fxx8SJ2BDrGHInDS+jfwrJUOH6v9JC8UdsDu2skR3FxtbzL36H9kpJI0u3nhTp1mNxRfF3KOZ6w9HE0/KrcM8o+1+k6bjncbzCwBioUZNN4AFr6kj/kvY4lnkooxsQnnoXFlZd67m7fxW09A0my3RtZTGPFMpdE7Sw4uPVpg0mewkteToc2ddCk13ujAfpmBvwTAfhwq7sSyEU+8I8jqUgOpzl4XYoGqjmI1BL3fJ2f0gwfpoeUYD39dKIIGsV/DWP0HR0MzTC2Z2CW/MOd2+8a0ejA8MKdzoadpa5c4MJNAGluOYK14Tz0dKz3moSoSBjfObQvjR8eHvSwMeISJ1vpRO+UCWntjwykhaCqnvJ6xOSelb0yEyh5uzpMaRUeFz02hPVsMPGgE25IPKcM x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH2PR13MB3525.namprd13.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(136003)(376002)(396003)(39830400003)(346002)(4744005)(5660300002)(8676002)(76116006)(66476007)(2616005)(66556008)(71200400001)(921005)(66946007)(64756008)(66446008)(478600001)(8936002)(6512007)(36756003)(2906002)(316002)(186003)(26005)(7416002)(86362001)(4326008)(6506007)(110136005)(6486002)(54906003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata: =?utf-8?B?bXRMME1vZW1YZkR6eXBPaXl0U2hGYkdNQ2FKRmFmZExNYk1mTEptc0kvSUFx?= =?utf-8?B?OU5EYkdBY0VtaElCZ2QzeW50cTB2elgwNE9EaTY4aDVpZkd2MzZVM1lhQzgx?= =?utf-8?B?ei9kM3RsY2V5M3V0bkkvTW5zTlVidjRKZlA3TVhVd1BEdmtUMXJIdGdCaTh4?= =?utf-8?B?SURja3J0N0d2Y09seW4zZUFwWWk2NU9uMlZlUHBrcFN3dXJoY0FXN21BamhJ?= =?utf-8?B?eExxR2VhaCtNYXVrYXplL2RsYlZJbTQ0TmloNHZnRkF2UzdwTmh4bC9sYUs5?= =?utf-8?B?MWI2cU1VNEMrUEwrU2lHblNhb1F5OXdsL3FoVGJTODF5cU8vR3NOK1hvOHJI?= =?utf-8?B?UVcycWN3Y3NYd091TzBEbmhRdTdpeHdYRDdtRFlvaGZtN2E0RGp4ZFBmNndH?= =?utf-8?B?Tk9sckY2cVI1eG0rSWFvaE92VHJrb3A0V0VqZHRQOGp6RG12bXlvTFRVaTJS?= =?utf-8?B?bmNxS2dyQW43QmdXWEZ5aXhzWDFla2ZIdWdlWDROdzVaaWxyMjVmU2lrYy9a?= =?utf-8?B?VHJlc2U2TVNNVzVFTTNiT01DRzEydWR4clkxUndoejc1MGZVSlRHYThDZzRt?= =?utf-8?B?M2VRUk1zT3ppMjBjOWFzbjlURkliU0poZTVVRkNCQ0pXTWNFSUpvQ2sza1Q2?= =?utf-8?B?UHNZczY5WHdRb20zaXlGRGM3OFh1ZklhdnRseU9nT2g3OEVsVTRRbURGbmlY?= =?utf-8?B?aWZQMlhZbHR2bG1rMUZyeW0ybU9FVzgvOExCcXNlYUt6eTNVSFZSNG14dEVp?= =?utf-8?B?ekkzWDV1dHM2ak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lWkwr?= =?utf-8?B?SmxLaW5nd2NGcWkyaDdLTnhrN2NUY1E3Sy96MFRxc1MyMEcrMjYwdlFLdm5Q?= =?utf-8?Q?hprbA0Zf+DathyxUfrHvC9JYCcmmNR2LzsEvJA6?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-OriginatorOrg: hammerspace.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CH2PR13MB3525.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: cce1c63a-bf40-438b-352a-08d8d1cb1335 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2021 16:02:20.2906 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 0d4fed5c-3a70-46fe-9430-ece41741f59e X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: vrWcB+/NEhJ3P1I1hOJLlJrWrtegOKOwavZ0CVt3PhhrjSwet3yO53mLpJ8hxYIIvOZZap6EQDa4v4wqISs1Gw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH2PR13MB3847 Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org T24gTW9uLCAyMDIxLTAyLTE1IGF0IDE1OjQzICswMDAwLCBMdWlzIEhlbnJpcXVlcyB3cm90ZToN Cj4gTmljb2xhcyBCb2ljaGF0IHJlcG9ydGVkIGFuIGlzc3VlIHdoZW4gdHJ5aW5nIHRvIHVzZSB0 aGUNCj4gY29weV9maWxlX3JhbmdlDQo+IHN5c2NhbGwgb24gYSB0cmFjZWZzIGZpbGUuwqAgSXQg ZmFpbGVkIHNpbGVudGx5IGJlY2F1c2UgdGhlIGZpbGUNCj4gY29udGVudCBpcw0KPiBnZW5lcmF0 ZWQgb24tdGhlLWZseSAocmVwb3J0aW5nIGEgc2l6ZSBvZiB6Z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