mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
mt76: clear skb pointers from rx aggregation reorder buffer during cleanup
During the cleanup of the aggregation session, a rx handler (or release timer) on another CPU might still hold a pointer to the reorder buffer and could attempt to release some packets. Clearing pointers during cleanup avoids a theoretical use-after-free bug here. Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
d55aa5e174
commit
9379df2fd9
1 changed files with 1 additions and 0 deletions
|
@ -276,6 +276,7 @@ static void mt76_rx_aggr_shutdown(struct mt76_dev *dev, struct mt76_rx_tid *tid)
|
|||
if (!skb)
|
||||
continue;
|
||||
|
||||
tid->reorder_buf[i] = NULL;
|
||||
tid->nframes--;
|
||||
dev_kfree_skb(skb);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue