openwrt/package
Sven Eckelmann b84a07b380
mac80211: initialize sinfo in cfg80211_get_station
Most of the implementations behind cfg80211_get_station will not initialize
sinfo to zero before manipulating it. For example, the member "filled",
which indicates the filled in parts of this struct, is often only modified
by enabling certain bits in the bitfield while keeping the remaining bits
in their original state. A caller without a preinitialized sinfo.filled can
then no longer decide which parts of sinfo were filled in by
cfg80211_get_station (or actually the underlying implementations).

cfg80211_get_station must therefore take care that sinfo is initialized to
zero. Otherwise, the caller may tries to read information which was not
filled in and which must therefore also be considered uninitialized. In
batadv_v_elp_get_throughput's case, an invalid "random" expected throughput
may be stored for this neighbor and thus the B.A.T.M.A.N V algorithm may
switch to non-optimal neighbors for certain destinations.

Signed-off-by: Sven Eckelmann <sven.eckelmann@openmesh.com>
(cherry picked from commit 87493dac11)
2018-07-08 23:22:17 +02:00
..
base-files base-files: fix links in banner.failsafe 2018-06-24 22:30:32 +02:00
boot uboot-kirkwood: fix malformed boot configuration 2018-06-26 23:35:18 +02:00
devel perf: restrict libunwind dependency to archs that actually support libunwind 2018-02-25 17:03:42 +01:00
firmware ipq40xx: add support for ZyXEL WRE6606 2018-06-21 07:02:37 +02:00
kernel mac80211: initialize sinfo in cfg80211_get_station 2018-07-08 23:22:17 +02:00
libs libnfnetlink: Remove dead mirror 2018-06-14 21:47:54 +02:00
network wireguard: bump to 0.0.20180625 2018-07-07 11:27:21 +01:00
system mtd: mark as nonshared to fix FS#484 2018-06-18 21:21:54 +02:00
utils busybox: udhcpc: replace udhcpc_no_msg_dontroute patch by upstream fix 2018-06-21 22:40:54 +02:00
Makefile imagebuilder: reuse rootfs preparation from rootfs.mk 2018-03-07 09:59:08 +01:00