Message ID | 20201102123151.2860165-1-arnd@kernel.org (mailing list archive) |
---|---|
Headers | show
Return-Path: <SRS0=YsDo=EI=kvack.org=owner-linux-mm@kernel.org> 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 <patchwork-linux-mm@patchwork.kernel.org>; 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 <patchwork-linux-mm@patchwork.kernel.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <linux-mm@kvack.org>; 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 <arnd@kernel.org> To: linux-arch@vger.kernel.org Cc: Arnd Bergmann <arnd@arndb.de>, Alexander Viro <viro@zeniv.linux.org.uk>, Andrew Morton <akpm@linux-foundation.org>, Andy Lutomirski <luto@kernel.org>, Borislav Petkov <bp@alien8.de>, Brian Gerst <brgerst@gmail.com>, Christoph Hellwig <hch@infradead.org>, Eric Biederman <ebiederm@xmission.com>, Ingo Molnar <mingo@kernel.org>, "H . Peter Anvin" <hpa@zytor.com>, Thomas Gleixner <tglx@linutronix.de>, 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: <linux-mm.kvack.org> |
Series |
syscalls: remove compat_alloc_user_space callers
|
expand
|
From: Arnd Bergmann <arnd@arndb.de> 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 <viro@zeniv.linux.org.uk> Cc: Andrew Morton <akpm@linux-foundation.org> Cc: Andy Lutomirski <luto@kernel.org> Cc: Arnd Bergmann <arnd@arndb.de> Cc: Borislav Petkov <bp@alien8.de> Cc: Brian Gerst <brgerst@gmail.com> Cc: Christoph Hellwig <hch@infradead.org> Cc: Eric Biederman <ebiederm@xmission.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: "H . Peter Anvin" <hpa@zytor.com> Cc: Thomas Gleixner <tglx@linutronix.de> 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