Remove limit on program size related to feature cleanup (#15493)
This commit is contained in:
parent
30012818a1
commit
cf4e31964b
@ -64,10 +64,6 @@ fn check_prog_len(prog: &[u8]) -> Result<(), BpfError> {
|
||||
if prog.len() % ebpf::INSN_SIZE != 0 {
|
||||
return Err(VerifierError::ProgramLengthNotMultiple.into());
|
||||
}
|
||||
if prog.len() > ebpf::PROG_MAX_SIZE {
|
||||
return Err(VerifierError::ProgramTooLarge(prog.len() / ebpf::INSN_SIZE).into());
|
||||
}
|
||||
|
||||
if prog.is_empty() {
|
||||
return Err(VerifierError::NoProgram.into());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user