Commit b0cb265
bpf: a few missing checks to avoid verbose verifier log
There are a few places where log level is not checked before calling
"verbose()". This forces programs working only at
BPF_LOG_LEVEL_STATS (e.g. veristat) to allocate unnecessarily large
log buffers.
Reported-by: Emil Tsalapatis <[email protected]>
Signed-off-by: Eduard Zingerman <[email protected]>1 parent 488318d commit b0cb265
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10720 | 10720 | | |
10721 | 10721 | | |
10722 | 10722 | | |
10723 | | - | |
10724 | | - | |
| 10723 | + | |
| 10724 | + | |
| 10725 | + | |
10725 | 10726 | | |
10726 | 10727 | | |
10727 | 10728 | | |
| |||
19470 | 19471 | | |
19471 | 19472 | | |
19472 | 19473 | | |
19473 | | - | |
| 19474 | + | |
19474 | 19475 | | |
19475 | 19476 | | |
19476 | 19477 | | |
| |||
23698 | 23699 | | |
23699 | 23700 | | |
23700 | 23701 | | |
23701 | | - | |
| 23702 | + | |
| 23703 | + | |
23702 | 23704 | | |
23703 | 23705 | | |
23704 | 23706 | | |
| |||
0 commit comments