Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4573264yba; Wed, 17 Apr 2019 14:33:37 -0700 (PDT) X-Google-Smtp-Source: APXvYqzKLQ+9Il4VypvJaE588Ugfp7aHRK89H2thHRAkDrrfGrvf4l328gLTvwBR1zHvGZBhpfPv X-Received: by 2002:a17:902:e110:: with SMTP id cc16mr4673738plb.147.1555536817830; Wed, 17 Apr 2019 14:33:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555536817; cv=none; d=google.com; s=arc-20160816; b=HW3TKM3nXigRLzxcl9C2md9cFw0aqkKwrxRHS36wcQsd88jDPCSTtY3nV9yJKHlX+G yx0zIiN6mvgU0by9Kly9r8lCTUc9YOVK7tXK/7OuNk0+iJhTSEX3g2nfNc+fPQnzMuzT 16n94zmxZaWWYw9YrCxnOhiex8S4Pue7+bFmFNAQlRRduMMDW4G3sDOO/tJarGccWLiu ahSQtVd8J/zYMkWX+pIG/K+1TT6XAbUL5Kz/7NG31oeMlOyjZEQH/SIPKrWJeCm+JBvO jLPFnzksiNnW6PaW1d7w9hA5Vv5Zxn908aRFImJr8XR4cLRR7iFkgr7LFMD0cfqKHXYI eI0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=NS2VRDxKzZD0tRaotA5kqUlPsqan9DRxqtcv7Aye8Cc=; b=RU/eSOVD/iNcV672P4Fge8nPdi2HQ0vb89tXux8daFN+GrAEhVqpd/LxFJsC1eyfWW ypXz8lSM6VJzFXWtSmIxrf5tCGRBhU+Cki8ThizNphZ/an3uDVZl2qV4BaEBOBIoQGGB Wo1zOElUlCcuB3+5oOwYyIr6S2kjUloj9cmKaBiJWW6Zzazhm8HOqFTViv70+vIzxcU0 QzSgkfS2LpDW3JxMObQCujSwpJPs/vHiXkH7BdxgevDQyojaSGIsXkoa8Uz2bDvPQygK ZtqAQ33VATvTVGn/OWs0jdhxdZUSWqj58kmCPAPG6T8IlLzAPrBxvPv/f46tQipoi9sv 05Zw== 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 r7si101365ple.70.2019.04.17.14.33.22; Wed, 17 Apr 2019 14:33:37 -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 S2387455AbfDQVcH (ORCPT + 99 others); Wed, 17 Apr 2019 17:32:07 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:38786 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfDQVcH (ORCPT ); Wed, 17 Apr 2019 17:32:07 -0400 Received: by mail-qt1-f195.google.com with SMTP id d13so6714qth.5; Wed, 17 Apr 2019 14:32:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=NS2VRDxKzZD0tRaotA5kqUlPsqan9DRxqtcv7Aye8Cc=; b=VEoOHoLJCvDYI2ik5yAApDqoRZwW6nMruQbA/I5RHeGS04Tv6o0kG/3Ic02XceYvez Hoy1LotyAd2r5KtPdK2e4TG8nDrDvbqs78r5W6/MPljOfsX/+8Cc2jGwxwl8wUKvpaL5 VKNg/aJDx3nfa7bDJR75KPJ2UDoaW13jsNqZvg6Dzxk/HopzknR+QbakDTv6eq3OvZ2W PA4VcHzK2RXirctEXSYBmDIaYlvTv58S6vgDDc9bQNl2T+aOWVkmTrbdWf65EzlRwibF MJ9gxx1YZA6eWBXtVPOPj0QosMNRa7ZUiuOkn+ckiKsf1xip7J2GBrcpzNfYXaOuzPEI GQuA== X-Gm-Message-State: APjAAAUXUl0BKgUsldT9NjpCwGkN03+WSkQSwtEjLp9+cK7/tEE9SboF KmalzSS+KPSk1wTf6pSBT1rgm/k3yuwcLFs3UCo= X-Received: by 2002:ac8:276b:: with SMTP id h40mr74468946qth.319.1555536725823; Wed, 17 Apr 2019 14:32:05 -0700 (PDT) MIME-Version: 1.0 References: <20190416202013.4034148-1-arnd@arndb.de> <20190416202013.4034148-12-arnd@arndb.de> <20190417212312.GY2217@ZenIV.linux.org.uk> In-Reply-To: <20190417212312.GY2217@ZenIV.linux.org.uk> From: Arnd Bergmann Date: Wed, 17 Apr 2019 23:31:48 +0200 Message-ID: Subject: Re: [PATCH v3 11/26] ceph: fix compat_ioctl for ceph_dir_operations To: Al Viro Cc: Linux FS-devel Mailing List , y2038 Mailman List , Linux Kernel Mailing List , "Yan, Zheng" , "# 3.4.x" , Sage Weil , Ilya Dryomov , ceph-devel Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 17, 2019 at 11:23 PM Al Viro wrote: > > On Tue, Apr 16, 2019 at 10:19:49PM +0200, Arnd Bergmann wrote: > > The ceph_ioctl function is used both for files and directories, but only > > the files support doing that in 32-bit compat mode. > > > > For consistency, add the same compat handler to the dir operations > > as well. > > > > Reviewed-by: "Yan, Zheng" > > Cc: stable@vger.kernel.org > > Signed-off-by: Arnd Bergmann > > --- > > fs/ceph/dir.c | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/fs/ceph/dir.c b/fs/ceph/dir.c > > index a8f429882249..7c060cb22aa3 100644 > > --- a/fs/ceph/dir.c > > +++ b/fs/ceph/dir.c > > @@ -1785,6 +1785,7 @@ const struct file_operations ceph_dir_fops = { > > .open = ceph_open, > > .release = ceph_release, > > .unlocked_ioctl = ceph_ioctl, > > + .compat_ioctl = ceph_ioctl, > > Again, broken on s390 (and so's the ceph_file_ops, of course). > It wants compat_ptr() applied to argument... This gets changed in a later patch, I intentionally left this one doing the same as ceph_file_fops so the patch can be backported if necessary, without also backporting the patch that adds compat_ptr_ioctl. Arnd