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.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, 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 BC25AC00A89 for ; Mon, 2 Nov 2020 12:32:18 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 2C69124102 for ; Mon, 2 Nov 2020 12:32:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="xj2CopuK" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 2C69124102 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 3A0266B005D; Mon, 2 Nov 2020 07:32:16 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 377D56B006C; Mon, 2 Nov 2020 07:32:16 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 240366B006E; Mon, 2 Nov 2020 07:32:16 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0127.hostedemail.com [216.40.44.127]) by kanga.kvack.org (Postfix) with ESMTP id EB0EB6B005D for ; Mon, 2 Nov 2020 07:32:15 -0500 (EST) Received: from smtpin10.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 8B7928249980 for ; Mon, 2 Nov 2020 12:32:15 +0000 (UTC) X-FDA: 77439415830.10.jump98_0d12756272b0 Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin10.hostedemail.com (Postfix) with ESMTP id 68D1C16A4A5 for ; Mon, 2 Nov 2020 12:32:15 +0000 (UTC) X-HE-Tag: jump98_0d12756272b0 X-Filterd-Recvd-Size: 4027 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by imf16.hostedemail.com (Postfix) with ESMTP for ; Mon, 2 Nov 2020 12:32:14 +0000 (UTC) Received: from localhost.localdomain (unknown [192.30.34.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8D84E2076E; Mon, 2 Nov 2020 12:32:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604320333; bh=lLXuGY/nGSqNrbsjk3YhWViLi2X0XYWjraAqnjfRDAc=; h=From:To:Cc:Subject:Date:From; b=xj2CopuKaGXkMg2sipuEiU3iuJEEmdGxEzbxBvMQkkUEUqrhHMqAJsqqYBYeKHrTy mAt1qNFbZPz26kGNMcz5w22t0LIY5Gt08nabXpweNBi/9lwYBznFti6g1OtqxRclH8 GJc5vaCul4npegEcPz3/CW6YydqTd5i0rSUacZJk= From: Arnd Bergmann To: linux-arch@vger.kernel.org Cc: Arnd Bergmann , Alexander Viro , Andrew Morton , Andy Lutomirski , Borislav Petkov , Brian Gerst , Christoph Hellwig , Eric Biederman , Ingo Molnar , "H . Peter Anvin" , Thomas Gleixner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kexec@lists.infradead.org Subject: [PATCH v2 0/4] syscalls: remove compat_alloc_user_space callers Date: Mon, 2 Nov 2020 13:31:47 +0100 Message-Id: <20201102123151.2860165-1-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 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: From: Arnd Bergmann Going through compat_alloc_user_space() to convert indirect system call arguments tends to add complexity compared to handling the native and compat logic in the same code. I have patches for all other uses of compat_alloc_user_space() as well, and would expect that we can subsequently remove the interface itself. Changes in v2: - address review comments from Christoph Hellwig - split syscall removal into a separate patch - replace __X32_COND_SYSCALL() with individual macros for x32 Arnd Bergmann (4): kexec: simplify compat_sys_kexec_load mm: simplify compat_sys_move_pages mm: simplify compat numa syscalls compat: remove some compat entry points arch/arm64/include/asm/unistd32.h | 12 +- arch/mips/kernel/syscalls/syscall_n32.tbl | 12 +- arch/mips/kernel/syscalls/syscall_o32.tbl | 12 +- arch/parisc/kernel/syscalls/syscall.tbl | 10 +- arch/powerpc/kernel/syscalls/syscall.tbl | 12 +- arch/s390/kernel/syscalls/syscall.tbl | 12 +- arch/sparc/kernel/syscalls/syscall.tbl | 12 +- arch/x86/entry/syscall_x32.c | 2 + arch/x86/entry/syscalls/syscall_32.tbl | 6 +- arch/x86/entry/syscalls/syscall_64.tbl | 4 +- include/linux/compat.h | 26 --- include/linux/kexec.h | 2 - include/uapi/asm-generic/unistd.h | 12 +- kernel/kexec.c | 90 ++++------ kernel/sys_ni.c | 5 - mm/mempolicy.c | 195 +++++----------------- mm/migrate.c | 50 +++--- 17 files changed, 155 insertions(+), 319 deletions(-) Cc: Alexander Viro Cc: Andrew Morton Cc: Andy Lutomirski Cc: Arnd Bergmann Cc: Borislav Petkov Cc: Brian Gerst Cc: Christoph Hellwig Cc: Eric Biederman Cc: Ingo Molnar Cc: "H . Peter Anvin" Cc: Thomas Gleixner Cc: linux-arch@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org Cc: kexec@lists.infradead.org --=20 2.27.0