We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d976441 commit f7d27c3Copy full SHA for f7d27c3
arch/x86/kernel/process.c
@@ -550,14 +550,14 @@ unsigned long get_wchan(struct task_struct *p)
550
if (sp < bottom || sp > top)
551
return 0;
552
553
- fp = READ_ONCE(*(unsigned long *)sp);
+ fp = READ_ONCE_NOCHECK(*(unsigned long *)sp);
554
do {
555
if (fp < bottom || fp > top)
556
557
- ip = READ_ONCE(*(unsigned long *)(fp + sizeof(unsigned long)));
+ ip = READ_ONCE_NOCHECK(*(unsigned long *)(fp + sizeof(unsigned long)));
558
if (!in_sched_functions(ip))
559
return ip;
560
- fp = READ_ONCE(*(unsigned long *)fp);
+ fp = READ_ONCE_NOCHECK(*(unsigned long *)fp);
561
} while (count++ < 16 && p->state != TASK_RUNNING);
562
563
}
0 commit comments