[PATCH 0/1][SRU][B][C] mac80211_hwsim: Timer should be initialized before device registered

You-Sheng Yang vicamo.yang at canonical.com
Wed Apr 17 08:31:10 UTC 2019


BugLink: https://bugs.launchpad.net/bugs/1825058

[Impact]
Kernel NULL pointer dereference in mac80211_hwsim.

[Fix]
a1881c9b8a1e mac80211_hwsim: Timer should be initialized before device registered

This fix has been included in 4.19.9 or above.

[Test Case]
$ git clone https://github.com/aircrack-ng/aircrack-ng
# Tested with 69a406c
$ cd aircrack-ng
$ grep 'sudo apt' README.md | bash
$ autoreconf -i
$ ./configure --with-experimental
$ make check
$ sudo bash scripts/airmon-ng.linux check kill
$ sudo make integration

# Run integration test again and check dmesg
$ sudo bash scripts/airmon-ng.linux check kill
$ sudo make integration

Verified with VMs setup locally.

[Regression Risk]
Low. Move forward data structure initialization only. This patch has
also been included in LTS stable kernel.

Vasyl Vavrychuk (1):
  mac80211_hwsim: Timer should be initialized before device registered

 drivers/net/wireless/mac80211_hwsim.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

-- 
2.20.1




More information about the kernel-team mailing list