Remove limit on program size related to feature cleanup (#15493)

This commit is contained in:
Jack May 2021-02-23 12:54:18 -08:00 committed by GitHub
parent 30012818a1
commit cf4e31964b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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());
}