OSDN Git Service

mt76: clear skb pointers from rx aggregation reorder buffer during cleanup
authorFelix Fietkau <nbd@nbd.name>
Fri, 13 Dec 2019 23:15:26 +0000 (00:15 +0100)
committerFelix Fietkau <nbd@nbd.name>
Fri, 14 Feb 2020 09:06:02 +0000 (10:06 +0100)
commit9379df2fd9234e3b67a23101c2370c99f6af6d77
treea0ee2c7a5c3cca29284905b5ea2eed5ac151d801
parentd55aa5e17461b8b423adae376978032c4a10a1d8
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>
drivers/net/wireless/mediatek/mt76/agg-rx.c