android_kernel_samsung_a7y1.../net
Denis Kenzior e0ee25b922 cfg80211: Purge frame registrations on iftype change
commit c1d3ad84eae35414b6b334790048406bd6301b12 upstream.

Currently frame registrations are not purged, even when changing the
interface type.  This can lead to potentially weird situations where
frames possibly not allowed on a given interface type remain registered
due to the type switching happening after registration.

The kernel currently relies on userspace apps to actually purge the
registrations themselves, this is not something that the kernel should
rely on.

Add a call to cfg80211_mlme_purge_registrations() to forcefully remove
any registrations left over prior to switching the iftype.

Cc: stable@vger.kernel.org
Signed-off-by: Denis Kenzior <denkenz@gmail.com>
Link: https://lore.kernel.org/r/20190828211110.15005-1-denkenz@gmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-07 07:40:43 +02:00
..
6lowpan
9p
802
8021q
appletalk appletalk: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:30 +02:00
atm
ax25 ax25: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:32 +02:00
batman-adv
bluetooth Revert "Bluetooth: validate BLE connection interval updates" 2020-04-07 07:35:58 +02:00
bridge bridge/mdb: remove wrong use of NLM_F_MULTI 2020-04-06 21:35:09 +02:00
caif
can
ceph
core net: Fix null de-reference of device refcount 2020-04-06 21:35:17 +02:00
dcb
dccp
decnet
dns_resolver
dsa
ethernet
hsr
ieee802154 ieee802154: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:35 +02:00
ipv4 tcp: fix tcp_ecn_withdraw_cwr() to clear TCP_ECN_QUEUE_CWR 2020-04-06 21:35:25 +02:00
ipv6 ipv6: Fix the link time qualifier of 'ping_v6_proc_exit_net()' 2020-04-06 21:35:13 +02:00
ipx
irda
iucv
key xfrm: clean up xfrm protocol checks 2020-04-06 21:34:53 +02:00
l2tp
l3mdev
lapb
llc
mac80211 mac80211: handle deauthentication/disassociation from TDLS peer 2020-04-07 07:36:45 +02:00
mac802154
mpls
mptcp
ncm
netfilter netfilter: nf_conntrack_ftp: Fix debug output 2020-04-06 21:36:46 +02:00
netlabel
netlink
netrom
nfc nfc: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:38 +02:00
openvswitch openvswitch: change type of UPCALL_PID attribute to NLA_UNSPEC 2020-04-07 07:37:13 +02:00
packet af_packet: tone down the Tx-ring unsupported spew. 2020-04-06 21:35:03 +02:00
phonet
rds net: rds: Fix NULL ptr use in rds_tcp_kill_sock 2020-04-07 07:36:35 +02:00
rfkill
rose
rxrpc
sched sch_netem: fix a divide by zero in tabledist() 2020-04-07 07:37:15 +02:00
sctp sctp: use transport pf_retrans in sctp_do_8_2_transport_strike 2020-04-06 21:35:23 +02:00
sunrpc
switchdev
tipc tipc: add NULL pointer check before calling kfree_rcu 2020-04-06 21:35:27 +02:00
unix
vmw_vsock
wimax
wireless cfg80211: Purge frame registrations on iftype change 2020-04-07 07:40:43 +02:00
x25
xfrm xfrm: clean up xfrm protocol checks 2020-04-06 21:34:53 +02:00
compat.c
Kconfig
Makefile
socket.c
sysctl_net.c