Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1196618pxk; Fri, 18 Sep 2020 06:26:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzang+CSn2P61wFLa0Lcpc5UNO4izGSzaoyUuDqPNwgmkDGMNzzPGEmKn/knwk5KTFhA7QR X-Received: by 2002:a50:ed8d:: with SMTP id h13mr37499630edr.50.1600435613931; Fri, 18 Sep 2020 06:26:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600435613; cv=none; d=google.com; s=arc-20160816; b=QXUGN/gwjs1mH0t2mrDPtdhtJqJe/HeJV1OBd91kY6M7SXe8D3FN/zEsM7xITk70xl f9ap4H1JenPVLqitwstWVexFRo2VxOMIqqBtdSKHnK5zOmms/0x00gcxMcDxdNoMubRl GVsV1w0so6YVnV6BzM/qV5OgImIj1zQxn8E0XAgDgziliF4PCMpxX++ECBMMH4bK8ear kFSEYpkMAT/3OXWGbElT+0/5Vskh3/A8Crt2vMgkUMMq+K3MN4ty5uy/fPh66kz9mSsl 6NtNYokPe/B3Pm0O5vBTZysfyAttezDoB8gk7BbMV4W58L5Xgbi0P9DJ1H2xRvEZYR4K rIKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=kSsVo8o39JkDWfnJErNhF+d4tu+UBZlYiMFs4YM91zI=; b=HHIBD3xr+R/Pe9Mpp8rvj8aqvorgGSieDqw4PpZiQi3qELmIEk1DldEGcjZ2FFXI4j P7g4hhoO9FVaHHjALByxbms22J7y3xmtmLm1jh8yF7A7sUKEe0/Wp+wF4WyK/LPrnKQ2 CT1iYKm/20foz3+lTNIlNDV4CGYdLcTW3WhRF5ODuwFALDi/LQQQ6ogr2faaAxxDdKB7 J/NHCR7YLdWjne1QxquxP1dRJ/R5otReVA4AhZ4xgL2Xk5zAdn4yRDvlpR7JbJq2Q/zX Zkkhxk3NXPl5wwbP/faj3LdTdvNF4N7/tMm+0VPqUEL8LidOab0V/yVUJax0a9AZAF2b Iu2A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h24si2034351edv.391.2020.09.18.06.26.30; Fri, 18 Sep 2020 06:26:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726779AbgIRNZ3 (ORCPT + 99 others); Fri, 18 Sep 2020 09:25:29 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:40173 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726697AbgIRNZ0 (ORCPT ); Fri, 18 Sep 2020 09:25:26 -0400 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 Content-Transfer-Encoding: 8bit X-Provags-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kn33QJSyFiIEtdzzQ8K2knu6JUm59oQjxUdLUtouXUd4dMKrtm OjAqDthOvYM5NFI3ESLfx8Qr8kc2HIZ5fgYkdYLVhCEutIi1lWGI6gXEVDXt2pTiXYpn1HK Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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(-) -- 2.27.0