intel_th: msu: Fix vmalloced buffers
stable inclusion from stable-v5.10.137 commit 6ae2881c1d1fa0e33f4763b7c786f8ef05a9c828 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6ae2881c1d1fa0e33f4763b7c786f8ef05a9c828 -------------------------------- [ Upstream commit ac12ad3c ] After commit f5ff79fd ("dma-mapping: remove CONFIG_DMA_REMAP") there's a chance of DMA buffer getting allocated via vmalloc(), which messes up the mmapping code: > RIP: msc_mmap_fault [intel_th_msu] > Call Trace: > <TASK> > __do_fault > do_fault ... Fix this by accounting for vmalloc possibility. Fixes: ba39bd83 ("intel_th: msu: Switch over to scatterlist") Reviewed-by:Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by:
Alexander Shishkin <alexander.shishkin@linux.intel.com> Link: https://lore.kernel.org/r/20220705082637.59979-4-alexander.shishkin@linux.intel.com Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Reviewed-by:
Wei Li <liwei391@huawei.com>
Loading
Please sign in to comment