Patch "mac80211: fix fast_tx header alignment" has been added to the 4.6-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
mac80211: fix fast_tx header alignment
to the 4.6-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
mac80211-fix-fast_tx-header-alignment.patch
and it can be found in the queue-4.6 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
6fe04128f158c5ad27e7504bfdf1b12e63331bc9Mon Sep 17 00:00:00 2001
From: Felix Fietkau <[email protected]>
Date: Thu, 19 May 2016 17:34:38 +0200
Subject: mac80211: fix fast_tx header alignment
From: Felix Fietkau <[email protected]>
commit 6fe04128f158c5ad27e7504bfdf1b12e63331bc9 upstream.
The header field is defined as u8[] but also accessed as struct ieee80211_hdr. Enforce an alignment of 2 to prevent unnecessary unaligned accesses, which can be very harmful for performance on many platforms.
--- net/mac80211/sta_info.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/sta_info.h +1 -1
@@ -275,7 +275,7 @@ struct ieee80211_fast_tx {u8 sa_offs, da_offs, pn_offs;u8 band;u8 hdr[30 +2 +IEEE80211_FAST_XMIT_MAX_IV + -sizeof (rfc1042_header)]; +sizeof (rfc1042_header)]__aligned(2) ;struct rcu_head rcu_head; };
Patches currently in stable-queue which might be from [email protected] are
queue-4.6/cfg80211-fix-proto-in-ieee80211_data_to_8023-for-frames-without-llc-header.patch queue-4.6/mac80211-fix-fast_tx-header-alignment.patch