On 04/10/2013 10:41 AM, Matthew Garrett wrote:
+ if (!storage_size || size > remaining_size || + ((active_size + size + VAR_METADATA_SIZE > storage_size / 2) && + (remaining_size - size - VAR_METADATA_SIZE < storage_size / 2)))
This could overflow. (u64)32768 - (u64)32768 - VAR_METADATA_SIZE < (u64)65536 / 2 == false -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html