[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Zun8VdrLmWwPsVnu@google.com>
Date: Tue, 17 Sep 2024 15:01:57 -0700
From: Namhyung Kim <namhyung@...nel.org>
To: kernel test robot <oliver.sang@...el.com>
Cc: Josh Poimboeuf <jpoimboe@...nel.org>, oe-lkp@...ts.linux.dev,
lkp@...el.com, linux-perf-users@...r.kernel.org,
linux-kernel@...r.kernel.org, x86@...nel.org,
Peter Zijlstra <peterz@...radead.org>,
Steven Rostedt <rostedt@...dmis.org>,
Ingo Molnar <mingo@...nel.org>,
Arnaldo Carvalho de Melo <acme@...nel.org>,
Indu Bhagat <indu.bhagat@...cle.com>,
Mark Rutland <mark.rutland@....com>,
Alexander Shishkin <alexander.shishkin@...ux.intel.com>,
Jiri Olsa <jolsa@...nel.org>, Ian Rogers <irogers@...gle.com>,
Adrian Hunter <adrian.hunter@...el.com>,
Mark Brown <broonie@...nel.org>, linux-toolchains@...r.kernel.org,
Jordan Rome <jordalgo@...a.com>, Sam James <sam@...too.org>
Subject: Re: [PATCH v2 05/11] perf/x86: Use user_unwind interface
Hello,
On Mon, Sep 16, 2024 at 02:48:35PM +0800, kernel test robot wrote:
>
>
> Hello,
>
> kernel test robot noticed "kernel_BUG_at_kernel/unwind/user.c" on:
>
> commit: 164c5ae4072303c9eb4e263115a5e70d5a3cc052 ("[PATCH v2 05/11] perf/x86: Use user_unwind interface")
> url: https://github.com/intel-lab-lkp/linux/commits/Josh-Poimboeuf/unwind-Introduce-generic-user-space-unwinding-interface/20240914-070619
> base: https://git.kernel.org/cgit/linux/kernel/git/perf/perf-tools-next.git perf-tools-next
> patch link: https://lore.kernel.org/all/daf3f59e0d14ee11b45ad6735b8a211a3c7534dc.1726268190.git.jpoimboe@kernel.org/
> patch subject: [PATCH v2 05/11] perf/x86: Use user_unwind interface
>
> in testcase: fsmark
> version: fsmark-x86_64-2628be5-1_20240224
> with following parameters:
>
> iterations: 1x
> nr_threads: 64t
> disk: 1BRD_48G
> fs: xfs
> filesize: 4M
> test_size: 24G
> sync_method: NoSync
> cpufreq_governor: performance
>
>
>
> compiler: gcc-12
> test machine: 96 threads 2 sockets Intel(R) Xeon(R) Platinum 8260L CPU @ 2.40GHz (Cascade Lake) with 128G memory
>
> (please refer to attached dmesg/kmsg for entire log/backtrace)
>
>
>
> 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 <oliver.sang@...el.com>
> | Closes: https://lore.kernel.org/oe-lkp/202409161428.3cc6c1e1-oliver.sang@intel.com
>
>
> [ 53.036370][ C3] ------------[ cut here ]------------
> [ 53.036374][ C3] kernel BUG at kernel/unwind/user.c:39!
I also noticed this and the following patch would fix it.
Thanks,
Namhyung
diff --git a/kernel/unwind/user.c b/kernel/unwind/user.c
index 3a7b14cf522b4139..3c8f1deb6d34ec37 100644
--- a/kernel/unwind/user.c
+++ b/kernel/unwind/user.c
@@ -80,8 +80,10 @@ int user_unwind_start(struct user_unwind_state *state,
case USER_UNWIND_TYPE_SFRAME:
if (!sframe_possible)
return -EINVAL;
+ state->type = type;
break;
case USER_UNWIND_TYPE_FP:
+ state->type = type;
break;
default:
return -EINVAL;
Powered by blists - more mailing lists