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

Connor Kuehl connor.kuehl at canonical.com
Mon Jul 1 22:16:14 UTC 2019


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(+)

-- 
2.20.1




More information about the kernel-team mailing list