Skip to content

Commit b6a2bf4

Browse files
ceggers-arriVudentz
authored andcommitted
Bluetooth: LE L2CAP: Disconnect if sum of payload sizes exceed SDU
Core 6.0, Vol 3, Part A, 3.4.3: "... If the sum of the payload sizes for the K-frames exceeds the specified SDU length, the receiver shall disconnect the channel." This fixes L2CAP/LE/CFC/BV-27-C (running together with 'l2test -r -P 0x0027 -V le_public'). Fixes: aac23bf ("Bluetooth: Implement LE L2CAP reassembly") Signed-off-by: Christian Eggers <[email protected]> Signed-off-by: Luiz Augusto von Dentz <[email protected]>
1 parent e1d9a66 commit b6a2bf4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/bluetooth/l2cap_core.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6729,6 +6729,7 @@ static int l2cap_ecred_data_rcv(struct l2cap_chan *chan, struct sk_buff *skb)
67296729

67306730
if (chan->sdu->len + skb->len > chan->sdu_len) {
67316731
BT_ERR("Too much LE L2CAP data received");
6732+
l2cap_send_disconn_req(chan, ECONNRESET);
67326733
err = -EINVAL;
67336734
goto failed;
67346735
}

0 commit comments

Comments
 (0)