linux-trace-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] kernel/pid: Remove default pid_max value
@ 2024-04-08 14:58 Michal Koutný
  2024-04-08 14:58 ` [PATCH 1/3] tracing: Remove dependency of saved_cmdlines_buffer on PID_MAX_DEFAULT Michal Koutný
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Michal Koutný @ 2024-04-08 14:58 UTC (permalink / raw)
  To: linux-kernel, linux-trace-kernel
  Cc: Steven Rostedt, Masami Hiramatsu, Mathieu Desnoyers,
	Christian Brauner, Oleg Nesterov, Kent Overstreet, Kees Cook,
	Michal Koutný, Andrew Morton, Tycho Andersen, Jens Axboe,
	Aleksa Sarai

TL;DR excerpt from commit 02/03:

	The kernel provides mechanisms, while it should not imply policies --
	default pid_max seems to be an example of the policy that does not fit
	all. At the same time pid_max must have some value assigned, so use the
	end of the allowed range -- pid_max_max.

More details are in that commit's message. The other two commits are
related preparation and less related refresh in code that somewhat
references pid_max.

Michal Koutný (3):
  tracing: Remove dependency of saved_cmdlines_buffer on PID_MAX_DEFAULT
  kernel/pid: Remove default pid_max value
  tracing: Compare pid_max against pid_list capacity

 include/linux/pid.h               |  4 ++--
 include/linux/threads.h           | 15 ++++-----------
 kernel/pid.c                      |  8 +++-----
 kernel/trace/pid_list.c           |  6 +++---
 kernel/trace/pid_list.h           |  4 ++--
 kernel/trace/trace_sched_switch.c | 11 ++++++-----
 6 files changed, 20 insertions(+), 28 deletions(-)


base-commit: fec50db7033ea478773b159e0e2efb135270e3b7
-- 
2.44.0


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

end of thread, other threads:[~2024-05-13 17:30 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-08 14:58 [PATCH 0/3] kernel/pid: Remove default pid_max value Michal Koutný
2024-04-08 14:58 ` [PATCH 1/3] tracing: Remove dependency of saved_cmdlines_buffer on PID_MAX_DEFAULT Michal Koutný
2024-04-09 15:01   ` Steven Rostedt
2024-05-13 17:30     ` Michal Koutný
2024-04-08 14:58 ` [PATCH 2/3] kernel/pid: Remove default pid_max value Michal Koutný
2024-04-08 20:29   ` Andrew Morton
2024-04-11 15:40     ` Michal Koutný
2024-04-11 22:03       ` Andrew Morton
2024-04-12 14:32         ` Michal Koutný
2024-04-09  0:45   ` kernel test robot
2024-04-09  1:38   ` kernel test robot
2024-05-13 17:26   ` Michal Koutný
2024-04-08 14:58 ` [PATCH 3/3] tracing: Compare pid_max against pid_list capacity Michal Koutný

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).