]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
llc: fix another potential sk_buff leak in llc_ui_sendmsg()
authorEric Biggers <ebiggers@google.com>
Sun, 6 Oct 2019 21:24:26 +0000 (14:24 -0700)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit2002f088800742aef16826061a5e8802cb7eae54
tree016162f620dca0cb2bb833c947e042bbd66fca3b
parentaa0fa5be199a1e897d48621cd8b58e68685832f7
llc: fix another potential sk_buff leak in llc_ui_sendmsg()

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit fc8d5db10cbe1338a52ebc74e7feab9276721774 ]

All callers of llc_conn_state_process() except llc_build_and_send_pkt()
(via llc_ui_sendmsg() -> llc_ui_send_data()) assume that it always
consumes a reference to the skb.  Fix this caller to do the same.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/llc/af_llc.c
net/llc/llc_conn.c
net/llc/llc_if.c