Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5187907ybi; Tue, 30 Jul 2019 15:44:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqyxda2+I35ARcQJs2IaEj04orI2cZDKUcwjl4wS/i8QY+LnQmIy8DYo2VmQi3VX7z6/uiez X-Received: by 2002:a17:90a:a613:: with SMTP id c19mr121824278pjq.17.1564526669065; Tue, 30 Jul 2019 15:44:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564526669; cv=none; d=google.com; s=arc-20160816; b=cr2QMlwefWBF6X3vs9xXIcJ8qoBgyA7eyWtoHuJDBztoPkbnV7HimFV0DQ4EhyMJ48 c0NgzPmaURaHKVWTsBrVw1BKXf2PMPUYi/DNUusB7skYtiyt+t2exUyTFQWh97ZGAOvi jzSMxltK+vZDH7jHH1oKx5l/X65HPbY7WsseM4xOYKuWLe5nK5aXxNuni7dS1F0kzi5H 3ZPBkXgHj8XtyxKIzhE2/MRDfwRVF4P3wv4MgCC7ve+H5gCsKl34FnfTemh/hy5BRo0O QCdzxLEB3yCI7vb+cIcrcpE/bFsD2RGPa0kdVt/2C1F9V8i4W9lGUjrZsr7A1euOiYgf 9uaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=X1oVyVp5vO7RpZHDtES/vO5NeowmWywNTeqjT73VZlM=; b=RyOxtZWSJnzhm//Po9baCsZi1MFCWYeZosKm12bD0j+GAuToHXhk/HKg1e/OkkMifR qBjBuikrSKssTLN0YaugN4e21OoMXZ/28pYKSlpS4am9pmIQhq6n8rrjsqtdr1abK4eV 9nkok+kFpAAIAM0P9iL8eJ2H9JC1PrS6QectBIjbvGojVSkDaQdRPDk725NWNtaJxJdU Vt5xEqtbvRXsDkgQO3p2ZaGozHKKo587v2oCoP/r8MIjNLlP7qhCcoo51ZQNN6MObb3/ MywXikon9k1FWcqCu4xOJRpBX3KWYEfzdrn05HTcSekzRmAVN7LaMhUSSXC3vuvToj+G zR9A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v8si27645754plg.122.2019.07.30.15.44.13; Tue, 30 Jul 2019 15:44:29 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729336AbfG3T30 (ORCPT + 99 others); Tue, 30 Jul 2019 15:29:26 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:51295 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727169AbfG3T3Z (ORCPT ); Tue, 30 Jul 2019 15:29:25 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1N63i4-1iPTqd44Km-016M4N; Tue, 30 Jul 2019 21:26:44 +0200 From: Arnd Bergmann To: Alexander Viro Cc: linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Arnd Bergmann , "Darrick J. Wong" Subject: [PATCH v5 01/29] fix compat handling of FICLONERANGE, FIDEDUPERANGE and FS_IOC_FIEMAP Date: Tue, 30 Jul 2019 21:25:12 +0200 Message-Id: <20190730192552.4014288-2-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20190730192552.4014288-1-arnd@arndb.de> References: <20190730192552.4014288-1-arnd@arndb.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:qXlr0d++2tj+pUFKeftKl2b9BAfEzIV3K/6V1jGgO84qalNDcjH wcCAJdjvc9xpj3/KOMCBEBqHuh+hgqGHN2PClurDOIfZPLAtN39bciMqT5Od9PdfywyWZ5A c2Vc62ISn+PYhK6YrkwChE2ndNdQXTs+Epe3KbFPLlc/f6zSCUJyhRKppzyByJ32xTPHgcs m4jv16XTipzzRDwyK4fjQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:R4vNWzY+q/k=:yTSOyq6A0kE9G8v6NREzxV nfh0DkcjUdtiwsYrz17bzXoYRz/QfCCnAIj/ju417izpnJQ0mfLiF7wGKYYcIuL5d9I0A1VF7 7bsI3H7Yo2tA7k+u0nUGtcUZPn36WdOeGZB5w1TNO7Cfv00mHSZ/CjsG7184gJYfz7o7Jc3Et gpk6ROSYbSx2QmCaJRP9+QWCQjRumCNPrI08bb0C/ugS/YsKOYqlD3HZVMiLodZGMEyWe0FPu IbAjnGqIArJRP4HYbarSNF9uEYsk6baDoP+mH0u1LINvgo0BQFTlAWGFDykgI2IlMlkX7l3u6 3F235Ys5+2YemeLYnAlyXFMfE9EJuX7sl7YDxpV0s0PFNBpexTuAsKqBXayVwIv4dS/4kQAhX e7gat5ch5vSF4i089Ihzq1t7E3vspLofC7AmmltXOQEnWwWwanZh5j4L5LLn581ao8rB0tKU9 UPNiEfd2MQQi4LeSuhcEEmdv2KneMf1WGhN2ApXTQLz8+Fjhi8hiO263eaFii950OocJd6aWP 5UvThB78l1KCn6/mNr3MYXomwpcS81p6+LCgQlWjv5Me5UZVtk2dz3AEp+PS3pwBFL8LVHHOe tS7Jx4qKzvhYmuOUEgtiphYe3+Ak7JqwhYRNhtdekpW7cbW6PKzjs/xHpiGrP8uo+/pvF6/KD vSOs2gw20zh926HOU6ajHEKTNAGAbqTvAiPgK2AOgDenXTNihUn/tUEj7onAtVH74FwtUUyRJ 6Wq/TAKxWvrMt56qQ310LCGGl65D3I56dqe0VA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Al Viro Unlike FICLONE, all of those take a pointer argument; they do need compat_ptr() applied to arg. Fixes: d79bdd52d8be7 54dbc15172375 ceac204e1da94 Signed-off-by: Al Viro Signed-off-by: Arnd Bergmann --- fs/compat_ioctl.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fs/compat_ioctl.c b/fs/compat_ioctl.c index 6e30949d9f77..31104486fc8b 100644 --- a/fs/compat_ioctl.c +++ b/fs/compat_ioctl.c @@ -1035,10 +1035,11 @@ COMPAT_SYSCALL_DEFINE3(ioctl, unsigned int, fd, unsigned int, cmd, #endif case FICLONE: + goto do_ioctl; case FICLONERANGE: case FIDEDUPERANGE: case FS_IOC_FIEMAP: - goto do_ioctl; + goto found_handler; case FIBMAP: case FIGETBSZ: -- 2.20.0