Skip to content
Commit c5354552 authored by Andrew Boie's avatar Andrew Boie Committed by Andrew Boie
Browse files

gen_syscall_header: use compiler barrier



We need to enforce that if the implementation function is inlined,
and we are using a syscall declaration macro where a runtime check
is performed, that all memory access in the inlined implementation
function is done after the user context check is performed.

Fixes bad memory access issues observed due to the compiler fetching
member data from a kernel object when the calling context was in
user mode.

Signed-off-by: default avatarAndrew Boie <andrew.p.boie@intel.com>
parent 2574219d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment