https://github.com/torvalds/linux
Revision c2e1cfefcac35e0eea229e148c8284088ce437b5 authored by Hangyu Hua on 21 September 2022, 09:27:34 UTC, committed by Jakub Kicinski on 22 September 2022, 14:04:47 UTC
tfilter_put need to be called to put the refount got by tp->ops->get to
avoid possible refcount leak when chain->tmplt_ops != NULL and
chain->tmplt_ops != tp->ops.

Fixes: 7d5509fa0d3d ("net: sched: extend proto ops with 'put' callback")
Signed-off-by: Hangyu Hua <hbh25y@gmail.com>
Reviewed-by: Vlad Buslov <vladbu@nvidia.com>
Link: https://lore.kernel.org/r/20220921092734.31700-1-hbh25y@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 878e240
Raw File
Tip revision: c2e1cfefcac35e0eea229e148c8284088ce437b5 authored by Hangyu Hua on 21 September 2022, 09:27:34 UTC
net: sched: fix possible refcount leak in tc_new_tfilter()
Tip revision: c2e1cfe
Kconfig
# SPDX-License-Identifier: GPL-2.0
#
# For a description of the syntax of this configuration file,
# see Documentation/kbuild/kconfig-language.rst.
#
mainmenu "Linux/$(ARCH) $(KERNELVERSION) Kernel Configuration"

source "scripts/Kconfig.include"

source "init/Kconfig"

source "kernel/Kconfig.freezer"

source "fs/Kconfig.binfmt"

source "mm/Kconfig"

source "net/Kconfig"

source "drivers/Kconfig"

source "fs/Kconfig"

source "security/Kconfig"

source "crypto/Kconfig"

source "lib/Kconfig"

source "lib/Kconfig.debug"

source "Documentation/Kconfig"
back to top