[BUG] kaweth: a possible sleep-in-atomic bug in kaweth_start_xmit

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

 



According to drivers/net/usb/kaweth.c, the driver may sleep under a spinlock.
The function call path is:
kaweth_start_xmit (acquire the spinlock)
  kaweth_async_set_rx_mode
    kaweth_control
      kaweth_internal_control_msg
        usb_start_wait_urb
          wait_event_timeout --> may sleep
          usb_kill_urb --> may sleep

I do not find a good way to fix it, so I only report.
This possible bug is found by my static analysis tool (DSAC) and checked by my code review.


Thanks,
Jia-Ju Bai
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux