Skip to content

Commit

Permalink
Squash to "bpf: Add bpf_mptcp_sched_ops"
Browse files Browse the repository at this point in the history
The helper mptcp_subflow_set_scheduled() is used to update the scheduled
flags of a subflow. BPF schedulers are not allowed to directly modify
this flags. So the write access permission for this flag shouldn't be
allow.

Signed-off-by: Geliang Tang <[email protected]>
  • Loading branch information
Geliang Tang authored and intel-lab-lkp committed Sep 5, 2024
1 parent 12be656 commit 0558f46
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/mptcp/bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ static int bpf_mptcp_sched_btf_struct_access(struct bpf_verifier_log *log,
}
} else if (t == mptcp_subflow_type) {
switch (off) {
case offsetof(struct mptcp_subflow_context, scheduled):
end = offsetofend(struct mptcp_subflow_context, scheduled);
break;
case offsetof(struct mptcp_subflow_context, avg_pacing_rate):
end = offsetofend(struct mptcp_subflow_context, avg_pacing_rate);
break;
Expand Down

0 comments on commit 0558f46

Please sign in to comment.