Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753891AbbHaSBq (ORCPT ); Mon, 31 Aug 2015 14:01:46 -0400 Received: from mail-pa0-f48.google.com ([209.85.220.48]:32921 "EHLO mail-pa0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753718AbbHaSBp (ORCPT ); Mon, 31 Aug 2015 14:01:45 -0400 Date: Mon, 31 Aug 2015 11:01:42 -0700 From: Brian Norris To: linux-kernel@vger.kernel.org Cc: David Woodhouse , linux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org, Jens Axboe , Alexander Viro Subject: Re: [RFC / BUG] mtd: provide proper 32/64-bit compat_ioctl() support for BLKPG Message-ID: <20150831180142.GB81844@google.com> References: <1440814356-52070-1-git-send-email-computersforpeace@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1440814356-52070-1-git-send-email-computersforpeace@gmail.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1203 Lines: 30 On Fri, Aug 28, 2015 at 07:12:36PM -0700, Brian Norris wrote: > The same bug applies to block/ioctl.c Actually I'll correct myself: it looks like block/ already has OK compat_ioctl support for this. Block devices do a copy to/from user space to marshal a new struct. Personally, I find my approach a little clearer. > But then: which tree should it go in? I guess since this is only an MTD bug, then it'd be fair to take via MTD. I'll plan to do that eventually if there are no objections. > Tested only on MTD, with an ARM32 user space on an ARM64 kernel. > > Signed-off-by: Brian Norris > --- > drivers/mtd/mtdchar.c | 42 +++++++++++++++++++++++++++++++++--------- > include/uapi/linux/blkpg.h | 10 ++++++++++ > 2 files changed, 43 insertions(+), 9 deletions(-) I also suspect it might make more sense to move the compat definitions to a new non-UAPI include/linux/blkpg.h. I'll probably put that in v2. Brian -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/