APPLIED: [SRU][Cosmic][PATCH 0/1] Fix sk_buff memory leak in command fast-track

Kleber Souza kleber.souza at canonical.com
Tue Jul 2 08:07:48 UTC 2019


On 7/2/19 12:16 AM, Connor Kuehl wrote:
> BugLink: https://bugs.launchpad.net/bugs/1831751
> 
> [Impact] 
> 
>  * Upstream commit 0a9f8f0a1ba9 "rtlwifi: fix btmpinfo timeout while processing C2H_BT_INFO" fixed a timeout message by adding a fast path which allowed commands to skip the queue to be processed immediately. However, the fast path doesn't free the sk_buff when it completes; this results in a memory leak when commands are fast-tracked.
> 
> [Test Case]
> 
>  * This was tested in the bug report on a RTL8723BE card. As the system is running, a memory leak is observed until it gets to the point where a reboot is necessary.
> 
>  * The following patch was applied and the ever-increasing memory consumption no longer experienced.
> 
> [Regression Potential] 
> 
>  * This was fixed in Linux 4.20 and participants in both the LP bug and the Github issue reports [1] have reported positive test results with just this patch applied.
> 
> [1] https://github.com/lwfinger/rtlwifi_new/issues/401
> 
> Larry Finger (1):
>   rtlwifi: Fix leak of skb when processing C2H_BT_INFO
> 
>  drivers/net/wireless/realtek/rtlwifi/base.c | 1 +
>  1 file changed, 1 insertion(+)
> 

Applied to cosmic/master-next branch.

Thanks,
Kleber



More information about the kernel-team mailing list