Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753592AbcKIA3S (ORCPT ); Tue, 8 Nov 2016 19:29:18 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:65039 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752244AbcKIA3Q (ORCPT ); Tue, 8 Nov 2016 19:29:16 -0500 From: Arnd Bergmann To: Josh Triplett Cc: Andrew Morton , Kees Cook , Johannes Weiner , Ingo Molnar , Andy Lutomirski , Petr Mladek , Thomas Garnier , Ard Biesheuvel , Nicolas Pitre , Zefan Li , Li Bin , "Eric W. Biederman" , Dmitry Vyukov , Ralf Baechle , Alex Thorlton , Michal Hocko , Mateusz Guzik , Cyrill Gorcunov , John Stultz , Al Viro , Zach Brown , Anna Schumaker , Dave Hansen , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Nicolas Pitre Subject: Re: [PATCH 0/2] Support compiling out the prctl syscall Date: Wed, 09 Nov 2016 01:26:53 +0100 Message-ID: <3032452.SC5nD8WpIB@wuerfel> User-Agent: KMail/5.1.3 (Linux/4.4.0-34-generic; KDE/5.18.0; x86_64; ; ) In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:xADCZoIZbDpPSTUBRmat1LM6hQ4hUmb1Q3y2HkGokedj8vEqvlL yDlzBzWCkqzJXrlwtNjFfxW0R5fP2nJKHpp7KYrazRqjBG21GkbqJYTVNmphutP2sEZT1N9 p/dWkBjIbvxVovlA+Giu59W0q8RqKPgNCoeI54223hONVgxBeEgV2OraZqq3bSnQHp9oRYA 8molf0O0zZb7yceGrwdTg== X-UI-Out-Filterresults: notjunk:1;V01:K0:o9fiVn3SQ2M=:qOZnwXqnd9YXYKDOYJ61Xf G4AKSeXZg2lj9CQO6hd8wqU7mCnVweatQPa5NYa/suZFrHTAFK3Mmy5zpl6MNF8ugEyBBAROK 0RQqWpfO8Cse9BCf1plN3Rv4tJg1G06Of+Mhi29j74ww2WpOk8JjZA/awItUZ2r0tZRgMjBPk KE0sqvmUIR8jlz6zs/AIR7E8MYhIwxjvN2AHPVQXpZCS20bjYz50u9ZrS3yX0ydMXVSv3sov/ Tb9oqgSg3SN5Xrj5lPskbKJzXpNQFOM9mbQ40ZDyMVTJDr9z9nYrQzfdqneT6g5EvE6qnwqFt 7pK9dDU2ru+9gxcaoDQoA3FZ08eO7ZEUSt0pXlAck6H02iGA/x4I2UaD6eqf3GwNwzfAW0AFz NDCRydUAFKu+2QvXs7sfL2JKDUHnoB2TfCKw6Fe7knMU00CRrwWyX5u7NcizvSJU/sw/2VaMQ RMX70LW5DPO48H1tNOSLJSkLEH2hOo6yvHI2bjKBFi4hloRjebk9+UGeU0nAZkDtFD1jURFsj FrMofJxsWAAWRHSLVN3/hDJxHmL940iR5sYt8rvERM9I2/Mpvh6MUxc06Q3vLYi3a7SWYvOmC dlkKguEKAY1yOrBjpOqDh1dG9O7Fef8eGES1NigjoY3Uq8QgCZJ/9A0gNiLY0yZjW4EXcvB63 btzUpbYCdi7sPJxm2TaKdt4DgDR1roLScHv4BarZxT1+rW8orVUfbzB6geA25H/fLIJ//yPRD 2xSHcYxclT769G/T Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1108 Lines: 26 On Tuesday, November 8, 2016 4:17:47 PM CET Josh Triplett wrote: > Some embedded systems can do without the prctl syscall, saving some space. > > This also avoids regular increases in tinyconfig size as people add more > non-optional functionality to prctl (observed via the 0-day kernel > infrastructure). > > The first patch moves prctl and all its helpers into a separate source file, > kernel/prctl.c, to allow making it optional via the Makefile without any > ifdefs. The second patch adds the Kconfig option to make prctl optional. > > Josh Triplett (2): > kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c > kernel: Support compiling out the prctl syscall > Both of these look really nice to me. Another syscall that comes to mind as a candidate to be made optional is ptrace, and I've added Nicolas Pitre to Cc here, as he has looked into this before. Another area to look at may be syscalls that are always defined but that are no longer part of the default syscall table in include/uapi/asm-generic/unistd.h. Maybe we can have a single conditional for those. Arnd