Commit 6d42161
committed
bpf: Generalize check_ctx_reg for reuse with other types
jira VULN-72
cve CVE-2021-4204
commit-author Daniel Borkmann <daniel@iogearbox.net>
commit be80a1d
Generalize the check_ctx_reg() helper function into a more generic named one
so that it can be reused for other register types as well to check whether
their offset is non-zero. No functional change.
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
(cherry picked from commit be80a1d)
Signed-off-by: Brett Mastbergen <bmastbergen@ciq.com>1 parent cd19f9c commit 6d42161
3 files changed
+14
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
487 | 487 | | |
488 | 488 | | |
489 | 489 | | |
490 | | - | |
491 | | - | |
| 490 | + | |
| 491 | + | |
492 | 492 | | |
493 | 493 | | |
494 | 494 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5494 | 5494 | | |
5495 | 5495 | | |
5496 | 5496 | | |
5497 | | - | |
| 5497 | + | |
5498 | 5498 | | |
5499 | 5499 | | |
5500 | 5500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3661 | 3661 | | |
3662 | 3662 | | |
3663 | 3663 | | |
3664 | | - | |
3665 | | - | |
| 3664 | + | |
| 3665 | + | |
3666 | 3666 | | |
3667 | | - | |
3668 | | - | |
| 3667 | + | |
| 3668 | + | |
3669 | 3669 | | |
3670 | 3670 | | |
3671 | 3671 | | |
3672 | | - | |
3673 | | - | |
| 3672 | + | |
| 3673 | + | |
3674 | 3674 | | |
3675 | 3675 | | |
3676 | 3676 | | |
3677 | 3677 | | |
3678 | 3678 | | |
3679 | 3679 | | |
3680 | 3680 | | |
3681 | | - | |
| 3681 | + | |
| 3682 | + | |
3682 | 3683 | | |
3683 | 3684 | | |
3684 | 3685 | | |
| |||
4114 | 4115 | | |
4115 | 4116 | | |
4116 | 4117 | | |
4117 | | - | |
| 4118 | + | |
4118 | 4119 | | |
4119 | 4120 | | |
4120 | 4121 | | |
| |||
4926 | 4927 | | |
4927 | 4928 | | |
4928 | 4929 | | |
4929 | | - | |
| 4930 | + | |
4930 | 4931 | | |
4931 | 4932 | | |
4932 | 4933 | | |
| |||
9069 | 9070 | | |
9070 | 9071 | | |
9071 | 9072 | | |
9072 | | - | |
| 9073 | + | |
9073 | 9074 | | |
9074 | 9075 | | |
9075 | 9076 | | |
| |||
0 commit comments