linux-api.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] Support compiling out the prctl syscall
@ 2016-11-09  0:17 Josh Triplett
       [not found] ` <cover.c693f10dfc19e12c214758e4b13ca9b4e4cf9668.1478650356.git-series.josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org>
  0 siblings, 1 reply; 12+ messages in thread
From: Josh Triplett @ 2016-11-09  0:17 UTC (permalink / raw)
  To: Andrew Morton, Kees Cook, Johannes Weiner, Arnd Bergmann,
	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 <viro>

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

 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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-11-09  7:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09  0:17 [PATCH 0/2] Support compiling out the prctl syscall Josh Triplett
     [not found] ` <cover.c693f10dfc19e12c214758e4b13ca9b4e4cf9668.1478650356.git-series.josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org>
2016-11-09  0:18   ` [PATCH 1/2] kernel: Move prctl and helpers from kernel/sys.c to new kernel/prctl.c Josh Triplett
     [not found]     ` <afb9a2bb41be9e129ececea27e09a7d69d1c5e6c.1478650356.git-series.josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org>
2016-11-09  0:19       ` Andy Lutomirski
2016-11-09  7:02       ` Cyrill Gorcunov
2016-11-09  0:18   ` [PATCH 2/2] kernel: Support compiling out the prctl syscall Josh Triplett
     [not found]     ` <b5c45594261252a486b891090eba8f10aa7ed329.1478650356.git-series.josh-iaAMLnmF4UmaiuxdJuQwMA@public.gmane.org>
2016-11-09  0:40       ` Kees Cook
     [not found]         ` <CAGXu5j+V11oF0gcqBQTsBMgetsSdRqLQffobhyEbze82gbW2vA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-09  0:47           ` Josh Triplett
2016-11-09  0:56             ` Kees Cook
     [not found]               ` <CAGXu5jK-dh0DYGp=syrJb6NQ6x_FNBc-migCj4fvBHv4yvukpA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-11-09  1:08                 ` Josh Triplett
2016-11-09  0:26   ` [PATCH 0/2] " Arnd Bergmann
2016-11-09  3:42     ` Josh Triplett
2016-11-09  0:30   ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).