Commit 14540b43 authored by Michal Maloszewski's avatar Michal Maloszewski Committed by Zhang Zekun
Browse files

i40e: Fix NULL ptr dereference on VSI filter sync

stable inclusion
from stable-v4.19.218
commit 87c421ab4a43433cb009fea44bbbc77f46913e1d
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9FNFW


CVE: CVE-2021-47184

---------------------------------------------

[ Upstream commit 37d9e304 ]

Remove the reason of null pointer dereference in sync VSI filters.
Added new I40E_VSI_RELEASING flag to signalize deleting and releasing
of VSI resources to sync this thread with sync filters subtask.
Without this patch it is possible to start update the VSI filter list
after VSI is removed, that's causing a kernel oops.

Fixes: 41c445ff ("i40e: main driver core")
Signed-off-by: default avatarGrzegorz Szczurek <grzegorzx.szczurek@intel.com>
Signed-off-by: default avatarMichal Maloszewski <michal.maloszewski@intel.com>
Reviewed-by: default avatarPrzemyslaw Patynowski <przemyslawx.patynowski@intel.com>
Reviewed-by: default avatarWitold Fijalkowski <witoldx.fijalkowski@intel.com>
Reviewed-by: default avatarJaroslaw Gawin <jaroslawx.gawin@intel.com>
Reviewed-by: default avatarAleksandr Loktionov <aleksandr.loktionov@intel.com>
Tested-by: default avatarTony Brelinski <tony.brelinski@intel.com>
Signed-off-by: default avatarTony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarZhang Zekun <zhangzekun11@huawei.com>
parent 9ff44822
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment