Re: kernel bug? listening on same port with IPv4 and IPv6

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2023-01-08 08:14, Sjoerd Mullender wrote:

and see the difference in behavior.  When using "all", the second round (IPv4) says that bind returns 1 unexpectedly, and the port is also unexpected.  When using "localhost", both IPv6 and IPv4 succeed and listen to the same port, but using two different sockets internally.

The behavior for the "all" case is different with the older kernel 6.0.15-300.fc37.x86_64 where bind will say "Address already in use".


I think I see what you're saying, now.  In your initial message, I thought you were saying that older kernels would let you bind to the same port on IPv4, but your example code shows that the system errors, "bind: Address already in use", which is what I'd expected.

I haven't reverted this commit (included in 6.0.16) to verify that it's the problem, but it *does* look kind of suspicious:

https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/net/ipv6/af_inet6.c?id=7a7160edf1bfde25422262fb26851cef65f695d3

If possible, I'd revert that one change from 6.0.16.  If it restores the expected behavior, you can file a bug with very specific information about the cause.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux