mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-07-08 18:13:59 +02:00
9d42f37339
[ Upstream commit4f3951242a] Check user input length before copying data. Fixes:33575df7be("Bluetooth: move l2cap_sock_setsockopt() to l2cap_sock.c") Fixes:3ee7b7cd83("Bluetooth: Add BT_MODE socket option") Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com> Signed-off-by: Sasha Levin <sashal@kernel.org>