Re: [PATCH v2] mac80211: minstrels: fix buffer overflow in HT debugfs rc_stats

2014-10-20 Thread Johannes Berg
On Mon, 2014-10-20 at 10:54 +0200, Karl Beldan wrote: > From: Karl Beldan > > ATM an HT rc_stats line is 106 chars. > Times 8(MCS_GROUP_RATES)*3(SS)*2(GI)*2(BW) + CCK(4), i.e. x100, this is > well above the current 8192 - sizeof(*ms) currently allocated. Applied. johannes -- To unsubscribe fro

[PATCH v2] mac80211: minstrels: fix buffer overflow in HT debugfs rc_stats

2014-10-20 Thread Karl Beldan
From: Karl Beldan ATM an HT rc_stats line is 106 chars. Times 8(MCS_GROUP_RATES)*3(SS)*2(GI)*2(BW) + CCK(4), i.e. x100, this is well above the current 8192 - sizeof(*ms) currently allocated. Fix this by squeezing the output as follows (not that we're short on memory but this also improves readab