FINE-GRAINED STACK PROTECTION USING CRYPTOGRAPHIC COMPUTING

    公开(公告)号:EP4020272A1

    公开(公告)日:2022-06-29

    申请号:EP21196104.0

    申请日:2021-09-10

    申请人: INTEL Corporation

    摘要: A processor includes a register to store an encoded pointer to a variable in stack memory. The encoded pointer includes an encrypted portion and a fixed plaintext portion of a memory address corresponding to the variable. The processor further includes circuitry to, in response to a memory access request for associated with the variable, decrypt the encrypted portion of the encoded pointer to obtain first upper address bits of the memory address and a memory allocation size for a variable, decode the encoded pointer to obtain the memory address, verify the memory address is valid based, at least in part on the memory allocation size, and in response to determining that the memory address is valid, allow the memory access request.