diff options
| author | James Smart <[email protected]> | 2021-04-11 18:31:18 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2021-04-13 01:39:13 -0400 |
| commit | 724f6b43a3492b02e2ebc88f9fb749d1405098e2 (patch) | |
| tree | eb5790b6568fe9906c92488135890e3679bc2336 /tools/perf/scripts/python | |
| parent | 304ee43238fed517faa123e034b593905b8679f8 (diff) | |
scsi: lpfc: Fix use-after-free on unused nodes after port swap
During target port swap, the swap logic ignores the DROPPED flag in the
nodes. As a node then moves into the UNUSED state, the reference count will
be dropped. If a node is later reused and moved out of the UNUSED state, an
access can result in a use-after-free assert.
Fix by having the port swap logic propagate the DROPPED flag when switching
nodes. This will avoid reference from being dropped.
Link: https://lore.kernel.org/r/[email protected]
Co-developed-by: Justin Tee <[email protected]>
Signed-off-by: Justin Tee <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions