From patchwork Mon Nov 2 12:31:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11873807 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A551014B4 for ; Mon, 2 Nov 2020 12:32:17 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 47D7422273 for ; Mon, 2 Nov 2020 12:32:17 +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 47D7422273 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) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 377D56B006C; Mon, 2 Nov 2020 07:32:16 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org 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-Original-To: linux-mm@kvack.org 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-Spam-Summary: 1,0,0,06bc055d154783f8,d41d8cd98f00b204,arnd@kernel.org,,RULES_HIT:41:69:355:379:541:800:960:968:973:988:989:1260:1261:1311:1314:1345:1431:1437:1515:1534:1542:1711:1730:1747:1777:1792:1801:1981:2194:2199:2393:2559:2562:2689:2911:3138:3139:3140:3141:3142:3167:3353:3865:3866:3867:3868:3870:3874:4425:4605:5007:6119:6261:6653:6742:7514:7576:7875:8660:9389:10004:11026:11473:11657:11658:11914:12043:12114:12297:12438:12517:12519:12679:12895:13148:13230:13846:13894:14096:14181:14394:14721:21080:21212:21433:21451:21627:21939:30003:30012:30054,0,RBL:198.145.29.99:@kernel.org:.lbl8.mailshell.net-62.2.0.100 64.100.201.201;04yrtxa1h3b596csiek7ejom49sipypbqn658u3uq9bz7dk699amorymqnrst81.63szj635s5ignxjc81eu173z5asi3k4x9njsutxim1x5ezww4sk66orhqqwr75r.e-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fp,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:68,LUA_SUMMARY:none 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 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