]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'tipc-fix-two-race-issues-in-tipc_conn_alloc'
authorJakub Kicinski <kuba@kernel.org>
Tue, 22 Nov 2022 04:45:28 +0000 (20:45 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 22 Nov 2022 04:45:29 +0000 (20:45 -0800)
commit982b9a42239277a13b81fc122c2e81c680de2e20
tree7783a039437196000a9f7497af45c7617abb481e
parent38f5d9baad295c904d0449685592b5230d307380
parentf33218ad7bc8fd7c9dbbb287fa5b07ee5a0cb7cf
Merge branch 'tipc-fix-two-race-issues-in-tipc_conn_alloc'

Xin Long says:

====================
tipc: fix two race issues in tipc_conn_alloc

The race exists beteen tipc_topsrv_accept() and tipc_conn_close(),
one is allocating the con while the other is freeing it and there
is no proper lock protecting it. Therefore, a null-pointer-defer
and a use-after-free may be triggered, see details on each patch.
====================

Link: https://lore.kernel.org/r/cover.1668807842.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>