Skip to content

Commit

Permalink
Use volatile write when writing to user buffer
Browse files Browse the repository at this point in the history
Signed-off-by: Alan Jowett <[email protected]>
  • Loading branch information
Alan Jowett committed Dec 3, 2024
1 parent e8b62c9 commit 557a7b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libs/execution_context/ebpf_program.c
Original file line number Diff line number Diff line change
Expand Up @@ -2109,7 +2109,8 @@ ebpf_program_get_info(
EBPF_RETURN_RESULT(EBPF_INVALID_POINTER);
} else {
ebpf_map_t* map = program->maps[i];
map_ids[i] = ebpf_map_get_id(map);
// Volatile user mode pointer.
WriteNoFence(&map_ids[i], ebpf_map_get_id(map));
}
}
} __except (EXCEPTION_EXECUTE_HANDLER) {
Expand Down

0 comments on commit 557a7b2

Please sign in to comment.