summaryrefslogtreecommitdiff
path: root/trafgen_conf.h
AgeCommit message (Expand)AuthorFilesLines
2013-06-04misc: cleanup header commentsDaniel Borkmann1-6/+0
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+55
elect name='dt' onchange='this.form.submit();'>
authorNetanel Belgazal <netanel@annapurnalabs.com>2017-02-09 15:21:33 +0200
committerDavid S. Miller <davem@davemloft.net>2017-02-09 22:27:06 -0500
commit3f6159dbfc24c5e61fb5deb9b69e0abb934609bb (patch)
treef5abffa0b354b502a1dfad022001dc096a4ae5cf /drivers
parentd81db24056132fe8b83e2fba337e9ea76675e68d (diff)
net/ena: fix potential access to freed memory during device reset
If the ena driver detects that the device is not behave as expected, it tries to reset the device. The reset flow calls ena_down, which will frees all the resources the driver allocates and then it will reset the device. This flow can cause memory corruption if the device is still writes to the driver's memory space. To overcome this potential race, move the reset before the device resources are freed. Signed-off-by: Netanel Belgazal <netanel@annapurnalabs.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/ethernet/amazon/ena/ena_netdev.c56
1 files changed, 43 insertions, 13 deletions
diff --git a/drivers/net/ethernet/amazon/ena/ena_netdev.c b/drivers/net/ethernet/amazon/ena/ena_netdev.c