From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757039AbbCMQmc (ORCPT ); Fri, 13 Mar 2015 12:42:32 -0400 Received: from zeniv.linux.org.uk ([195.92.253.2]:46509 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752766AbbCMQma (ORCPT ); Fri, 13 Mar 2015 12:42:30 -0400 Date: Fri, 13 Mar 2015 16:42:28 +0000 From: Al Viro To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-usb@vger.kernel.org Subject: [git pull] gadgetfs fixes Message-ID: <20150313164228.GQ29656@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 Assorted fixes around AIO on gadgetfs: leaks, use-after-free, troubles caused by ->f_op flipping. Please, pull from git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git gadget Shortlog: Al Viro (8): new helper: dup_iter() move iov_iter.c from mm/ to lib/ gadget/function/f_fs.c: close leaks gadget/function/f_fs.c: use put iov_iter into io_data gadget/function/f_fs.c: switch to ->{read,write}_iter() gadgetfs: use-after-free in ->aio_read() gadget: switch ep_io_operations to ->read_iter/->write_iter gadgetfs: get rid of flipping ->f_op in ep_config() Alan Stern (1): gadgetfs: really get rid of switching ->f_op Diffstat: drivers/usb/gadget/function/f_fs.c | 204 +++++++--------- drivers/usb/gadget/legacy/inode.c | 466 +++++++++++++++---------------------- include/linux/uio.h | 2 + lib/Makefile | 2 +- {mm => lib}/iov_iter.c | 15 ++ mm/Makefile | 2 +- 6 files changed, 291 insertions(+), 400 deletions(-) rename {mm => lib}/iov_iter.c (97%)