Feature gates for rbpf v0.2.16 (#21590)
- Adds feature reject_section_virtual_address_file_offset_mismatch. - Adds feature start_verify_shift32_imm. - Enables enable_symbol_and_section_labels only in the rbpf-cli.
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							a9d5ef2055
						
					
				
				
					commit
					015250f96c
				
			@@ -1999,7 +1999,9 @@ fn read_and_verify_elf(program_location: &str) -> Result<Vec<u8>, Box<dyn std::e
 | 
			
		||||
        Some(verifier::check),
 | 
			
		||||
        Config {
 | 
			
		||||
            reject_unresolved_syscalls: true,
 | 
			
		||||
            verify_mul64_imm_nonzero: true, // TODO: Remove me after feature gate
 | 
			
		||||
            verify_mul64_imm_nonzero: false,
 | 
			
		||||
            verify_shift32_imm: true,
 | 
			
		||||
            reject_section_virtual_address_file_offset_mismatch: true,
 | 
			
		||||
            ..Config::default()
 | 
			
		||||
        },
 | 
			
		||||
        register_syscalls(&mut invoke_context).unwrap(),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user