[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241113155040.6a9a1bed@gandalf.local.home>
Date: Wed, 13 Nov 2024 15:50:40 -0500
From: Steven Rostedt <rostedt@...dmis.org>
To: Jens Remus <jremus@...ux.ibm.com>
Cc: Josh Poimboeuf <jpoimboe@...nel.org>, x86@...nel.org, Peter Zijlstra
<peterz@...radead.org>, Ingo Molnar <mingo@...nel.org>, Arnaldo Carvalho de
Melo <acme@...nel.org>, linux-kernel@...r.kernel.org, Indu Bhagat
<indu.bhagat@...cle.com>, Mark Rutland <mark.rutland@....com>, Alexander
Shishkin <alexander.shishkin@...ux.intel.com>, Jiri Olsa
<jolsa@...nel.org>, Namhyung Kim <namhyung@...nel.org>, Ian Rogers
<irogers@...gle.com>, Adrian Hunter <adrian.hunter@...el.com>,
linux-perf-users@...r.kernel.org, Mark Brown <broonie@...nel.org>,
linux-toolchains@...r.kernel.org, Jordan Rome <jordalgo@...a.com>, Sam
James <sam@...too.org>, linux-trace-kernel@...r.kerne.org, Andrii Nakryiko
<andrii.nakryiko@...il.com>, Mathieu Desnoyers
<mathieu.desnoyers@...icios.com>, Florian Weimer <fweimer@...hat.com>, Andy
Lutomirski <luto@...nel.org>, Heiko Carstens <hca@...ux.ibm.com>, Vasily
Gorbik <gor@...ux.ibm.com>
Subject: Re: [PATCH v3 09/19] unwind: Introduce sframe user space unwinding
On Thu, 7 Nov 2024 17:59:08 +0100
Jens Remus <jremus@...ux.ibm.com> wrote:
> On 28.10.2024 22:47, Josh Poimboeuf wrote:
> ...
> > diff --git a/kernel/unwind/sframe.c b/kernel/unwind/sframe.c
> ...
> > +static int find_fde(struct sframe_section *sec, unsigned long ip,
> > + struct sframe_fde *fde)
> > +{
> > + struct sframe_fde __user *first, *last, *found = NULL;
> > + u32 ip_off, func_off_low = 0, func_off_high = -1;
> > +
> > + ip_off = ip - sec->sframe_addr;
> > +
> > + first = (void __user *)sec->fdes_addr;
> > + last = first + sec->fdes_nr;
>
> Could it be that this needs to be:
>
> last = first + sec->fdes_nr - 1;
Yep, I discovered the same issue.
-- Steve
>
> > + while (first <= last) {
> > + struct sframe_fde __user *mid;
> > + u32 func_off;
> > +
Powered by blists - more mailing lists