diff mbox series

[06/38] backports: increase cfg80211 wiphy padding

Message ID 20221011230356.91df2a084485.Icfb8295a72f19a169bef7ecee762ed693f923e65@changeid (mailing list archive)
State New, archived
Headers show
Series backports updates | expand

Commit Message

Johannes Berg Oct. 11, 2022, 9:04 p.m. UTC
From: Luca Coelho <luciano.coelho@intel.com>

The wiphy structure has grown over the 2048 bytes that we originally
used in the wiphy padding, it's 2080 bytes long as of v5.11.  Increase
the padding to an arbitrary higher round number, 2304.  We will end up
using 2 pages now, so we could go as high as a page's length, but keep
it lower so that when we grow over 2304 again we notice and can reasses
the issue.

type=maint
ticket=none

Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Reviewed-on: https://git-ger-8.devtools.intel.com/gerrit/140382
---
 patches/0003-cfg80211-wext-padding/include_net_cfg80211.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/patches/0003-cfg80211-wext-padding/include_net_cfg80211.patch b/patches/0003-cfg80211-wext-padding/include_net_cfg80211.patch
index a804077414d9..8f9b0985b769 100644
--- a/patches/0003-cfg80211-wext-padding/include_net_cfg80211.patch
+++ b/patches/0003-cfg80211-wext-padding/include_net_cfg80211.patch
@@ -4,7 +4,7 @@ 
  
  	/* assign these fields before you register the wiphy */
  
-+#define WIPHY_COMPAT_PAD_SIZE	2048
++#define WIPHY_COMPAT_PAD_SIZE	2304
 +	u8 padding[WIPHY_COMPAT_PAD_SIZE];
 +
  	u8 perm_addr[ETH_ALEN];