[PATCH v2] scs: Release kasan vmalloc poison in scs_free process

Will Deacon will at kernel.org
Thu Sep 30 01:53:31 PDT 2021


On Thu, 30 Sep 2021 16:16:13 +0800, yee.lee at mediatek.com wrote:
> From: Yee Lee <yee.lee at mediatek.com>
> 
> Since scs allocation is moved to vmalloc region, the
> shadow stack is protected by kasan_posion_vmalloc.
> However, the vfree_atomic operation needs to access
> its context for scs_free process and causes kasan error
> as the dump info below.
> 
> [...]

Applied to arm64 (for-next/scs), thanks!

[1/1] scs: Release kasan vmalloc poison in scs_free process
      https://git.kernel.org/arm64/c/528a4ab45300

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev



More information about the Linux-mediatek mailing list