Loading
LoongArch: Add WriteCombine shadow mapping in KASAN
Currently, the kernel couldn't boot when ARCH_IOREMAP, ARCH_WRITECOMBINE and KASAN are enabled together. Because DMW2 is used by kernel now which is configured as 0xa000000000000000 for WriteCombine, but KASAN has no segment mapping for it. This patch fix this issue. Solution: Add the relevant definitions for WriteCombine (DMW2) in KASAN. Cc: stable@vger.kernel.org Fixes: 8e02c3b7 ("LoongArch: Add writecombine support for DMW-based ioremap()") Signed-off-by:Kanglong Wang <wangkanglong@loongson.cn> Signed-off-by:
Huacai Chen <chenhuacai@loongson.cn>