Skip to contentSkip to conversation

kernel/trace/trace_fprobe.c:1264:12: warning: stack frame size (1032) exceeds limit (1024) in 'trace_fprobe_create_cb'

DISCUSSION kernel test robot 2 participants 2 messages Jun 23, 2025 – Jul 16, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   86731a2a651e58953fc949573895f2fa6d456841
commit: 57faaa04804ccbf16582f7fc7a6b986fd0c0e78c tracing: probe-events: Log error for exceeding the number of arguments
date:   3 months ago
config: s390-defconfig (https://download.01.org/0day-ci/archive/20250624/[email protected]/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 875b36a8742437b95f623bab1e0332562c7b4b3f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250624/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All warnings (new ones prefixed by >>):

>> kernel/trace/trace_fprobe.c:1264:12: warning: stack frame size (1032) exceeds limit (1024) in 'trace_fprobe_create_cb' [-Wframe-larger-than]
    1264 | static int trace_fprobe_create_cb(int argc, const char *argv[])
         |            ^

1 warning generated.

vim +/trace_fprobe_create_cb +1264 kernel/trace/trace_fprobe.c

8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1263) 
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17 @1264) static int trace_fprobe_create_cb(int argc, const char *argv[])
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1265) {
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1266) 	struct traceprobe_parse_context ctx = {
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1267) 		.flags = TPARG_FL_KERNEL | TPARG_FL_FPROBE,
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1268) 	};
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1269) 	int ret;
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1270) 
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1271) 	trace_probe_log_init("trace_fprobe", argc, argv);
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1272) 	ret = trace_fprobe_create_internal(argc, argv, &ctx);
b1d1e90490b6714 Masami Hiramatsu (Google  2023-08-23  1273) 	traceprobe_finish_parse(&ctx);
334e5519c375701 Masami Hiramatsu (Google  2023-06-06  1274) 	trace_probe_log_clear();
334e5519c375701 Masami Hiramatsu (Google  2023-06-06  1275) 	return ret;
334e5519c375701 Masami Hiramatsu (Google  2023-06-06  1276) }
334e5519c375701 Masami Hiramatsu (Google  2023-06-06  1277) 

:::::: The code at line 1264 was first introduced by commit
:::::: 8275637215bd3d447b31d37f9b8231a013adb042 tracing: Adopt __free() and guard() for trace_fprobe.c

:::::: TO: Masami Hiramatsu (Google) <[email protected]> :::::: CC: Steven Rostedt (Google) <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
#1 lore raw
Quoted 13 lines · On Tue, 24 Jun 2025 04:18:46 +0800 kernel test robot <[email protected]> wrote:
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   86731a2a651e58953fc949573895f2fa6d456841
commit: 57faaa04804ccbf16582f7fc7a6b986fd0c0e78c tracing: probe-events: Log error for exceeding the number of arguments
date:   3 months ago
config: s390-defconfig (https://download.01.org/0day-ci/archive/20250624/[email protected]/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 875b36a8742437b95f623bab1e0332562c7b4b3f)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250624/[email protected]/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

Quoted 6 lines

All warnings (new ones prefixed by >>):

Quoted 1 line
Quoted 1 line

kernel/trace/trace_fprobe.c:1264:12: warning: stack frame size (1032) exceeds limit (1024) in 'trace_fprobe_create_cb' [-Wframe-larger-than]

    1264 | static int trace_fprobe_create_cb(int argc, const char *argv[])
         |            ^

1 warning generated.

Hmm, maybe this includes the stack consumed by internal inlined function (trace_fprobe_create_internal()). If so, we can allocate some temporary buffer in it.

Thanks,

Quoted 29 lines

vim +/trace_fprobe_create_cb +1264 kernel/trace/trace_fprobe.c

8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1263) 
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17 @1264) static int trace_fprobe_create_cb(int argc, const char *argv[])
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1265) {
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1266) 	struct traceprobe_parse_context ctx = {
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1267) 		.flags = TPARG_FL_KERNEL | TPARG_FL_FPROBE,
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1268) 	};
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1269) 	int ret;
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1270) 
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1271) 	trace_probe_log_init("trace_fprobe", argc, argv);
8275637215bd3d4 Masami Hiramatsu (Google  2025-01-17  1272) 	ret = trace_fprobe_create_internal(argc, argv, &ctx);
b1d1e90490b6714 Masami Hiramatsu (Google  2023-08-23  1273) 	traceprobe_finish_parse(&ctx);
334e5519c375701 Masami Hiramatsu (Google  2023-06-06  1274) 	trace_probe_log_clear();
334e5519c375701 Masami Hiramatsu (Google  2023-06-06  1275) 	return ret;
334e5519c375701 Masami Hiramatsu (Google  2023-06-06  1276) }
334e5519c375701 Masami Hiramatsu (Google  2023-06-06  1277) 

:::::: The code at line 1264 was first introduced by commit
:::::: 8275637215bd3d447b31d37f9b8231a013adb042 tracing: Adopt __free() and guard() for trace_fprobe.c

:::::: TO: Masami Hiramatsu (Google) <[email protected]> :::::: CC: Steven Rostedt (Google) <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Signature · 1 line
Masami Hiramatsu (Google) <[email protected]>