Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753868AbcKIAaT (ORCPT ); Tue, 8 Nov 2016 19:30:19 -0500 Received: from mail-qt0-f175.google.com ([209.85.216.175]:33865 "EHLO mail-qt0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752282AbcKIAaR (ORCPT ); Tue, 8 Nov 2016 19:30:17 -0500 Date: Tue, 8 Nov 2016 19:30:12 -0500 (EST) From: Nicolas Pitre To: Josh Triplett cc: Andrew Morton , Kees Cook , Johannes Weiner , Arnd Bergmann , Ingo Molnar , Andy Lutomirski , Petr Mladek , Thomas Garnier , Ard Biesheuvel , 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 Subject: Re: [PATCH 0/2] Support compiling out the prctl syscall In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (LFD 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1163 Lines: 33 On Tue, 8 Nov 2016, 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. Excellent. For both patches: Acked-by: Nicolas Pitre > > Josh Triplett (2): > kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c > kernel: Support compiling out the prctl syscall > > init/Kconfig | 12 +- > kernel/Makefile | 1 +- > kernel/prctl.c | 684 +++++++++++++++++++++++++++++++++++++++++++++++++- > kernel/sys.c | 672 +------------------------------------------------ > kernel/sys_ni.c | 1 +- > 5 files changed, 698 insertions(+), 672 deletions(-) > create mode 100644 kernel/prctl.c > > base-commit: e3a00f68e426df24a5fb98956a1bd1b23943aa1e > -- > git-series 0.8.11 >