From: Takashi Iwai Subject: Re: Undefined behaviour in ac97_codec.c - shift exponent 68 is too large for 32-bit type 'int' Date: Fri, 23 Nov 2018 18:11:19 +0100 Message-ID: References: <0f267366-2ecc-9a53-a5fb-d7bf29da99b4@linux.ee> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 283FC267A89 for ; Fri, 23 Nov 2018 18:11:19 +0100 (CET) In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Meelis Roos Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Fri, 23 Nov 2018 18:02:06 +0100, Meelis Roos wrote: > > >> [ 19.668078] UBSAN: Undefined behaviour in sound/pci/ac97/ac97_codec.c:836:7 > >> [ 19.668268] shift exponent 68 is too large for 32-bit type 'int' > > > > Wow, this is an old bug. > > > > The patch below should fix the problem. > > Yes, it does - thank you! > > I also found another machine (with SiS ac97 audio) that gave the same warning and the > warning is gone there too. > > Can not test actual audio since both machines are remote for now, but aplay thinks it > plays WAV files fine. > > Tested-by: Meelis Roos Good to hear. I queued the fix patch now. thanks, Takashi