|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] xen/arm: Avoid integer overflow using MIDR_IMPLEMENTOR_MASK
Hi Michal, On 25/02/2022 08:38, Michal Orzel wrote: Value of macro MIDR_IMPLEMENTOR_MASK exceeds the range of integer and can lead to overflow. Currently there is no issue as it is used in an expression implicitly casted to u32 in MIDR_IS_CPU_MODEL_RANGE. To avoid possible problems, fix the macro. Correct me if I am wrong, it sounds like this is only for hardening purpose at the moment. As this code is coming from Linux, I would prefer if we first upstream to Linux and then port to Xen once merged. NIT: We tend to use 0xffU. Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |