В ядре Linux устранена следующая уязвимость: arm64: RSI: fix field-spanning write warning in attestation token init Задача передается в регистрах a1 — a8. Однако копирование в ®s.a1 заставляет FORTIFY рассматривать пункт назначения как единственное поле a1, что приводит к предупреждению о расширении поля записи. [1] Overlay структура регистра SMCCC с RSI-специфическим расположением аргументов и копированием задачи в явный 64-байтный массив. Это сохраняет существующую кодировку аргумента a1-a8, давая копии объект назначения правильного размера. [1] memcpy: обнаруженная поле-охват записи (размер 64) одного поля "®s.a1" в ./arch/arm64/include/asm/rsi_cmds.h:119 (размер 8) WARNING: ./arch/arm64/include/asm/rsi_cmds.h:119 в rsi_attestation_token_init+0xdc/0xf8 [arm_cca_guest], CPU0: cat/3314
Показать оригинальное описание (EN)
In the Linux kernel, the following vulnerability has been resolved: arm64: RSI: fix field-spanning write warning in attestation token init The challenge is passed in registers a1 through a8. However, copying to ®s.a1 makes FORTIFY treat the destination as the single a1 field, resulting in a field-spanning write warning. [1] Overlay the SMCCC register structure with an RSI-specific argument layout and copy the challenge into an explicit 64-byte array. This keeps the existing a1-a8 argument encoding while giving the copy a correctly sized destination object. [1] memcpy: detected field-spanning write (size 64) of single field "®s.a1" at ./arch/arm64/include/asm/rsi_cmds.h:119 (size 8) WARNING: ./arch/arm64/include/asm/rsi_cmds.h:119 at rsi_attestation_token_init+0xdc/0xf8 [arm_cca_guest], CPU#0: cat/3314