Home
last modified time | relevance | path

Searched hist:d55aa5e1 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/wireless/mediatek/mt76/mt7603/
H A Ddma.cd55aa5e1 Sat Dec 21 09:46:53 CST 2019 Felix Fietkau <nbd@nbd.name> mt76: mt7603: fix input validation issues for powersave-filtered frames

Before extracting the tid out of the packet, check if it was qos-data.
Only accept tid values 0-7
Also, avoid accepting the hardware queue as skb queue mapping, it could
lead to an overrun. Instead, derive the hardware queue from the tid number,
in order to avoid issues with packets being filtered multiple times.
This also fixes a mismatch between hardware and software queue indexes.

Signed-off-by: Felix Fietkau <nbd@nbd.name>
d55aa5e1 Sat Dec 21 09:46:53 CST 2019 Felix Fietkau <nbd@nbd.name> mt76: mt7603: fix input validation issues for powersave-filtered frames

Before extracting the tid out of the packet, check if it was qos-data.
Only accept tid values 0-7
Also, avoid accepting the hardware queue as skb queue mapping, it could
lead to an overrun. Instead, derive the hardware queue from the tid number,
in order to avoid issues with packets being filtered multiple times.
This also fixes a mismatch between hardware and software queue indexes.

Signed-off-by: Felix Fietkau <nbd@nbd.name>