summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/floppy.h
diff options
context:
space:
mode:
authorYuval Basson <ybason@marvell.com>2020-03-29 20:32:49 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-05-02 17:26:00 +0200
commit64325c2855567e9324c3dff7bf343d7faa2f8e95 (patch)
tree08da692f642d16db46e430fa4e178d9a3fdfac23 /arch/arm/include/asm/floppy.h
parentf670ee4406978e573a86d5c8d5c1827d0d3d5461 (diff)
downloadlinux-rt-64325c2855567e9324c3dff7bf343d7faa2f8e95.tar.gz
qed: Fix use after free in qed_chain_free
commit 8063f761cd7c17fc1d0018728936e0c33a25388a upstream. The qed_chain data structure was modified in commit 1a4a69751f4d ("qed: Chain support for external PBL") to support receiving an external pbl (due to iWARP FW requirements). The pages pointed to by the pbl are allocated in qed_chain_alloc and their virtual address are stored in an virtual addresses array to enable accessing and freeing the data. The physical addresses however weren't stored and were accessed directly from the external-pbl during free. Destroy-qp flow, leads to freeing the external pbl before the chain is freed, when the chain is freed it tries accessing the already freed external pbl, leading to a use-after-free. Therefore we need to store the physical addresses in additional to the virtual addresses in a new data structure. Fixes: 1a4a69751f4d ("qed: Chain support for external PBL") Signed-off-by: Michal Kalderon <mkalderon@marvell.com> Signed-off-by: Yuval Bason <ybason@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/arm/include/asm/floppy.h')
0 files changed, 0 insertions, 0 deletions