From patchwork Fri Sep 18 13:24:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 11785117 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 C12A16CB for ; Fri, 18 Sep 2020 13:25:39 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8F9A020795 for ; Fri, 18 Sep 2020 13:25:39 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="lckBvVBC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8F9A020795 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To:From: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Owner; bh=2e/SIZGCUBUD4ZhiET7fSqjuJcUDG0PJ5LjzeiRmFU4=; b=lckBvVBCwMyIl8T0+BC9pMQxHc zMrv5QeooFi5+U/5w3+wucwfkQ9zwEFDN2hESicki53SRBWRth1JgUDiPbAXP39EkamK5MdHS0aEy sJOV4kty7sRHD3Rv/FRbg482wmc0lXXzThKBv2DQ1D7eRHEvAkbSpda4KLvEwXv4N9bkfZxLqIxmb 9SD5r2278jSXOBu1t5OeVYHHAumQSF5+/bxbgr5QykriN9K0875ho0AKFMvLHK239fKHYq+ur1qAw ImjMKyt6/yfSlGB6Kl+gVO1bzQXtMahnVbFXDVMtbCUvmTdEYCKdHA2BmEZ8cXVVoQcdzdidZEyuW u17m6kWg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJGOD-0007mH-Aq; Fri, 18 Sep 2020 13:25:25 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kJGOA-0007kQ-DO; Fri, 18 Sep 2020 13:25:23 +0000 Received: from threadripper.lan ([149.172.98.151]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.129]) with ESMTPA (Nemesis) id 1MHVWT-1kF5Nc1ViL-00Dagl; Fri, 18 Sep 2020 15:24:53 +0200 From: Arnd Bergmann To: Christoph Hellwig , Alexander Viro , Eric Biederman , Andrew Morton Subject: [PATCH 0/4] syscalls: remove compat_alloc_user_space callers Date: Fri, 18 Sep 2020 15:24:35 +0200 Message-Id: <20200918132439.1475479-1-arnd@arndb.de> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:UjQjV4ov690MwNa3Q5mCT2pQm83KgkApQ+LHUHo3iIfrCSGo6kQ Tv3yP0Ug+LKsRVKpAwZ5lqEUMjx5kGdXz5IviT/i2A9kwjWIfIWS3nK6I2wq9AEbrpnJGtm 3bcP+bj3xyzV8YXB9SkPa49D/W2OQSca1iw02rHAqsE2SE6zoO+nTXTErqPS8nDlXhPBsAy pynRTxg+DXy9h0Tfbstgw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:vttkmPiVS0M=:zC3skVXcohC/UFP2E2k7H2 69CaxXG4WBTGiyxfdAY6lPDjiMy3PbYf9is8RZcD+RDfcdguIhJSIE4uVyaYVBH9UcX8zaRU6 tHIhm0Hx44+w088aupeRUZPui1Kzq8iOPSCR8T2Cb4mhuuHRFGVeD0Ej6iWfBZ+qIu6tcnyXX G56ArS0+Q0E0iidNSAOji47S+p+Z8aFAVJQefda4qsg1StNDRlTEbvR3W6FbyaSCFFJyESOY2 0PcMtO+4GyIga/XXk3RMpR7Y8v8R8zNNQ9eoRAZc1tm6wZqaQK1zXu/2QhAZwq3NBMrLguY/f et8GcBR5lR+HhhR3+3K6yrdSmNUvTrLTVH2SyA4+Kvgaenwc3NeS52DyQu83B0Y28JAnw/fmQ OQR5ka/I5Q0jVqtQwuSRsinsWTdHlcdU4lbItwz5Uu1mvqMHv/mm2CB0TX9VnzMoy/NNMMsCI fCQPVetQtcZ6/lrafboynZ1oMQ3j1VAuxSusm3YQhOAnZHWMfeGIf+/DYFbajGh4AibhNCk1j 4WtdP7M4vNDmcgb7eJKm3Xraxkj74THjSoGBA3BSj3h5cLFP4GyEHzYDASPjOoQqpMOxiwldr 7Zfl/nT9oirISINQhB8m/+bgREoi53hhWBjqYpgGAcPFXbLSBLlCoD8Eq6EZDhLk25b+bklF3 FgkpBs1tOhG1DcP3GT6CAxlXZWZ/Wlgs1+jE2828QVrsZ4yaJb+TIZJ90d47N7DUPzT003xKR 0iyMt0JcVDAqZy6njtwuMNGkn33QJSyFiIEtdzzQ8K2knu6JUm59oQjxUdLUtouXUd4dMKrtm OjAqDthOvYM5NFI3ESLfx8Qr8kc2HIZ5fgYkdYLVhCEutIi1lWGI6gXEVDXt2pTiXYpn1HK X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200918_092522_672020_AC72B8ED X-CRM114-Status: GOOD ( 12.10 ) X-Spam-Score: 0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.126.134 listed in wl.mailspike.net] -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [212.227.126.134 listed in list.dnswl.org] 0.0 SPF_NONE SPF: sender does not publish an SPF Record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, Arnd Bergmann , kexec@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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. Arnd Arnd Bergmann (4): x86: add __X32_COND_SYSCALL() macro kexec: remove compat_sys_kexec_load syscall mm: remove compat_sys_move_pages mm: remove compat numa syscalls 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/syscalls/syscall_32.tbl | 6 +- arch/x86/entry/syscalls/syscall_64.tbl | 4 +- arch/x86/include/asm/syscall_wrapper.h | 5 + include/linux/compat.h | 26 --- include/uapi/asm-generic/unistd.h | 12 +- kernel/kexec.c | 77 +++------ kernel/sys_ni.c | 5 - mm/mempolicy.c | 193 +++++----------------- mm/migrate.c | 45 +++-- 16 files changed, 143 insertions(+), 312 deletions(-)