Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4566817yba; Wed, 17 Apr 2019 14:24:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqx8TB6mr/+HowMOcxE/aLO4RHuRhMKaJ/L9di9kyBwu08REZf237yDNnrbLNGraO7ybpyLZ X-Received: by 2002:aa7:82cb:: with SMTP id f11mr93125433pfn.0.1555536266807; Wed, 17 Apr 2019 14:24:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555536266; cv=none; d=google.com; s=arc-20160816; b=uT3+c+eyYvj8YTYLuBj0chaNwUU8u+ue83EdchXm/tVDI19SvrA+8QYcHpfW13FaKf /m/EVGkhmeU33acCcObS0iClVoTI3/xDifnVq/11gXZGMdUIZXu4weozQ6VJVmJiHSqS Yp25wB9sEbpbZ3Sxokn/NUNjsetMEGRK/X1A4/O1ufp0Adcd8cUBUmAjDfPpxTImV1C/ hLZ/K+88iFownzDjYYIGDmhaWGKxRVy99Orz1rlyk62XgzXalEzIQaa2lJ7zmIeyNmmY 2Yr6dFmHDcmKVZC0QWd9L/u7pyd+v8ej/sPvhjZL2v0sEm+gFANApg7ZsYaVpGY9kXDq ZbJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Gf+1MeDYbIxcFP7asQrN5ErBmPQ4H0t+epVvDk/v/xg=; b=Rxh1IIbLOj8xSdCyyKsSh3h1sKGs2l9INQXE8xIiRvVzIo3bXzCA/EqUzRydqrf8EA 363E7679iLcch67jlX06NMqg9RYvzcbEafMEjyvxTOBLa64lYj932lDtbtFxlRKZiITM p8QCTu1FZHrdH0DTKWcn+tQGVnRf4JprcbKDPGL9/AF7vq5AH9feDD7Djx9P05goRJ2i yJK43K7rmx04T6/iXNYAOmow1BSP6nCRbLC/xShLm+iQwDw0m4D1P9GDARAJJHjqu8SM JPGwKQIJsU9foOHnFxhFKw+cMgmrHINaLYbM17D0HF1S/Sn8eGDiwN8YjWW9PguU103f mfmQ== 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 e89si102738plb.99.2019.04.17.14.24.11; Wed, 17 Apr 2019 14:24:26 -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 S1733274AbfDQVXP (ORCPT + 99 others); Wed, 17 Apr 2019 17:23:15 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:51012 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725848AbfDQVXP (ORCPT ); Wed, 17 Apr 2019 17:23:15 -0400 Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92 #3 (Red Hat Linux)) id 1hGs1Q-00080k-VR; Wed, 17 Apr 2019 21:23:13 +0000 Date: Wed, 17 Apr 2019 22:23:12 +0100 From: Al Viro To: Arnd Bergmann Cc: linux-fsdevel@vger.kernel.org, y2038@lists.linaro.org, linux-kernel@vger.kernel.org, "Yan, Zheng" , stable@vger.kernel.org, Sage Weil , Ilya Dryomov , ceph-devel@vger.kernel.org Subject: Re: [PATCH v3 11/26] ceph: fix compat_ioctl for ceph_dir_operations Message-ID: <20190417212312.GY2217@ZenIV.linux.org.uk> References: <20190416202013.4034148-1-arnd@arndb.de> <20190416202013.4034148-12-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190416202013.4034148-12-arnd@arndb.de> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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...