From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751696AbeCNX6v (ORCPT ); Wed, 14 Mar 2018 19:58:51 -0400 Received: from mail.skyhub.de ([5.9.137.197]:59014 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751426AbeCNX6u (ORCPT ); Wed, 14 Mar 2018 19:58:50 -0400 Date: Thu, 15 Mar 2018 00:58:12 +0100 From: Borislav Petkov To: "Maciej S. Szmigiero" Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3 3/9] x86/microcode/AMD: install_equiv_cpu_table() should not return (signed) int Message-ID: <20180314235812.GB11061@pd.tnic> References: <20180314175824.GG16605@pd.tnic> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.3 (2018-01-21) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 15, 2018 at 12:46:05AM +0100, Maciej S. Szmigiero wrote: > The maximum possible value returned by install_equiv_cpu_table() of > UINT_MAX + CONTAINER_HDR_SZ comes from the maximum value of this 'size' > variable (that is UINT_MAX) plus the header length of CONTAINER_HDR_SZ. > This won't fit in 'int' type, hence this patch. So make it fit by returning an unsigned int. -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.