Bluetooth: L2CAP: Send reject on command corrupted request
authorFrédéric Danis <frederic.danis@collabora.com>
Fri, 8 Dec 2023 17:41:50 +0000 (18:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:42:40 +0000 (12:42 +0000)
commit0974347ac10dd17b9278482d83c69605a178bb54
tree6dea6e56b268632920748882c608ad951e81ed69
parent1d576c3a5af850bf11fbd103f9ba11aa6d6061fb
Bluetooth: L2CAP: Send reject on command corrupted request

commit 78b99eb1faa7371bf9c534690f26a71b6996622d upstream.

L2CAP/COS/CED/BI-02-C PTS test send a malformed L2CAP signaling packet
with 2 commands in it (a connection request and an unknown command) and
expect to get a connection response packet and a command reject packet.
The second is currently not sent.

Cc: stable@vger.kernel.org
Signed-off-by: Frédéric Danis <frederic.danis@collabora.com>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/l2cap_core.c