В ядре Linux была устранена следующая уязвимость: arm64: Don't читает GMID_EL1, когда MTE отключается __cpuinfo_store_cpu(), GMID_EL1 читает на необработанном ID_AA64PFR1_EL1, поэтому он считывает регистр даже тогда, когда ядро отключило MTE (CONFIG_ARM64_MTE=n или arm64.nomte). KVM устанавливает HCR_EL2.TID5 в этом случае, и pKVM вводит UNDEF, с которым хост не может справиться: Internal ошибка: Oops - Undefined инструкция: 0000000000000000 [1] SMP ПК : __cpuinfo_store_cpu+0xf4/0x264 Kernel паника - не синхронизация: Attempted убить простаивающую задачу! Только pKVM достигает его, и только после того, как CPU отключен и возвращен в онлайн: его реле CPU_ON устанавливает хост HCR до того, как CPU входит в EL1, в то время как простой nVHE устанавливает его на CPUHP_AP_KVM_ONLINE. Заблокируйте чтение на собственном процессоре ID_AA64PFR1_EL1 с применением переопределения командной строки и на CONFIG_ARM64_MTE, которое не отражается регистром.
Загрузка CPU сохраняет свои регистры до того, как init_cpu_features () снимет небезопасное переопределение, поэтому зажмите против аппаратного значения здесь тоже.
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: arm64: Don't read GMID_EL1 when MTE is disabled __cpuinfo_store_cpu() gates the GMID_EL1 read on the raw ID_AA64PFR1_EL1, so it reads the register even when the kernel has disabled MTE (CONFIG_ARM64_MTE=n or arm64.nomte). KVM sets HCR_EL2.TID5 in that case, and pKVM injects an UNDEF the host cannot handle: Internal error: Oops - Undefined instruction: 0000000002000000 [#1] SMP pc : __cpuinfo_store_cpu+0xf4/0x264 Kernel panic - not syncing: Attempted to kill the idle task! Only pKVM reaches it, and only after a CPU is offlined and brought back online: its CPU_ON relay sets the host HCR before the CPU enters EL1, while plain nVHE sets it at CPUHP_AP_KVM_ONLINE. Gate the read on the CPU's own ID_AA64PFR1_EL1 with the command-line override applied, and on CONFIG_ARM64_MTE, which no register reflects. The boot CPU stores its registers before init_cpu_features() strips an unsafe override, so clamp against the hardware value here too.