Back

riscv: mm: add missing memcpy in kasan_init

Published Dec 9, 2025

Description

Hi Atish,

It seems that the panic is due to the missing memcpy during kasan_init. Could you please check whether this patch is helpful?

When doing kasan_populate, the new allocated base_pud/base_p4d should contain kasan_early_shadow_{pud, p4d}'s content. Add the missing memcpy to avoid page fault when read/write kasan shadow region.

Tested on: - qemu with sv57 and CONFIG_KASAN on. - qemu with sv48 and CONFIG_KASAN on.

Affected products

Remediation

No remediation recorded yet.

Weaknesses (0)

No CWE recorded.

References (8)

Change history (0)

No recorded changes yet.

Sources

CVE.org / MITRE

Status PUBLISHED
Assigner Linux
Published Dec 9, 2025
Updated May 11, 2026
Reserved Dec 9, 2025

CISA Vulnrichment

No data

NVD

Status Deferred
Modified Jun 17, 2026

Red Hat

Public date Dec 9, 2025
Bugzilla 2420355

ENISA EUVD

Assigner Linux
Published Dec 9, 2025
Updated May 11, 2026

GitHub

No data