net: mvpp2: Fix affinity hint allocation
The mvpp2 driver has the curious behaviour of passing a stack variable
to irq_set_affinity_hint(), which results in the kernel exploding
the first time anyone accesses this information. News flash: userspace
does, and irqbalance will happily take the machine down. Great stuff.
An easy fix is to track the mask within the queue_vector structure,
and to make sure it has the same lifetime as the interrupt itself.
Fixes: e531f76757
("net: mvpp2: handle cases where more CPUs are available than s/w threads")
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Šī revīzija ir iekļauta:

revīziju iesūtīja
David S. Miller

vecāks
3aa8029e1a
revīzija
a6b3a3fa04
@@ -796,6 +796,7 @@ struct mvpp2_queue_vector {
|
||||
int nrxqs;
|
||||
u32 pending_cause_rx;
|
||||
struct mvpp2_port *port;
|
||||
struct cpumask *mask;
|
||||
};
|
||||
|
||||
struct mvpp2_port {
|
||||
|
Atsaukties uz šo jaunā problēmā
Block a user