linux-stable/net/netlabel
Dmitry Mastykin ce18fe83a0 netlabel: fix shift wrapping bug in netlbl_catmap_setlong()
[ Upstream commit b403643d15 ]

There is a shift wrapping bug in this code on 32-bit architectures.
NETLBL_CATMAP_MAPTYPE is u64, bitmap is unsigned long.
Every second 32-bit word of catmap becomes corrupted.

Signed-off-by: Dmitry Mastykin <dmastykin@astralinux.ru>
Acked-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-23 10:47:58 +02: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
netlabel_addrlist.c
netlabel_addrlist.h net/netlabel: Add list_next_rcu() in rcu_dereference(). 2017-11-18 10:32:41 +09:00
netlabel_calipso.c
netlabel_calipso.h
netlabel_cipso_v4.c net: fix NULL pointer reference in cipso_v4_doi_free 2021-09-22 11:48:09 +02:00
netlabel_cipso_v4.h
netlabel_domainhash.c netlabel: fix problems with mapping removal 2020-09-12 13:40:22 +02:00
netlabel_domainhash.h
netlabel_kapi.c netlabel: fix shift wrapping bug in netlbl_catmap_setlong() 2023-09-23 10:47:58 +02:00
netlabel_mgmt.c netlabel: Fix memory leak in netlbl_mgmt_add_common 2021-07-20 16:15:50 +02:00
netlabel_mgmt.h
netlabel_unlabeled.c netlabel: fix an uninitialized warning in netlbl_unlabel_staticlist() 2020-11-24 13:27:17 +01:00
netlabel_unlabeled.h
netlabel_user.c audit: eliminate audit_enabled magic number comparison 2018-06-19 10:43:55 -04:00
netlabel_user.h