summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorVitaliy Makkoveev <mvs@cvs.openbsd.org>2023-04-18 22:01:25 +0000
committerVitaliy Makkoveev <mvs@cvs.openbsd.org>2023-04-18 22:01:25 +0000
commit2a0885608f7f356466c08865d6a8f19736dd893a (patch)
tree2c759113291768b831b9201b462b14b995e25743 /bin
parent9275ff7135dd9e0e3fd3b3eb510bed34dda0453e (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 'bin')
0 files changed, 0 insertions, 0 deletions