From: Kalle Valo <hidden> Date: 2021-02-05 22:03:09
Hi,
here's a pull request to net tree, more info below. Please let me know if there
are any problems.
Kalle
The following changes since commit 0acb20a5438c36e0cf2b8bf255f314b59fcca6ef:
mt7601u: fix kernel crash unplugging the device (2021-01-25 16:02:52 +0200)
are available in the git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers.git tags/wireless-drivers-2021-02-05
for you to fetch changes up to 93a1d4791c10d443bc67044def7efee2991d48b7:
mt76: dma: fix a possible memory leak in mt76_add_fragment() (2021-01-28 09:30:37 +0200)
----------------------------------------------------------------
wireless-drivers fixes for v5.11
Third, and most likely the last, set of fixes for v5.11. Two very
small fixes.
ath9k
* fix build regression related to LEDS_CLASS
mt76
* fix a memory leak
----------------------------------------------------------------
Arnd Bergmann (1):
ath9k: fix build error with LEDS_CLASS=m
Lorenzo Bianconi (1):
mt76: dma: fix a possible memory leak in mt76_add_fragment()
drivers/net/wireless/ath/ath9k/Kconfig | 8 ++------
drivers/net/wireless/mediatek/mt76/dma.c | 8 +++++---
net/mac80211/Kconfig | 2 +-
3 files changed, 8 insertions(+), 10 deletions(-)
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-02-06 17:37:48
On Fri, 5 Feb 2021 16:34:34 +0000 (UTC) Kalle Valo wrote:
Hi,
here's a pull request to net tree, more info below. Please let me know if there
are any problems.
Pulled, thanks! One thing to confirm tho..
ath9k
* fix build regression related to LEDS_CLASS
mt76
* fix a memory leak
Lorenzo, I'm just guessing what this code does, but you're dropping a
frag without invalidating the rest of the SKB, which I presume is now
truncated? Shouldn't the skb be dropped?
From: Lorenzo Bianconi <hidden> Date: 2021-02-06 19:45:18
On Fri, 5 Feb 2021 16:34:34 +0000 (UTC) Kalle Valo wrote:
quoted
Hi,
here's a pull request to net tree, more info below. Please let me know if there
are any problems.
Pulled, thanks! One thing to confirm tho..
quoted
ath9k
* fix build regression related to LEDS_CLASS
mt76
* fix a memory leak
Lorenzo, I'm just guessing what this code does, but you're dropping a
frag without invalidating the rest of the SKB, which I presume is now
truncated? Shouldn't the skb be dropped?
I do not know if it can occur, but I guess we should even check q->rx_head
pointer before overwriting it because if the hw does not report more set to
false for last fragment we will get a memory leak as well. Something like:
@@ -578,6 +582,8 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget) done++; if (more) {+ if (q->rx_head)+ dev_kfree_skb(q->rx_head); q->rx_head = skb; continue; }
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-02-06 19:51:41
On Sat, 6 Feb 2021 20:43:25 +0100 Lorenzo Bianconi wrote:
quoted hunk
quoted
Lorenzo, I'm just guessing what this code does, but you're dropping a
frag without invalidating the rest of the SKB, which I presume is now
truncated? Shouldn't the skb be dropped?
I do not know if it can occur, but I guess we should even check q->rx_head
pointer before overwriting it because if the hw does not report more set to
false for last fragment we will get a memory leak as well. Something like:
@@ -578,6 +582,8 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget) done++; if (more) {+ if (q->rx_head)+ dev_kfree_skb(q->rx_head); q->rx_head = skb; continue; }
From: Kalle Valo <hidden> Date: 2021-02-07 05:51:15
Lorenzo Bianconi [off-list ref] writes:
quoted hunk
quoted
On Fri, 5 Feb 2021 16:34:34 +0000 (UTC) Kalle Valo wrote:
quoted
Hi,
here's a pull request to net tree, more info below. Please let me know if there
are any problems.
Pulled, thanks! One thing to confirm tho..
quoted
ath9k
* fix build regression related to LEDS_CLASS
mt76
* fix a memory leak
Lorenzo, I'm just guessing what this code does, but you're dropping a
frag without invalidating the rest of the SKB, which I presume is now
truncated? Shouldn't the skb be dropped?
I do not know if it can occur, but I guess we should even check q->rx_head
pointer before overwriting it because if the hw does not report more set to
false for last fragment we will get a memory leak as well. Something like:
@@ -578,6 +582,8 @@ mt76_dma_rx_process(struct mt76_dev *dev, struct mt76_queue *q, int budget) done++; if (more) {+ if (q->rx_head)+ dev_kfree_skb(q->rx_head); q->rx_head = skb; continue; }
Hi Kalle,
I will post two followup patches later today. I think the issues are
not harmful but it will be easier to post them to wireless-drivers
tree, agree?
Regards,
Lorenzo
Hi Kalle,
I will post two followup patches later today. I think the issues are
not harmful but it will be easier to post them to wireless-drivers
tree, agree?
Hi Kalle,
I will post two followup patches later today. I think the issues are
not harmful but it will be easier to post them to wireless-drivers
tree, agree?
Most likely Linus releases the final v5.11 next Sunday, so we are very
close to release. If this is not urgent I would rather wait for the
merge window to open (on Sunday) and apply the patch for v5.12 to avoid
a last minute rush. Would that work?
From: Jakub Kicinski <kuba@kernel.org> Date: 2021-02-08 17:53:51
On Mon, 8 Feb 2021 09:22:53 +0100 Lorenzo Bianconi wrote:
quoted
quoted
I will post two followup patches later today. I think the issues are
not harmful but it will be easier to post them to wireless-drivers
tree, agree?
Most likely Linus releases the final v5.11 next Sunday, so we are very
close to release. If this is not urgent I would rather wait for the
merge window to open (on Sunday) and apply the patch for v5.12 to avoid
a last minute rush. Would that work?