diff options
author | Amery Hung <ameryhung@gmail.com> | 2025-04-29 12:21:28 -0700 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2025-04-29 14:25:41 -0700 |
commit | 7625645e69454f984f09ea450b9eb1293467aa39 (patch) | |
tree | 8d022995020f5143d1e3a0e30a2c3184becf9045 /tools/testing/selftests/net/lib/py/utils.py | |
parent | 1ce65102d2d3c54862f7b59479135168ed512cd2 (diff) |
bpf: net_sched: Fix using bpf qdisc as default qdisc
Use bpf_try_module_get()/bpf_module_put() instead of try_module_get()/
module_put() when handling default qdisc since users can assign a bpf
qdisc to it.
To trigger the bug:
$ bpftool struct_ops register bpf_qdisc_fq.bpf.o /sys/fs/bpf
$ echo bpf_fq > /proc/sys/net/core/default_qdisc
Fixes: c8240344956e ("bpf: net_sched: Support implementation of Qdisc_ops in bpf")
Signed-off-by: Amery Hung <ameryhung@gmail.com>
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Link: https://patch.msgid.link/20250429192128.3860571-1-ameryhung@gmail.com
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions