diff options
author | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2023-04-18 22:01:25 +0000 |
---|---|---|
committer | Vitaliy Makkoveev <mvs@cvs.openbsd.org> | 2023-04-18 22:01:25 +0000 |
commit | 2a0885608f7f356466c08865d6a8f19736dd893a (patch) | |
tree | 2c759113291768b831b9201b462b14b995e25743 /usr.sbin/httpd/control.c | |
parent | 9275ff7135dd9e0e3fd3b3eb510bed34dda0453e (diff) |
Remove kernel lock from ifa_ifwithaddr() and ifa_ifwithdstaddr().
Netlock protects `if_list', `ifa_list' and returned `ifa' dereference,
so put netlock assertion within.
Please note, rtable_setsource() doesn't destroy data pointed by
`ar_source'. This is the `ifa_addr' data belongs to `ifa' and exclusive
netlock is required to destroy it. So the kernel lock is not required
within rt_setsource(). Take netlock by rt_setsource() caller to make
`ifa' dereference safe.
Suggestions and ok by bluhm@
Diffstat (limited to 'usr.sbin/httpd/control.c')
0 files changed, 0 insertions, 0 deletions