From 886c7d97a69fe12319996e41b96f0731f067f766 Mon Sep 17 00:00:00 2001 From: weishu Date: Mon, 16 Jan 2023 10:21:10 +0700 Subject: [PATCH] kernel: fix stack frame size exceeds --- kernel/sucompat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kernel/sucompat.c b/kernel/sucompat.c index 0314c506..8fb6135b 100644 --- a/kernel/sucompat.c +++ b/kernel/sucompat.c @@ -191,8 +191,9 @@ static int read_handler_pre(struct kprobe *p, struct pt_regs *regs) // we are only interest `atrace.rc` file name file return 0; } - char path[PATH_MAX]; - char* dpath = d_path(&file->f_path, path, PATH_MAX); + const int MAX = 256; + char path[MAX]; + char* dpath = d_path(&file->f_path, path, MAX); if (IS_ERR(dpath)) { return 0; }