Skip to content

x86/stacktrace: Fix userstacktrace access_ok() WARNING in irq events

Eiichi Tsukata lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1x86/stacktrace: Fix userstacktrace access_ok() WARNING in irq eventsarch/x86/kernel/stacktrace.c+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/1] x86/stacktrace: Fix userstacktrace access_ok() WARNING in irq events

Hello

I also hit the same WARNING previously repored by Juri.

Hiramatsu san's patch looks good to me but I found that perf and oprofile code do the similar thing by just directly calling __range_not_ok().

perf: perf_callchain_user()@arch/x86/events/core.c
oprofile: dump_user_backtrace()@arch/x86/oprofile/backtrace.c

So for simplicity, I wrote a patch to fix the warning as other codes do.

Ideally, we should merge these similar stacktrace codes(perf, ftrace, oprofile) into one, but this time I made the minimum fix.

Eiichi Tsukata (1):
x86/stacktrace: Fix userstacktrace access_ok() WARNING in irq events

 arch/x86/kernel/stacktrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Signature · 1 line
2.21.0