Re: Possible lock-less list race in scheduler_ipi()

From: Steven Rostedt
Date: Fri Mar 06 2015 - 14:03:56 EST


On Fri, 6 Mar 2015 14:35:23 +0000 (UTC)
Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx> wrote:


> Indeed, the compiler should never reorder loads/stores from/to
> same memory location from a program order POV. What I had in mind
> is a bit more far-fetched though: it would involve having the compiler
> reorder this load after a store to another memory location, which
> would in turn allow another execution context (interrupt or thread)
> to corrupt the list.

You mean on another CPU? Because the code you are worried about has
interrupts disabled.

-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/