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
Unknown Object (File)
Tue, Oct 15, 10:30 PM
Unknown Object (File)
Mon, Oct 14, 7:45 PM
Unknown Object (File)
Sun, Oct 13, 7:50 AM
Unknown Object (File)
Fri, Oct 11, 6:46 PM
Unknown Object (File)
Thu, Oct 10, 12:26 PM
Unknown Object (File)
Tue, Oct 8, 5:23 AM
Unknown Object (File)
Mon, Oct 7, 3:05 PM
Unknown Object (File)
Sat, Oct 5, 1:37 PM
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 Skipped
Unit
Tests Skipped
Build Status
Buildable 56411
Build 53299: arc lint + arc unit