rt2x00: clear IV's on start to fix AP mode regression
mainline inclusion from mainline-v5.3-rc7 commit 95844124 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I96GO9 CVE: CVE-2023-52595 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=95844124385e -------------------------------- To do not brake HW restart we should keep initialization vectors data. I assumed that on start the data is already initialized to zeros, but that not true on some scenarios and we should clear it. So add additional flag to check if we are under HW restart and clear IV's data if we are not. Patch fixes AP mode regression. Reported-and-tested-by:Emil Karlson <jekarl@iki.fi> Fixes: 710e6cc1 ("rt2800: do not nullify initialization vector data") Signed-off-by:
Stanislaw Gruszka <sgruszka@redhat.com> Signed-off-by:
Kalle Valo <kvalo@codeaurora.org> Conflicts: drivers/net/wireless/ralink/rt2x00/rt2x00dev.c Signed-off-by:
Pu Lehui <pulehui@huawei.com>
Loading
Please sign in to comment