From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4398FC43468 for ; Mon, 21 Sep 2020 14:34:39 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id AC8452220C for ; Mon, 21 Sep 2020 14:34:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="OtPsbytG" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AC8452220C Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4606090006C; Mon, 21 Sep 2020 10:34:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 3602590006F; Mon, 21 Sep 2020 10:34:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1B0DE90006C; Mon, 21 Sep 2020 10:34:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0208.hostedemail.com [216.40.44.208]) by kanga.kvack.org (Postfix) with ESMTP id DED8390006C for ; Mon, 21 Sep 2020 10:34:37 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id A324F180AD804 for ; Mon, 21 Sep 2020 14:34:37 +0000 (UTC) X-FDA: 77287314594.12.grade92_020437c27145 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin12.hostedemail.com (Postfix) with ESMTP id 7A1EE180555C0; Mon, 21 Sep 2020 14:34:37 +0000 (UTC) X-HE-Tag: grade92_020437c27145 X-Filterd-Recvd-Size: 4480 Received: from casper.infradead.org (casper.infradead.org [90.155.50.34]) by imf30.hostedemail.com (Postfix) with ESMTP; Mon, 21 Sep 2020 14:34:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=8Kz1DGu4Y1npvsQfjeR0IuDoooJXN+7G6DfyjI+HLNA=; b=OtPsbytGKDJDCuQypN2pYiSnoe WW9gEK1h3pS7c+IQZpnzc0Z2syR2DXQhQvIG69gs0m4gIsYDKdpbqTPoJY0KAH/4RpKbeW8iZ1mRX vxkW+18T3nFRDMLa0nVyDIB3SOH1V3r9kDVBdzpbv9bxb4RAEG9axuO1VhoVIBGbmODrrzwl7s4B2 WjgXwnbcnEwkrtq0pGDN05iXhBJjZM95u3BbE1Q7EZKpepfhIa4lsQpYT8cI9u/NrdyqDlTS9j0PA aPYsG/HabbUElCCwrUATgfMpg2D12Ceg09o3ge7xKDfkMLp5samCXpvbTzXxzUTh1yaGtXuT5+Efi QKoS47JA==; Received: from p4fdb0c34.dip0.t-ipconnect.de ([79.219.12.52] helo=localhost) by casper.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1kKMtW-0007qY-0E; Mon, 21 Sep 2020 14:34:19 +0000 From: Christoph Hellwig To: Alexander Viro Cc: Andrew Morton , Jens Axboe , Arnd Bergmann , David Howells , David Laight , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-s390@vger.kernel.org, sparclinux@vger.kernel.org, linux-block@vger.kernel.org, linux-scsi@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, io-uring@vger.kernel.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, keyrings@vger.kernel.org, linux-security-module@vger.kernel.org Subject: let import_iovec deal with compat_iovecs as well v2 Date: Mon, 21 Sep 2020 16:34:23 +0200 Message-Id: <20200921143434.707844-1-hch@lst.de> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 X-SRS-Rewrite: SMTP reverse-path rewritten from by casper.infradead.org. See http://www.infradead.org/rpr.html Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hi Al, this series changes import_iovec to transparently deal with comat iovec structures, and then cleanups up a lot of code dupliation. Changes since v1: - improve a commit message - drop a pointless unlikely - drop the PF_FORCE_COMPAT flag - add a few more cleanups (including two from David Laight) Diffstat: arch/arm64/include/asm/unistd32.h | 10=20 arch/mips/kernel/syscalls/syscall_n32.tbl | 10=20 arch/mips/kernel/syscalls/syscall_o32.tbl | 10=20 arch/parisc/kernel/syscalls/syscall.tbl | 10=20 arch/powerpc/kernel/syscalls/syscall.tbl | 10=20 arch/s390/kernel/syscalls/syscall.tbl | 10=20 arch/sparc/kernel/syscalls/syscall.tbl | 10=20 arch/x86/entry/syscall_x32.c | 5=20 arch/x86/entry/syscalls/syscall_32.tbl | 10=20 arch/x86/entry/syscalls/syscall_64.tbl | 10=20 block/scsi_ioctl.c | 12=20 drivers/scsi/sg.c | 9=20 fs/aio.c | 38 -- fs/io_uring.c | 20 - fs/read_write.c | 362 +-------------= ------- fs/splice.c | 57 --- include/linux/compat.h | 24 - include/linux/fs.h | 11=20 include/linux/uio.h | 10=20 include/uapi/asm-generic/unistd.h | 12=20 lib/iov_iter.c | 161 +++++++-- mm/process_vm_access.c | 85 ---- net/compat.c | 4=20 security/keys/compat.c | 37 -- security/keys/internal.h | 5=20 security/keys/keyctl.c | 2=20 tools/include/uapi/asm-generic/unistd.h | 12=20 tools/perf/arch/powerpc/entry/syscalls/syscall.tbl | 10=20 tools/perf/arch/s390/entry/syscalls/syscall.tbl | 10=20 tools/perf/arch/x86/entry/syscalls/syscall_64.tbl | 10=20 30 files changed, 280 insertions(+), 706 deletions(-)