Bump BPF instruction cap (#6213)
This commit is contained in:
parent
211cae5811
commit
315940b6a9
|
@ -28,7 +28,7 @@ use std::mem;
|
|||
pub fn create_vm(prog: &[u8]) -> Result<(EbpfVm, MemoryRegion), Error> {
|
||||
let mut vm = EbpfVm::new(None)?;
|
||||
vm.set_verifier(bpf_verifier::check)?;
|
||||
vm.set_max_instruction_count(36000)?;
|
||||
vm.set_max_instruction_count(100_000)?;
|
||||
vm.set_elf(&prog)?;
|
||||
|
||||
let heap_region = helpers::register_helpers(&mut vm)?;
|
||||
|
|
Loading…
Reference in New Issue