]> www.infradead.org Git - users/dwmw2/linux.git/commit
Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Fri, 3 Sep 2021 22:27:32 +0000 (15:27 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:19:26 +0000 (17:19 +0200)
commit5283591c84fae76c3dd7f5a9a2f4db95eae24569
treefb10d359c909ad661f691cb0619cd31301b0ca23
parent341a029cf39cb8492b156535f6b6cbd369fabd14
Bluetooth: RFCOMM: Replace use of memcpy_from_msg with bt_skb_sendmmsg

commit 81be03e026dc0c16dc1c64e088b2a53b73caa895 upstream.

This makes use of bt_skb_sendmmsg instead using memcpy_from_msg which
is not considered safe to be used when lock_sock is held.

Also make rfcomm_dlc_send handle skb with fragments and queue them all
atomically.

Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Cc: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/bluetooth/rfcomm/core.c
net/bluetooth/rfcomm/sock.c