Skip to contentSkip to conversation

New: can: ti_hecc.c: closing device while receiving can messages, effectively disables all socket transfer

Bug 83131 Stephen Hemminger 1 participant 1 message Aug 25, 2014

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

Begin forwarded message:

Date: Sun, 24 Aug 2014 06:07:49 -0700
From: "[email protected]" <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Bug 83131] New: can: ti_hecc.c: closing device while receiving can messages, effectively disables all socket transfer

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

            Bug ID: 83131
           Summary: can: ti_hecc.c: closing device while receiving can
                    messages, effectively disables all socket transfer
           Product: Networking
           Version: 2.5
    Kernel Version: 3.16.1
          Hardware: All
                OS: Linux
              Tree: PREEMPT_RT
            Status: NEW
          Severity: normal
          Priority: P1
         Component: Other
          Assignee: [email protected]
          Reporter: [email protected]
        Regression: No

drivers/net/can/ti_hecc.c:

When closing the can device, its not ensured that it gets removed from the socket-poll list.

The problem here lies in the ti_hecc_rx_poll() function which returns early when the device is closed already.
This leads to napi_complete() never being called, thus the device stays in the napi's poll list forever and every task reading from any socket is polling this device. The system is now basically unreachable.

The patch attached seams to fix this problem by removing the early return in the ti_hecc_rx_poll function. But I'm not sure whether this is the correct solution.

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