Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf header: Bump up the max number of command line args allowed

We need to do some upper limit validation, bump up the arbitrary limit
as per suggestion of Sashiko about command line wildcard expansion
ending up with more than 32768 args.

Link: https://sashiko.dev/#/patchset/20260408172846.96360-1-acme%40kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>

authored by

Arnaldo Carvalho de Melo and committed by
Namhyung Kim
06452a41 f823d7ef

+5 -2
+5 -2
tools/perf/util/header.c
··· 2795 2795 return 0; 2796 2796 } 2797 2797 2798 - // Some reasonable arbitrary max for the number of command line arguments 2799 - #define MAX_CMDLINE_NR 32768 2798 + /* 2799 + * Some arbitrary max for the number of command line arguments, 2800 + * Wildcards can expand and end up with tons of command line args. 2801 + */ 2802 + #define MAX_CMDLINE_NR 1048576 2800 2803 2801 2804 static int process_cmdline(struct feat_fd *ff, void *data __maybe_unused) 2802 2805 {