Re: Unlock in6_ioctl_get() aka. SIOCGIF{DSTADDR,NETMASK,AFLAG,ALIFETIME}_IN6

2022-11-30 Thread Vitaliy Makkoveev
ok mvs@ > On 30 Nov 2022, at 20:50, Klemens Nanni wrote: > > First the right address is picked from the net lock protected if_addrlist. > Then all ioctls just copy out the address, nothing requires the kernel lock. > > SIOCGIFDSTADDR_IN6 checks the net lock protected if_flags, > SIOCGIFALIFETIM

Unlock in6_ioctl_get() aka. SIOCGIF{DSTADDR,NETMASK,AFLAG,ALIFETIME}_IN6

2022-11-30 Thread Klemens Nanni
First the right address is picked from the net lock protected if_addrlist. Then all ioctls just copy out the address, nothing requires the kernel lock. SIOCGIFDSTADDR_IN6 checks the net lock protected if_flags, SIOCGIFALIFETIME_IN6 computes lifetimes which only need the address. Users of these io