Commit 4687d1c
committed
bpf: allow new DECAP flags and add guard rails
commit-author Nick Hudson <nhudson@akamai.com>
commit -
commit-source https://lore.kernel.org/netdev/20260504101759.3319427-5-nhudson@akamai.com/
Add checks to require shrink-only decap, reject conflicting decap flag
combinations, and verify removed length is sufficient for claimed header
decapsulation.
Co-developed-by: Max Tottenham <mtottenh@akamai.com>
Signed-off-by: Max Tottenham <mtottenh@akamai.com>
Co-developed-by: Anna Glasgall <aglasgal@akamai.com>
Signed-off-by: Anna Glasgall <aglasgal@akamai.com>
Signed-off-by: Nick Hudson <nhudson@akamai.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Brett Mastbergen <bmastbergen@ciq.com>1 parent bd9e5af commit 4687d1c
1 file changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
3420 | 3421 | | |
3421 | 3422 | | |
3422 | 3423 | | |
| 3424 | + | |
| 3425 | + | |
| 3426 | + | |
| 3427 | + | |
| 3428 | + | |
| 3429 | + | |
3423 | 3430 | | |
3424 | 3431 | | |
3425 | 3432 | | |
3426 | 3433 | | |
3427 | 3434 | | |
3428 | 3435 | | |
3429 | 3436 | | |
3430 | | - | |
| 3437 | + | |
| 3438 | + | |
| 3439 | + | |
3431 | 3440 | | |
3432 | 3441 | | |
3433 | 3442 | | |
| |||
3669 | 3678 | | |
3670 | 3679 | | |
3671 | 3680 | | |
| 3681 | + | |
| 3682 | + | |
3672 | 3683 | | |
3673 | 3684 | | |
3674 | 3685 | | |
| |||
3677 | 3688 | | |
3678 | 3689 | | |
3679 | 3690 | | |
| 3691 | + | |
| 3692 | + | |
| 3693 | + | |
| 3694 | + | |
| 3695 | + | |
| 3696 | + | |
| 3697 | + | |
| 3698 | + | |
| 3699 | + | |
| 3700 | + | |
| 3701 | + | |
| 3702 | + | |
| 3703 | + | |
| 3704 | + | |
| 3705 | + | |
| 3706 | + | |
| 3707 | + | |
| 3708 | + | |
| 3709 | + | |
| 3710 | + | |
| 3711 | + | |
| 3712 | + | |
| 3713 | + | |
| 3714 | + | |
| 3715 | + | |
| 3716 | + | |
| 3717 | + | |
| 3718 | + | |
| 3719 | + | |
| 3720 | + | |
| 3721 | + | |
3680 | 3722 | | |
3681 | 3723 | | |
3682 | 3724 | | |
| |||
0 commit comments