[Bug 218597] [CRYPTODEV] spurious wakeup and synchronisation problem
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Apr 19 10:47:09 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218597
--- Comment #6 from Konstantin Belousov <kib at FreeBSD.org> ---
(In reply to Alexandre martins from comment #4)
If you want to use on-stack memory from another thread or from an interrupt
context, be aware that the thread's kstacks are generally swappable. Of
course, the stack is swapped in when the thread is marked runnable, but
otherwise you may get into a situation when other thread accessing unmapped
kstack.
You may work around this with PHOLD(), but that would keep whole stack in
memory when system desperately needs it. In other words, using malloc(9) is
less troublesome.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list