1. 14 8月, 2014 12 次提交
  2. 21 7月, 2014 1 次提交
  3. 18 7月, 2014 1 次提交
  4. 17 7月, 2014 1 次提交
  5. 16 7月, 2014 2 次提交
  6. 14 7月, 2014 1 次提交
  7. 11 7月, 2014 1 次提交
  8. 09 7月, 2014 2 次提交
  9. 07 7月, 2014 2 次提交
  10. 06 7月, 2014 2 次提交
  11. 03 7月, 2014 10 次提交
  12. 13 6月, 2014 1 次提交
    • J
      Bluetooth: Fix deadlock in l2cap_conn_del() · 7ab56c3a
      Jukka Taimisto 提交于
      A deadlock occurs when PDU containing invalid SMP opcode is received on
      Security Manager Channel over LE link and conn->pending_rx_work worker
      has not run yet.
      
      When LE link is created l2cap_conn_ready() is called and before
      returning it schedules conn->pending_rx_work worker to hdev->workqueue.
      Incoming data to SMP fixed channel is handled by l2cap_recv_frame()
      which calls smp_sig_channel() to handle the SMP PDU. If
      smp_sig_channel() indicates failure l2cap_conn_del() is called to delete
      the connection. When deleting the connection, l2cap_conn_del() purges
      the pending_rx queue and calls flush_work() to wait for the
      pending_rx_work worker to complete.
      
      Since incoming data is handled by a worker running from the same
      workqueue as the pending_rx_work is being scheduled on, we will deadlock
      on waiting for pending_rx_work to complete.
      
      This patch fixes the deadlock by calling cancel_work_sync() instead of
      flush_work().
      Signed-off-by: NJukka Taimisto <jtt@codenomicon.com>
      Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
      Cc: stable@vger.kernel.org
      7ab56c3a
  13. 31 5月, 2014 1 次提交
  14. 15 5月, 2014 1 次提交
  15. 13 3月, 2014 1 次提交
  16. 27 2月, 2014 1 次提交