lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-Id: <20221111023605.228202-2-sashal@kernel.org> Date: Thu, 10 Nov 2022 21:36:05 -0500 From: Sasha Levin <sashal@...nel.org> To: linux-kernel@...r.kernel.org, stable@...r.kernel.org Cc: Luiz Augusto von Dentz <luiz.von.dentz@...el.com>, Tedd Ho-Jeong An <tedd.an@...el.com>, Sasha Levin <sashal@...nel.org>, marcel@...tmann.org, johan.hedberg@...il.com, luiz.dentz@...il.com, davem@...emloft.net, edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com, linux-bluetooth@...r.kernel.org, netdev@...r.kernel.org Subject: [PATCH AUTOSEL 4.14 2/2] Bluetooth: L2CAP: Fix l2cap_global_chan_by_psm From: Luiz Augusto von Dentz <luiz.von.dentz@...el.com> [ Upstream commit f937b758a188d6fd328a81367087eddbb2fce50f ] l2cap_global_chan_by_psm shall not return fixed channels as they are not meant to be connected by (S)PSM. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@...el.com> Reviewed-by: Tedd Ho-Jeong An <tedd.an@...el.com> Signed-off-by: Sasha Levin <sashal@...nel.org> --- net/bluetooth/l2cap_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 652c0723051b..ead6164c4dbd 100644 --- a/net/bluetooth/l2cap_core.c +++ b/net/bluetooth/l2cap_core.c @@ -1824,7 +1824,7 @@ static struct l2cap_chan *l2cap_global_chan_by_psm(int state, __le16 psm, if (link_type == LE_LINK && c->src_type == BDADDR_BREDR) continue; - if (c->psm == psm) { + if (c->chan_type != L2CAP_CHAN_FIXED && c->psm == psm) { int src_match, dst_match; int src_any, dst_any; -- 2.35.1
Powered by blists - more mailing lists