summaryrefslogtreecommitdiffstats
path: root/src/hostname
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-05-01 14:41:41 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-05-01 16:15:20 +0200
commitee8f605ded4fea6b93aae018415efae877c26ed2 (patch)
tree6afd213b50fcfa60986097d1a1e417063b56dbd9 /src/hostname
parenttest-network: Make source directory optional (diff)
downloadsystemd-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/hostname')
0 files changed, 0 insertions, 0 deletions