aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/gecko.py
diff options
context:
space:
mode:
authorIgor Russkikh <[email protected]>2023-12-13 09:40:44 +0000
committerPaolo Abeni <[email protected]>2023-12-14 11:10:59 +0000
commit7bb26ea74aa86fdf894b7dbd8c5712c5b4187da7 (patch)
tree8f07f7db1c19ddf79d6d342bd43d347aa41a5cac /tools/perf/scripts/python/gecko.py
parentappletalk: Fix Use-After-Free in atalk_ioctl (diff)
downloadkernel-7bb26ea74aa86fdf894b7dbd8c5712c5b4187da7.tar.gz
kernel-7bb26ea74aa86fdf894b7dbd8c5712c5b4187da7.zip
net: atlantic: fix double free in ring reinit logic
Driver has a logic leak in ring data allocation/free, where double free may happen in aq_ring_free if system is under stress and driver init/deinit is happening. The probability is higher to get this during suspend/resume cycle. Verification was done simulating same conditions with stress -m 2000 --vm-bytes 20M --vm-hang 10 --backoff 1000 while true; do sudo ifconfig enp1s0 down; sudo ifconfig enp1s0 up; done Fixed by explicitly clearing pointers to NULL on deallocation Fixes: 018423e90bee ("net: ethernet: aquantia: Add ring support code") Reported-by: Linus Torvalds <[email protected]> Closes: https://lore.kernel.org/netdev/CAHk-=wiZZi7FcvqVSUirHBjx0bBUZ4dFrMDVLc3+3HCrtq0rBA@mail.gmail.com/ Signed-off-by: Igor Russkikh <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/gecko.py')
0 files changed, 0 insertions, 0 deletions