All of lore.kernel.org
 help / color / mirror / Atom feed
* Bug report: cpu_relax call from vdso space
@ 2022-10-15  7:08 Denis Ivanov
  2022-10-17 17:54 ` Atish Patra
  2022-10-18 14:19 ` Jisheng Zhang
  0 siblings, 2 replies; 5+ messages in thread
From: Denis Ivanov @ 2022-10-15  7:08 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou; +Cc: Dao Lu, linux-riscv

Hello,

Segmentation fault may be raised from cpu_relax() 
(arch/riscv/include/asm/vdso/processor.h).

cpu_relax() may be called from vDSO functions (ex: 
__vdso_clock_gettime). This means that global 'riscv_isa_ext_keys' 
variable must not be used in cpu_relax() directly.

Use of this array was added to cpu_relax() in
https://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git/commit/?h=fixes&id=8eb060e10185cfc97ef0200d197ec246ba0f9f8c

Denis Ivanov


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-18 16:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-15  7:08 Bug report: cpu_relax call from vdso space Denis Ivanov
2022-10-17 17:54 ` Atish Patra
2022-10-18  8:37   ` Denis Ivanov
2022-10-18 14:19 ` Jisheng Zhang
2022-10-18 16:14   ` Denis Ivanov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.