Skip to content

Commit

Permalink
direct_mapping: disable stack frame gaps (#34254)
Browse files Browse the repository at this point in the history
Gaps don't work with direct mapping which assumes a 1:1 mapping between virtual
and host addresses.

(cherry picked from commit a0df9de)
  • Loading branch information
alessandrod committed Nov 29, 2023
1 parent 4d0ccab commit f0ed96d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/bpf_loader/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ pub fn create_program_runtime_environment_v1<'a>(
max_call_depth: compute_budget.max_call_depth,
stack_frame_size: compute_budget.stack_frame_size,
enable_address_translation: true,
enable_stack_frame_gaps: true,
enable_stack_frame_gaps: !feature_set.is_active(&bpf_account_data_direct_mapping::id()),
instruction_meter_checkpoint_distance: 10000,
enable_instruction_meter: true,
enable_instruction_tracing: debugging_features,
Expand Down

0 comments on commit f0ed96d

Please sign in to comment.