Repository navigation
resolve: skip IP_UNICAST_IF for local sockets - #31557
Conversation
|
triggered the noble-amd64 job where it fails - it's not yet enabled by default |
|
@rpigott at least for my local build, networkd-test.py passes now on Debian sid \o/. |
|
ubuntu noble blesses this as well, so sounds like you are heading in the right direction |
|
One question: you mentioned the issue worked around with the bind was fixed in a kernel, which version was that? |
|
jammy is fixed too, nice |
Fixed upstream in torvalds/linux@0e4d354762ce + torvalds/linux@526682b458b1, the latter first appeared in v6.2. The ipv6 fix was backported to v6.1.2 in torvalds/linux@22dbe4a6ea37 ...and both to v6.0.16 in torvalds/linux@45304d0db4b5 + torvalds/linux@b9c6c96523f9 respectively. There doesn't appear to be any v5.x release with the ipv6 fix. |
|
Possibly related: #30577 |
|
Just curious what kernel versions is systemd expected to support? |
SO_BINDTODEVICE was used during connect() to fix an issue where IP_UNICAST_IF was improperly ignored for route lookups made by connect in linux. This has since been resolved upstream [1][2], but as a result we must apply the local socket excpetion to IP_UNICAST_IF as well. The SO_BINDTODEVICE is no longer necessary, but left in place for 5.x kernels. [1] https://lore.kernel.org/all/20220829111554.GA1771@debian/ [2] https://lore.kernel.org/all/20221208145437.GA75680@debian/
If certain networkd functionality requires a newer kernel, we can just list it there. |
|
@poettering what's your take on this? |
|
btw, @rpigott , I very much appreciate that you spent the time and effort to diagnose this issue. |
|
looks good! |
This tests a theory for #31528. I want CI to run the test.SO_BINDTODEVICE was used during connect() to fix an issue where IP_UNICAST_IF was improperly ignored for route lookups made by connect in linux. This has since been resolved upstream, but as a result we must apply the local socket excpetion to IP_UNICAST_IF as well.
The SO_BINDTODEVICE is no longer necessary, but left in place for 5.x kernels.
Fixes: #31528 #10487 (duplicate)