All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 3.16 00/10] Fix possible crash on L2CAP socket shutdown
@ 2020-06-30 15:36 Denis Grigorev
  2020-06-30 15:36 ` [PATCH 3.16 01/10] Bluetooth: Stop sabotaging list poisoning Denis Grigorev
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Denis Grigorev @ 2020-06-30 15:36 UTC (permalink / raw)
  To: stable; +Cc: ben

This series of commits fixes a problem with closing l2cap connection
if socket has unACKed frames. Due an to an infinite loop in l2cap_wait_ack
the userspace process gets stuck in close() and then the kernel crashes
with the following report:

Call trace:
[<ffffffc000ace0b4>] l2cap_do_send+0x2c/0xec
[<ffffffc000acf5f8>] l2cap_send_sframe+0x178/0x260
[<ffffffc000acf740>] l2cap_send_rr_or_rnr+0x60/0x84
[<ffffffc000acf980>] l2cap_ack_timeout+0x60/0xac
[<ffffffc0000b35b8>] process_one_work+0x140/0x384
[<ffffffc0000b393c>] worker_thread+0x140/0x4e4
[<ffffffc0000b8c48>] kthread+0xdc/0xf0

All kernels below v4.3 are affected.

-------------------------

Commit log:

Alexey Dobriyan (1):
  Bluetooth: Stop sabotaging list poisoning

Dean Jenkins (8):
  Bluetooth: L2CAP ERTM shutdown protect sk and chan
  Bluetooth: Make __l2cap_wait_ack more efficient
  Bluetooth: Add BT_DBG to l2cap_sock_shutdown()
  Bluetooth: __l2cap_wait_ack() use msecs_to_jiffies()
  Bluetooth: __l2cap_wait_ack() add defensive timeout
  Bluetooth: Unwind l2cap_sock_shutdown()
  Bluetooth: Reorganize mutex lock in l2cap_sock_shutdown()
  Bluetooth: l2cap_disconnection_req priority over shutdown

Tedd Ho-Jeong An (1):
  Bluetooth: Reinitialize the list after deletion for session user list

 include/net/bluetooth/l2cap.h |  2 +
 net/bluetooth/l2cap_core.c    | 12 ++---
 net/bluetooth/l2cap_sock.c    | 94 +++++++++++++++++++++++++++--------
 3 files changed, 78 insertions(+), 30 deletions(-)

-- 
2.17.1


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-07-02 16:49 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-30 15:36 [PATCH 3.16 00/10] Fix possible crash on L2CAP socket shutdown Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 01/10] Bluetooth: Stop sabotaging list poisoning Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 02/10] Bluetooth: Reinitialize the list after deletion for session user list Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 03/10] Bluetooth: L2CAP ERTM shutdown protect sk and chan Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 04/10] Bluetooth: Make __l2cap_wait_ack more efficient Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 05/10] Bluetooth: Add BT_DBG to l2cap_sock_shutdown() Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 06/10] Bluetooth: __l2cap_wait_ack() use msecs_to_jiffies() Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 07/10] Bluetooth: __l2cap_wait_ack() add defensive timeout Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 08/10] Bluetooth: Unwind l2cap_sock_shutdown() Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 09/10] Bluetooth: Reorganize mutex lock in l2cap_sock_shutdown() Denis Grigorev
2020-06-30 15:36 ` [PATCH 3.16 10/10] Bluetooth: l2cap_disconnection_req priority over shutdown Denis Grigorev
2020-07-01 23:31 ` [PATCH 3.16 00/10] Fix possible crash on L2CAP socket shutdown Ben Hutchings
2020-07-02  7:39   ` Greg KH
2020-07-02 14:55     ` 3.16 EOL Ben Hutchings
2020-07-02 16:49       ` Greg KH

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.