Re: [PATCH] x86/xen: only unlock when USE_SPLIT_PTE_PTLOCKS is true

2020-09-29 Thread Jan Beulich
On 29.09.2020 08:48, Jason Yan wrote: > When USE_SPLIT_PTE_PTLOCKS is false, xen_pte_lock() actually do nothing > but returns NULL. So xen_pte_unlock() should not actually unlock. > Otherwise a NULL pointer dereference will be triggered. > > Fixes: 74260714c56d ("xen: lock pte pages while pinning/

[PATCH] x86/xen: only unlock when USE_SPLIT_PTE_PTLOCKS is true

2020-09-28 Thread Jason Yan
When USE_SPLIT_PTE_PTLOCKS is false, xen_pte_lock() actually do nothing but returns NULL. So xen_pte_unlock() should not actually unlock. Otherwise a NULL pointer dereference will be triggered. Fixes: 74260714c56d ("xen: lock pte pages while pinning/unpinning") Signed-off-by: Jason Yan --- arch/