mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
Revert "x86: Fix __get_wchan() for !STACKTRACE"
This reverts commite1ff40b619which is commit5d1ceb3969upstream. It has been reported to be causing problems, and is being reworked upstream and has been dropped from the current 5.15.y stable queue until it gets resolved. Reported-by: Chris Rankin <rankincj@gmail.com> Reported-by: Thorsten Leemhuis <linux@leemhuis.info> Link: https://lore.kernel.org/r/ed000478-2a60-0066-c337-a04bffc112b1@leemhuis.info Cc: Stephen Rothwell <sfr@canb.auug.org.au> Cc: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Kees Cook <keescook@chromium.org> Cc: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
#include <asm/io_bitmap.h>
|
||||
#include <asm/proto.h>
|
||||
#include <asm/frame.h>
|
||||
#include <asm/unwind.h>
|
||||
|
||||
#include "process.h"
|
||||
|
||||
@@ -946,20 +945,10 @@ unsigned long arch_randomize_brk(struct mm_struct *mm)
|
||||
*/
|
||||
unsigned long __get_wchan(struct task_struct *p)
|
||||
{
|
||||
struct unwind_state state;
|
||||
unsigned long addr = 0;
|
||||
unsigned long entry = 0;
|
||||
|
||||
for (unwind_start(&state, p, NULL, NULL); !unwind_done(&state);
|
||||
unwind_next_frame(&state)) {
|
||||
addr = unwind_get_return_address(&state);
|
||||
if (!addr)
|
||||
break;
|
||||
if (in_sched_functions(addr))
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
return addr;
|
||||
stack_trace_save_tsk(p, &entry, 1, 0);
|
||||
return entry;
|
||||
}
|
||||
|
||||
long do_arch_prctl_common(struct task_struct *task, int option,
|
||||
|
||||
Reference in New Issue
Block a user