diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2023-04-26 19:54:36 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2023-04-26 19:54:36 +0000 |
commit | dc90b7a5f854bb2fd0f789cf4df4dbbbf5971ea5 (patch) | |
tree | ba910487e341956fd3c174317f64fe8daf25e6bd /distrib/hppa/install.md | |
parent | 045da8ae492a84ecf85c67e25310c5b49c9d9523 (diff) |
Introduce `rtlabel_mtx' mutex(9) to protect route labels storage. This
time kernel and net locks are held in various combination to protect it.
We don't want to put kernel lock to all the places. Netlock also can't
be used because rtfree(9) which calls rtlabel_unref() has unknown
netlock state within.
This new `rtlabel_mtx' mutex(9) protects `rt_labels' list and `label'
entry dereference. Since we don't export 'rt_label' structure, keep this
lock private to net/route.c. For this reason rtlabel_id2name() now
copies label string to externally passed buffer instead of returning
address of `rt_labels' list data. This is the way which rtlabel_id2sa()
already works.
ok bluhm@
Diffstat (limited to 'distrib/hppa/install.md')
0 files changed, 0 insertions, 0 deletions