Search Linux Wireless

Re: [PATCH wireless-next] wifi: cfg80211: Increase netlink buffer size to 4096 bytes in nl80211_get_station()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 2025-08-22 at 10:32 +0530, Sarika Sharma wrote:
> Currently, the buffer size allocated for the get_station command in
> nl80211_get_station is NLMSG_DEFAULT_SIZE, which, in some cases, is
> insufficient to send complete output to user space and results in
> "no buffer space available" error. This is especially evident in
> setups with 3 links, where the amount of station info exceeds the
> default allocation, leading to underflows and incomplete netlink
> messages.
> 
> To fix this, increase the buffer size to 4096 bytes. This ensures
> that the nl80211_get_station() command can return complete station
> information for up to 3 links without allocation failure.
> 
> Fixes: 82d7f841d9bd ("wifi: cfg80211: extend to embed link level statistics in NL message")
> Signed-off-by: Sarika Sharma <quic_sarishar@xxxxxxxxxxx>
> ---
> While this static increase is a practical short-term solution

We haven't released this code, so we don't really need a short-term
solution? We could even just disable it from 6.17 instead.

So please let's see how big a real fix would be, or maybe we revert
82d7f841d9bd in 6.17 and do some other fixes for 6.18?

johannes





[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux