Skip to content

Since 6.16.2 up to at least 6.16.4, IP4 connections fail randomly.

Description:

Since 6.16.2, some IP connections fail randomly, either with EACCESS or with some error saying that I'm trying to use a broadcast address (when I'm not). Retrying the exact same connection usually succeeds.

I've noticed that without running the X session, I can't reproduce it, maybe my tainted kernel has some relationship? Or maybe just the system load?

It has been reported in the forums: https://bbs.archlinux.org/viewtopic.php?pid=2258114

The linux-zen package fails exactly the same, in the same versions.

I've applied the patch in the link for the upsteam bug below, and it fixes it perfectly. I've tried reverting the linked patch (9e30ecf23b1b) and it also fixes the issue.

Additional info:

Steps to reproduce:

Reproducing the bug is not easy, according the forum posts if fails differently for different people.

In my case I can reproduce it consistently with the following Python script:

from socket import AF_INET, SOCK_DGRAM, socket

while True:
    with socket(AF_INET, SOCK_DGRAM) as sock:
        sock.connect(("1.1.1.1", 80))

But for it to fail consistently I have to run it with strace:

$ strace python test.py

In my system it will fail in between 0 and 30 seconds with PermissionError: [Errno 13] Permission denied.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information