From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754021AbeCVKXi (ORCPT ); Thu, 22 Mar 2018 06:23:38 -0400 Received: from isilmar-4.linta.de ([136.243.71.142]:42112 "EHLO isilmar-4.linta.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753793AbeCVKXe (ORCPT ); Thu, 22 Mar 2018 06:23:34 -0400 Date: Thu, 22 Mar 2018 11:21:40 +0100 From: Dominik Brodowski To: linux-kernel@vger.kernel.org, torvalds@linux-foundation.org, viro@ZenIV.linux.org.uk, arnd@arndb.de, linux-arch@vger.kernel.org Cc: "Eric W . Biederman" , Andrew Morton Subject: Any chance that kernel/uid6.c can go? [Was: [PATCH 22/45] kernel: provide ksys_*() wrappers for syscalls called by kernel/uid16.c] Message-ID: <20180322102140.GA14294@light.dominikbrodowski.net> References: <20180322090059.19361-1-linux@dominikbrodowski.net> <20180322090059.19361-23-linux@dominikbrodowski.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180322090059.19361-23-linux@dominikbrodowski.net> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 22, 2018 at 10:00:36AM +0100, Dominik Brodowski wrote: > Using these helpers allows us to avoid the in-kernel calls to these > syscalls: sys_setregid(), sys_setgid(), sys_setreuid(), sys_setuid(), > sys_setresuid(), sys_setresgid(), sys_setfsuid(), and sys_setfsgid(). > > The ksys_ prefix denotes that these function are meant as a drop-in > replacement for the syscall. In particular, they use the same calling > convention. > > This patch is part of a series which tries to remove in-kernel calls to > syscalls. On this basis, the syscall entry path can be streamlined. > > Cc: Al Viro > Cc: Eric W. Biederman > Cc: Andrew Morton > Signed-off-by: Dominik Brodowski > --- > kernel/sys.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++-------- > kernel/uid16.c | 19 ++++++++++--------- In its header, kernel/uid16.c says, since 2.3.39 was released in January 2000: * Wrapper functions for 16bit uid back compatibility. All nicely tied * together in the faint hope we can take the out in five years time. Are we any closer to removing these wrappers? Thanks, Dominik