linux-stable/net
Thomas Bartschies 888854fc53 net: af_key: check encryption module availability consistency
[ Upstream commit 015c44d7bf ]

Since the recent introduction supporting the SM3 and SM4 hash algos for IPsec, the kernel
produces invalid pfkey acquire messages, when these encryption modules are disabled. This
happens because the availability of the algos wasn't checked in all necessary functions.
This patch adds these checks.

Signed-off-by: Thomas Bartschies <thomas.bartschies@cvk.de>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-06-06 08:47:50 +02:00
..
6lowpan
9p xen/9p: use alloc/free_pages_exact() 2022-03-07 09:48:55 +01:00
802
8021q vlan: move dev_put into vlan_dev_uninit 2022-02-09 13:33:39 +00:00
appletalk
atm proc: remove PDE_DATA() completely 2022-01-22 08:33:37 +02:00
ax25 ax25: Fix UAF bugs in ax25 timers 2022-04-20 09:36:28 +02:00
batman-adv batman-adv: Don't skb_split skbuffs with frag_list 2022-05-18 10:28:11 +02:00
bluetooth Bluetooth: Fix the creation of hdev->name 2022-05-15 20:20:51 +02:00
bpf bpf: Make remote_port field in struct bpf_sk_lookup 16-bit wide 2022-04-13 19:27:40 +02:00
bpfilter
bridge net: bridge: Clear offload_fwd_mark when passing frame up bridge interface. 2022-05-25 09:59:11 +02:00
caif Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
can can: isotp: remove re-binding of bound socket 2022-05-12 12:32:25 +02:00
ceph libceph: fix potential use-after-free on linger ping and resends 2022-05-25 09:59:04 +02:00
core net: fix wrong network header length 2022-05-25 09:59:14 +02:00
dcb net: dcb: disable softirqs in dcbnl_flush_dev() 2022-03-03 08:01:55 -08:00
dccp
decnet Merge git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next 2021-12-31 14:35:40 +00:00
dns_resolver
dsa net: dsa: flush switchdev workqueue on bridge join error path 2022-05-18 10:28:14 +02:00
ethernet
ethtool ethtool: use phydev variable 2022-01-06 12:33:35 +00:00
hsr net: Write lock dev_base_lock without disabling bottom halves. 2021-11-29 12:12:36 +00:00
ieee802154 net: ieee802154: Return meaningful error codes from the netlink helpers 2022-01-27 08:20:47 +01:00
ife
ipv4 xfrm: fix "disable_policy" flag use when arriving from different devices 2022-05-25 09:59:06 +02:00
ipv6 secure_seq: use the 64 bits of the siphash for port offset calculation 2022-05-18 10:28:17 +02:00
iucv net: Don't include filter.h from net/sock.h 2021-12-29 08:48:14 -08:00
kcm net: Don't include filter.h from net/sock.h 2021-12-29 08:48:14 -08:00
key net: af_key: check encryption module availability consistency 2022-06-06 08:47:50 +02:00
l2tp l2tp: add netns refcount tracker to l2tp_dfs_seq_data 2021-12-10 06:38:27 -08:00
l3mdev l3mdev: l3mdev_master_upper_ifindex_by_index_rcu should be using netdev_master_upper_dev_get_rcu 2022-04-27 14:41:01 +02:00
lapb
llc llc: only change llc->dev when bind() succeeds 2022-03-28 10:03:22 +02:00
mac80211 mac80211: fix rx reordering with non explicit / psmp ack policy 2022-05-25 09:59:13 +02:00
mac802154
mctp mctp: defer the kfree of object mdev->addrs 2022-05-09 09:16:24 +02:00
mpls net: mpls: Fix GCC 12 warning 2022-02-10 15:29:39 +00:00
mptcp mptcp: Do TCP fallback on early DSS checksum failure 2022-05-25 14:43:09 +02:00
ncsi all: replace find_next{,_zero}_bit with find_first{,_zero}_bit where appropriate 2022-01-15 08:47:31 -08:00
netfilter netfilter: flowtable: move dst_check to packet path 2022-05-25 09:59:11 +02:00
netlabel netlabel: fix out-of-bounds memory accesses 2022-04-13 19:27:22 +02:00
netlink netlink: do not reset transport header in netlink_recvmsg() 2022-05-18 10:28:13 +02:00
netrom netrom: fix api breakage in nr_setsockopt() 2022-01-07 14:11:05 +00:00
nfc NFC: nci: fix sleep in atomic context bugs caused by nci_skb_alloc 2022-05-25 09:59:08 +02:00
nsh
openvswitch openvswitch: fix OOB access in reserve_sfa_size() 2022-04-27 14:41:14 +02:00
packet net/packet: fix packet_sock xmit return value checking 2022-04-27 14:41:00 +02:00
phonet phonet/pep: refuse to enable an unbound pipe 2021-12-20 11:49:51 +00:00
psample
qrtr bus: mhi: core: Add an API for auto queueing buffers for DL channel 2021-12-17 17:17:14 +01:00
rds net: rds: use maybe_get_net() when acquiring refcount on TCP sockets 2022-05-18 10:28:12 +02:00
rfkill rfkill: make new event layout opt-in 2022-04-08 13:57:27 +02:00
rose net: Don't include filter.h from net/sock.h 2021-12-29 08:48:14 -08:00
rxrpc rxrpc: Enable IPv6 checksums on transport socket 2022-05-12 12:32:37 +02:00
sched net/sched: act_pedit: sanitize shift argument before usage 2022-05-25 09:59:06 +02:00
sctp sctp: check asoc strreset_chunk in sctp_generate_reconf_event 2022-05-09 09:16:22 +02:00
smc net/smc: non blocking recvmsg() return -EAGAIN when no data and signal_pending 2022-05-18 10:28:16 +02:00
strparser
sunrpc SUNRPC: Ensure that the gssproxy client can start in a connected state 2022-05-18 10:28:22 +02:00
switchdev net: switchdev: add net device refcount tracker 2021-12-07 20:44:58 -08:00
tipc tipc: fix the timer expires after interval 100ms 2022-04-08 13:58:22 +02:00
tls tls: Fix context leak on tls_device_down 2022-05-18 10:28:16 +02:00
unix af_unix: Support POLLPRI for OOB. 2022-04-08 13:59:00 +02:00
vmw_vsock vsock/virtio: enable VQs early on probe 2022-04-08 13:58:32 +02:00
wireless nl80211: fix locking in nl80211_set_tx_bitrate_mask() 2022-05-25 09:59:14 +02:00
x25 net/x25: Fix null-ptr-deref caused by x25_disconnect 2022-04-08 13:58:34 +02:00
xdp xsk: Fix l2fwd for copy mode + busy poll combo 2022-05-09 09:16:17 +02:00
xfrm xfrm: rework default policy structure 2022-05-25 09:59:06 +02:00
compat.c
devres.c
Kconfig
Kconfig.debug net: add networking namespace refcount tracker 2021-12-10 06:38:26 -08:00
Makefile
socket.c net: fix documentation for kernel_getsockname 2022-02-14 14:01:19 +00:00
sysctl_net.c