diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-01 14:41:41 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-01 16:15:20 +0200 |
commit | ee8f605ded4fea6b93aae018415efae877c26ed2 (patch) | |
tree | 6afd213b50fcfa60986097d1a1e417063b56dbd9 /src/kernel-install | |
parent | test-network: Make source directory optional (diff) | |
download | systemd-ee8f605ded4fea6b93aae018415efae877c26ed2.tar.xz systemd-ee8f605ded4fea6b93aae018415efae877c26ed2.zip |
network/tc: Avoid concurrent set modification in tclass_drop()/qdisc_drop()
With the current algorithm, we can end up removing entries from the
qdisc/tclass sets while having multiple open iterators over the sets at
various positions which leads to assertion failures in the hashmap logic
as it's only safe to remove the "current" entry.
To avoid the problem, let's split up marking and dropping of tclasses
and qdiscs. First, we recursively iterate tclasses/qdiscs and mark all
that need to be removed. Next, we iterate once over tclasses and qdiscs
and remove all marked entries.
Fixes 632d321050f58fe1b5bed7cfe769d212377c0301
Diffstat (limited to 'src/kernel-install')
0 files changed, 0 insertions, 0 deletions