Skip to content

Commit

Permalink
Clean up reject_callx_r10
Browse files Browse the repository at this point in the history
  • Loading branch information
riptl committed Aug 2, 2024
1 parent a60fbc2 commit 1e7d260
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions programs/bpf_loader/src/syscalls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ use {
enable_big_mod_exp_syscall, enable_get_epoch_stake_syscall,
enable_partitioned_epoch_reward, enable_poseidon_syscall,
error_on_syscall_bpf_function_hash_collisions, get_sysvar_syscall_enabled,
last_restart_slot_sysvar, reject_callx_r10, remaining_compute_units_syscall_enabled,
last_restart_slot_sysvar, remaining_compute_units_syscall_enabled,
},
hash::{Hash, Hasher},
instruction::{AccountMeta, InstructionError, ProcessedSiblingInstruction},
Expand Down Expand Up @@ -302,7 +302,7 @@ pub fn create_program_runtime_environment_v1<'a>(
sanitize_user_provided_values: true,
external_internal_function_hash_collision: feature_set
.is_active(&error_on_syscall_bpf_function_hash_collisions::id()),
reject_callx_r10: feature_set.is_active(&reject_callx_r10::id()),
reject_callx_r10: true,
enable_sbpf_v1: true,
enable_sbpf_v2: false,
optimize_rodata: false,
Expand Down
2 changes: 1 addition & 1 deletion svm/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ fn create_custom_environment<'a>() -> BuiltinProgram<InvokeContext<'a>> {
noop_instruction_rate: 256,
sanitize_user_provided_values: true,
external_internal_function_hash_collision: false,
reject_callx_r10: false,
reject_callx_r10: true,
enable_sbpf_v1: true,
enable_sbpf_v2: false,
optimize_rodata: false,
Expand Down

0 comments on commit 1e7d260

Please sign in to comment.