Skip to contentSkip to conversation

New: The flexcan/socketcan driver does not block and returns an error if all buffers are in use on transmit.

Bug 205533 Stephen Hemminger 1 participant 1 message Nov 15, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Begin forwarded message:

Date: Thu, 14 Nov 2019 17:10:29 +0000
From: [email protected]
To: [email protected]
Subject: [Bug 205533] New: The flexcan/socketcan driver does not block and returns an error if all buffers are in use on transmit.

https://bugzilla.kernel.org/show_bug.cgi?id=205533

            Bug ID: 205533
           Summary: The flexcan/socketcan driver does not block and
                    returns an error if all buffers are in use on
                    transmit.
           Product: Networking
           Version: 2.5
    Kernel Version: 4.14.149
          Hardware: ARM
                OS: Linux
              Tree: Mainline
            Status: NEW
          Severity: low
          Priority: P1
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

When the output buffer is saturated, even if the socket is set up for blocking use, a "write" to the CAN socket may result in a -1 return value with errno set to 105 (ENOBUFS).

The socket is created using socket(PF_CAN, SOCK_RAW, CAN_RAW). SO_SNDBUF is set to 2240. fcntl is used to disable O_NONBLOCK.

I see the error case after "many" sends. In this situation three separate processes are sharing the CAN bus on the local processor. The error only occurs when all processes are heavily using the bus (set at 1 MHz), and there does not appear to be a normal re-entrancy issue with the driver.

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.