android_kernel_motorola_sm6375/net
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Michal Kubecek 3970bc6273 UPSTREAM: Revert "net: af_key: add check for pfkey_broadcast in function pfkey_process"
[ Upstream commit 9c90c9b3e50e16d03c7f87d63e9db373974781e0 ]

This reverts commit 4dc2a5a8f6754492180741facf2a8787f2c415d7.

A non-zero return value from pfkey_broadcast() does not necessarily mean
an error occurred as this function returns -ESRCH when no registered
listener received the message. In particular, a call with
BROADCAST_PROMISC_ONLY flag and null one_sk argument can never return
zero so that this commit in fact prevents processing any PF_KEY message.
One visible effect is that racoon daemon fails to find encryption
algorithms like aes and refuses to start.

Excluding -ESRCH return value would fix this but it's not obvious that
we really want to bail out here and most other callers of
pfkey_broadcast() also ignore the return value. Also, as pointed out by
Steffen Klassert, PF_KEY is kind of deprecated and newer userspace code
should use netlink instead so that we should only disturb the code for
really important fixes.

v2: add a comment explaining why is the return value ignored

Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
(cherry picked from commit 7df12bee54)
Bug: 235429059
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Change-Id: Ica140cb11cd174eded4121d66de6a7239ee4a21d
2022-07-27 16:39:58 +02:00
..
6lowpan
9p xen/9p: use alloc/free_pages_exact() 2022-03-11 11:22:39 +01:00
802
8021q
appletalk
atm
ax25 ax25: Fix UAF bugs in ax25 timers 2022-04-20 09:19:40 +02:00
batman-adv batman-adv: Don't skb_split skbuffs with frag_list 2022-05-18 09:47:24 +02:00
bluetooth Bluetooth: Fix the creation of hdev->name 2022-05-15 19:54:47 +02:00
bpf
bpfilter
bridge net: bridge: Clear offload_fwd_mark when passing frame up bridge interface. 2022-05-25 09:14:36 +02:00
caif
can
ceph
core Merge tag 'android11-5.4.197_r00' into 'android11-5.4' 2022-07-27 11:19:48 +02:00
dcb net: dcb: disable softirqs in dcbnl_flush_dev() 2022-03-08 19:07:51 +01:00
dccp tcp: fix race condition when creating child sockets from syncookies 2022-04-27 13:50:45 +02:00
decnet
dns_resolver
dsa net: dsa: Add missing of_node_put() in dsa_port_parse_of 2022-03-23 09:12:07 +01:00
ethernet
hsr
ieee802154 net: ieee802154: Return meaningful error codes from the netlink helpers 2022-02-08 18:24:31 +01:00
ife
ipv4 This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
ipv6 This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
iucv
kcm
key UPSTREAM: Revert "net: af_key: add check for pfkey_broadcast in function pfkey_process" 2022-07-27 16:39:58 +02:00
l2tp
l3mdev l3mdev: l3mdev_master_upper_ifindex_by_index_rcu should be using netdev_master_upper_dev_get_rcu 2022-04-27 13:50:47 +02:00
lapb
llc llc: only change llc->dev when bind() succeeds 2022-03-28 08:46:48 +02:00
mac80211 This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
mac802154
mpls
ncsi
netfilter This is the 5.4.192 stable release 2022-05-09 09:42:49 +02:00
netlabel netlabel: fix out-of-bounds memory accesses 2022-04-15 14:18:35 +02:00
netlink netlink: do not reset transport header in netlink_recvmsg() 2022-05-18 09:47:25 +02:00
netrom
nfc NFC: nci: fix sleep in atomic context bugs caused by nci_skb_alloc 2022-05-25 09:14:36 +02:00
nsh
openvswitch openvswitch: fix OOB access in reserve_sfa_size() 2022-04-27 13:50:49 +02:00
packet BACKPORT: net/packet: fix slab-out-of-bounds access in packet_recvmsg() 2022-04-28 12:16:30 +00:00
phonet
psample
qrtr
rds
rfkill
rose
rxrpc rxrpc: Restore removed timer deletion 2022-04-27 13:50:46 +02:00
sched This is the 5.4.196 stable release 2022-05-25 10:40:14 +02:00
sctp This is the 5.4.192 stable release 2022-05-09 09:42:49 +02:00
smc net/smc: non blocking recvmsg() return -EAGAIN when no data and signal_pending 2022-05-18 09:47:25 +02:00
strparser
sunrpc SUNRPC: Ensure we flush any closed sockets before xs_xprt_free() 2022-05-25 09:14:34 +02:00
switchdev
tipc tipc: fix the timer expires after interval 100ms 2022-04-15 14:18:17 +02:00
tls tls: Skip tls_append_frag on zero copy size 2022-05-09 09:03:26 +02:00
unix
vmw_vsock This is the 5.4.181 stable release 2022-02-23 12:17:54 +01:00
wimax
wireless This is the 5.4.197 stable release 2022-06-06 11:06:30 +02:00
x25 net/x25: Fix null-ptr-deref caused by x25_disconnect 2022-04-15 14:18:21 +02:00
xdp
xfrm This is the 5.4.189 stable release 2022-04-19 16:29:31 +02:00
compat.c
Kconfig
Makefile
OWNERS
socket.c
sysctl_net.c