At https://hafnium.googlesource.com/hafnium/+/refs/heads/master/src/api.c#1066 here, api_spci_msg_recv reads current->interrupts.pending_and_enabled_count but this function doesn't lock current->lock. Shouldn't it lock before read the variable?
--
You received this message because you are subscribed to the Google Groups "Hafnium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hafnium-discu...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/hafnium-discuss/03b8c3b8-b16e-46fa-8dd7-19af91c2671d%40googlegroups.com.
Thanks for pointing this out, it should be locking, yes. There was also another case of the lock not being held in handler.c. I've uploaded a CL for this https://hafnium-review.googlesource.com/c/hafnium/+/6320.Out of interest, how did you come across this issue?
On Mon, 19 Aug 2019 at 06:57, Sanguk Park <noori...@gmail.com> wrote:
At https://hafnium.googlesource.com/hafnium/+/refs/heads/master/src/api.c#1066 here, api_spci_msg_recv reads current->interrupts.pending_and_enabled_count but this function doesn't lock current->lock. Shouldn't it lock before read the variable?--
You received this message because you are subscribed to the Google Groups "Hafnium" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hafnium...@googlegroups.com.