Page MenuHomeFreeBSD

linux: require vnet(9) context in ifname_bsd_to_linux_name()
ClosedPublic

Authored by glebius on Mar 2 2024, 6:27 PM.
Tags
None
Referenced Files
F103078693: D44191.diff
Wed, Nov 20, 4:06 PM
Unknown Object (File)
Thu, Nov 14, 3:26 PM
Unknown Object (File)
Thu, Nov 7, 2:08 PM
Unknown Object (File)
Tue, Nov 5, 3:59 AM
Unknown Object (File)
Sun, Nov 3, 12:27 AM
Unknown Object (File)
Oct 15 2024, 10:30 PM
Unknown Object (File)
Oct 14 2024, 7:45 PM
Unknown Object (File)
Oct 13 2024, 7:50 AM
Subscribers

Details

Summary

This function is used by netlink(9) only. The netlink(9) taskqueue thread
runs in the vnet of the socket whose request the thread is processing
right now. This is a correct vnet and resetting it to vnet0 is incorrect.
If the function is to be used by any other caller in addition to
netlink(9), it would be caller's responsiblity to provide correct vnet(9).

PR: 277286

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable