Skip to content

L2CAP updates for valid PSMs, SOCK_STREAM reads

Mat Martineau linux-arm-msm linux-bluetooth 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v6 Latest4 patches 6 repliesIn review

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4Bluetooth: Validate PSM values in calls to connect() and bind()net/bluetooth/l2cap.c+21 -41 reply
2/4Bluetooth: Add common code for stream-oriented recvmsg()include/net/bluetooth/bluetooth.h net/bluetooth/af_bluetooth.c+111 -01 reply
3/4Bluetooth: Use common SOCK_STREAM receive code in RFCOMMnet/bluetooth/rfcomm/sock.c+6 -981 reply
4/4Bluetooth: Use a stream-oriented recvmsg with SOCK_STREAM L2CAP sockets.net/bluetooth/l2cap.c+3 -01 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchGustavo F. Padovan
1/4A-b
2/4A-b
3/4A-b
4/4A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH 0/4 v6] L2CAP updates for valid PSMs, SOCK_STREAM reads

This patch set is the same as 'v5', with a fix to PSM validation.

[PATCH 1/4] Bluetooth: Validate PSM values in calls to connect() and bind()

Modified to bypass PSM validation for SOCK_RAW (bonding) sockets.

[PATCH 2/4] Bluetooth: Add common code for stream-oriented recvmsg() [PATCH 3/4] Bluetooth: Use common SOCK_STREAM receive code in RFCOMM [PATCH 4/4] Bluetooth: Use a stream-oriented recvmsg with SOCK_STREAM L2CAP sockets.

These patches change the read behavior of SOCK_STREAM L2CAP sockets to allow reading of partial SDUs. Same as the 'v5' patches.