|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/x86: irq: Avoid a TOCTOU race in pirq_spin_lock_irq_desc()
On 18/08/2020 12:27, Jan Beulich wrote: On 18.08.2020 11:12, Julien Grall wrote: I don't think any of us here are compilers guru, so I would tend to rely on Linux memory work. After all their code received much more attention. But sure we can question everything they have been doing. To me the expected semantics (/!\ I am not referring to the implementation) for all the helpers are the same. But you seem to disagree on that. I read the thread again and I couldn't find any explanation how a developper could chose between ACCESS_ONCE() and {read, write}_atomic(). Can you outline how one would decide? Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |