Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5679526imm; Wed, 12 Sep 2018 09:27:16 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaLHxVPCG6ZeQgspXo2bkKe2avUe8V3asnqEKupb3RGc8O+L1lrDdg/eiMZ7kfVs8M88q1s X-Received: by 2002:a17:902:848d:: with SMTP id c13-v6mr3226750plo.194.1536769636778; Wed, 12 Sep 2018 09:27:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536769636; cv=none; d=google.com; s=arc-20160816; b=CZnOPvNjJil0R4IO9+G3BGEz/7fk/51bSmOvtmZxhT03ly5qKEGBGCTfKG+bMb+EO+ dnqjqc4+rXZzHbQCimiGdfuERiAwiIEibivL/l0OJO38Vffkk6RkDTYnqu6FCC2VTn9H zCJoZc+BVfK4+ABRHshZ4J8qasneOQOBkz8VL9f5IH9ESxQosKz6Iig/OQed5A2UynGS sUFKET73Xgiehn2J2N9DfNZyougOwcXkwyV/kIbF2qmGGHzH/HU2rdYnBtfqw+KhDdt/ jfimc0woJ0CcjRBeX90Mg8lHOE+Kp3JjBvyIWqSDMlH3nou2i/kIiXuTnxJEVktlLwAP XK0w== 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=AKa3o29nzk/66T1aFcHqve0oKWXgbx4uBdaplVGLK5I=; b=er1Ah2/GaFrmIBBGX8JI30tj1/RFmYogS6VwCaSh10tHOiPb3JInnbJAgR2+m8d5aD 7fJ5tatqrYtR6UodQH9yTzX3D4VoOiSuuvLp3BsrmusmKj3iw6vIgxzpOvzpcd+FzMwD tf/NZ35XfcpYxuadT72t4YcHQcqQtUbyYYZwVURBkkpcYwrDNGJSmRUgt96wotUNTwla MBXmuPvZLGBVORpQ6iSQJAHhjEa8jPVoN57IJ4f2Vrs+UproTDX7SQCNU1FaMWBQuW/L qSQ/mgUE0Jcv97QaqQhuz4LZFxgNkuv1nbm9prXSafvIEM33SDsHDE0IQrU0dJ6oWGpu vSqA== 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 s36-v6si1390904pld.8.2018.09.12.09.26.53; Wed, 12 Sep 2018 09:27:16 -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 S1727841AbeILVau (ORCPT + 99 others); Wed, 12 Sep 2018 17:30:50 -0400 Received: from mail-qt0-f195.google.com ([209.85.216.195]:32894 "EHLO mail-qt0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726792AbeILVat (ORCPT ); Wed, 12 Sep 2018 17:30:49 -0400 Received: by mail-qt0-f195.google.com with SMTP id r37-v6so2483188qtc.0; Wed, 12 Sep 2018 09:25:33 -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=AKa3o29nzk/66T1aFcHqve0oKWXgbx4uBdaplVGLK5I=; b=SXBNRW4hFGgmih7sgKNt2djkeUPJl3JCzzTMAE+C6ZMB/HaARMup9LDe8CvMh8DDyS yFtfEh38OGwJt3BUXi0tfSXVzs2Sh3VTTzbDBY3Jq3R4lwl3PzrOXECi70vQPZeYdZGJ VSt2KHQwGnIsjcCi6G3yvfYch67YJKyhpXGHi3KFqqbu3SjuwpJPzj/YaigkWF9wZevP rck/6cGHq+SweqE1DH3kzJbner1z7fIwWNRa9mqIJFwP5nOWkaPf1cMngVsZeHSUuRzl ufQBeoB8XDZeTO6iG9ZF41+3Zq5Els5e7H3oLI1PEpzhAq3fwtN+KZ613ELjmPEdXe+g +1Mw== X-Gm-Message-State: APzg51B12PEm4C6xK/W1Btnez//881p0xBVyCVh2Gpm5fyYBZC6BkK38 5vJJe2w+rl/ssOjpvG70AvQRmcNB4t4X0l4tFI4= X-Received: by 2002:aed:2b47:: with SMTP id p65-v6mr2136329qtd.132.1536769532613; Wed, 12 Sep 2018 09:25:32 -0700 (PDT) MIME-Version: 1.0 References: <20180912150142.157913-1-arnd@arndb.de> <20180912150142.157913-4-arnd@arndb.de> <9e5f6ad82a2344c095234b39224605d4@AcuMS.aculab.com> In-Reply-To: <9e5f6ad82a2344c095234b39224605d4@AcuMS.aculab.com> From: Arnd Bergmann Date: Wed, 12 Sep 2018 18:25:16 +0200 Message-ID: Subject: Re: [PATCH v2 04/17] ceph: fix compat_ioctl for ceph_dir_operations To: David Laight Cc: Al Viro , Linux FS-devel Mailing List , "# 3.4.x" , Zheng Yan , Sage Weil , Ilya Dryomov , Chengguang Xu , ceph-devel , Linux Kernel Mailing List 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, Sep 12, 2018 at 6:10 PM David Laight wrote: > > From: Arnd Bergmann > > Sent: 12 September 2018 16:01 > > > > 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. > > Have you verified that all the relevant ioctl buffer structures are > exactly the same for 32bit and 64bit applications? I checked it now, it's fine: there are only ceph_ioctl_dataloc and ceph_ioctl_layout structures passed here, both of which are compatible. I assumed that the ceph_dir_fops operations were correct here (they are), but you are right that I should have double checked for more bugs as I encountered one of them. Arnd