Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tetragon: Use asm in process_filter_namespace
The new clang use some new optimalization that uses &= as part for '>' operator code. This messes up with maximum we setup with &= for verifier ending up with verifier error: 1328: (77) r1 >>= 2 1329: (57) r1 &= 1023 1330: (bf) r1 = r2 1331: (57) r1 &= 8188 1332: (79) r2 = *(u64 *)(r10 -48) 1333: (0f) r2 += r1 1334: (61) r2 = *(u32 *)(r2 +0) ... invalid access to map value, value_size=4096 off=8188 size=4 R2 max value is outside of the array range Moving the exact size check into assembly that seems to prevent the new optimalization. Signed-off-by: Jiri Olsa <jolsa@kernel.org>
- Loading branch information