-
Notifications
You must be signed in to change notification settings - Fork 152
bpf: Make sure all tail call callers use cgroup storage if the owner does #10418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Upstream branch: 30f0920 |
4f34c49 to
bc9f2f4
Compare
|
Upstream branch: 30f0920 |
80ddeba to
013ae1e
Compare
bc9f2f4 to
d81819b
Compare
|
Upstream branch: 8f7aa3d |
013ae1e to
790fd6a
Compare
d81819b to
4a41073
Compare
|
Upstream branch: 835a507 |
790fd6a to
6fa47da
Compare
4a41073 to
892a959
Compare
|
Upstream branch: 861111b |
6fa47da to
2a34e27
Compare
892a959 to
f33722a
Compare
|
Upstream branch: 861111b |
2a34e27 to
8cb79f7
Compare
f33722a to
6627cb2
Compare
|
Upstream branch: 861111b |
8cb79f7 to
50a5734
Compare
6627cb2 to
79429ee
Compare
|
Upstream branch: 861111b |
50a5734 to
d670af4
Compare
79429ee to
6127bcb
Compare
|
Upstream branch: 189e5de |
d670af4 to
74b240d
Compare
6127bcb to
62dd44c
Compare
…does Mitigate a possible NULL pointer dereference in bpf_get_local_storage() by requiring all callers to use cgroup storage if the owner does. Cgroup storage is allocated lazily when attaching a cgroup bpf program. With tail call, it is possible for a callee BPF program to see a NULL storage pointer if the caller prorgam does not use cgroup storage. Reported-by: Yinhao Hu <[email protected]> Reported-by: Kaiyan Mei <[email protected]> Reported-by: Dongliang Mu <[email protected]> Closes: https://lore.kernel.org/bpf/[email protected]/ Signed-off-by: Amery Hung <[email protected]>
Make sure that if the owner of a program array map uses cgroup storage, (1) all callers must use cgroup storage and (2) the cgroup storage map used by all callers and callees must be the owner's cgroup storage map. Signed-off-by: Amery Hung <[email protected]>
|
Upstream branch: 297c3fb |
74b240d to
a0da018
Compare
|
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=1030226 expired. Closing PR. |
Pull request for series with
subject: bpf: Make sure all tail call callers use cgroup storage if the owner does
version: 3
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=1030226