In the Linux kernel, the following vulnerability has been resolved:
tls: Use _skdstget() and dstdevrcu() in getnetdevforsock().
getnetdevfor_sock() is called during setsockopt(), so not under RCU.
Using skdstget(sk)->dev could trigger UAF.
Let's use __skdstget() and dstdevrcu().
Note that the only ->ndoskgetlowerdev() user is bondskgetlowerdev(), which uses RCU.