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: 11785085 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 A867F618 for ; Fri, 18 Sep 2020 13:25:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 5AA70235FD for ; Fri, 18 Sep 2020 13:25:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 5AA70235FD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=arndb.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 57BF38E0003; Fri, 18 Sep 2020 09:25:01 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id 52C0F8E0001; Fri, 18 Sep 2020 09:25:01 -0400 (EDT) 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 467EC8E0003; Fri, 18 Sep 2020 09:25:01 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0172.hostedemail.com [216.40.44.172]) by kanga.kvack.org (Postfix) with ESMTP id 3127E8E0001 for ; Fri, 18 Sep 2020 09:25:01 -0400 (EDT) Received: from smtpin26.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id E86491E08 for ; Fri, 18 Sep 2020 13:25:00 +0000 (UTC) X-FDA: 77276252760.26.wine23_0b014db2712b Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin26.hostedemail.com (Postfix) with ESMTP id BD58B1804B655 for ; Fri, 18 Sep 2020 13:25:00 +0000 (UTC) X-Spam-Summary: 1,0,0,b1cc2de68ab63cb3,d41d8cd98f00b204,arnd@arndb.de,,RULES_HIT:41:69:355:379:541:968:973:988:989:1260:1311:1314:1345:1437:1515:1534:1541:1711:1730:1747:1777:1792:1801:1981:2194:2199:2393:2559:2562:2689:3138:3139:3140:3141:3142:3352:3865:3866:3867:3868:3870:3874:4605:5007:6119:6261:8660:10004:11026:11233:11473:11657:11658:11914:12043:12048:12114:12160:12297:12438:12679:12895:13069:13148:13230:13311:13357:13894:14096:14181:14384:14394:14581:14721:21080:21212:21220:21433:21451:21627:21939:30012:30054,0,RBL:212.227.126.134:@arndb.de:.lbl8.mailshell.net-66.201.201.201 62.8.6.100;04yg9aqo1kzm1w8t7rasfm4unkjueop8baca431ydi9dzcx9kx5r4gy4wjbx686.j7fkz5ocxyh5r6fc4ix33twrg7x57szu7tq3yykxbbqd88b1jp8ruu47zu4zodo.h-lbl8.mailshell.net-223.238.255.100,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:23,LUA_SUMMARY:none X-HE-Tag: wine23_0b014db2712b X-Filterd-Recvd-Size: 3758 Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.134]) by imf40.hostedemail.com (Postfix) with ESMTP for ; Fri, 18 Sep 2020 13:25:00 +0000 (UTC) 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 Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-mm@kvack.org, kexec@lists.infradead.org, Arnd Bergmann 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-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: 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(-)