mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
e7a86c687e
During the exit/unregistration process of the RmNet driver, the function
rmnet_unregister_real_device() is called to handle freeing the driver's
internal state and removing the RX handler on the underlying physical
device. However, the order of operations this function performs is wrong
and can lead to a use after free of the rmnet_port structure.
Before calling netdev_rx_handler_unregister(), this port structure is
freed with kfree(). If packets are received on any RmNet devices before
synchronize_net() completes, they will attempt to use this already-freed
port structure when processing the packet. As such, before cleaning up any
other internal state, the RX handler must be unregistered in order to
guarantee that no further packets will arrive on the device.
Fixes:
|
||
---|---|---|
.. | ||
emac | ||
rmnet | ||
Kconfig | ||
Makefile | ||
qca_7k_common.c | ||
qca_7k_common.h | ||
qca_7k.c | ||
qca_7k.h | ||
qca_debug.c | ||
qca_debug.h | ||
qca_spi.c | ||
qca_spi.h | ||
qca_uart.c |