linux-stable/net/phonet
Hangyu Hua 4dece2760a phonet: refcount leak in pep_sock_accep
commit bcd0f93353 upstream.

sock_hold(sk) is invoked in pep_sock_accept(), but __sock_put(sk) is not
invoked in subsequent failure branches(pep_accept_conn() != 0).

Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Link: https://lore.kernel.org/r/20211209082839.33985-1-hbh25y@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Aayush Agarwal <aayush.a.agarwal@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-01-11 13:58:50 +01:00
..
af_phonet.c net: phonet: mark phonet_protocol as const 2017-10-07 23:15:08 +01:00
datagram.c net: phonet: mark phonet_protocol as const 2017-10-07 23:15:08 +01:00
Kconfig
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pep-gprs.c
pep.c phonet: refcount leak in pep_sock_accep 2022-01-11 13:58:50 +01:00
pn_dev.c proc: introduce proc_create_net{,_data} 2018-05-16 07:24:30 +02:00
pn_netlink.c net: use rtnl_register_module where needed 2017-12-04 11:32:39 -05:00
socket.c net: use skb_queue_empty_lockless() in poll() handlers 2019-11-10 11:27:48 +01:00
sysctl.c