Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1116584rwb; Thu, 10 Nov 2022 11:22:12 -0800 (PST) X-Google-Smtp-Source: AMsMyM7xhPfKp8bAjRW2SscYdQrdyLXQhu5BZcQJXJqnTTa4eFoRooc5ZJAVFLkGwRwyiRpUrNaZ X-Received: by 2002:a63:da58:0:b0:46f:fea7:4816 with SMTP id l24-20020a63da58000000b0046ffea74816mr2990244pgj.532.1668108132464; Thu, 10 Nov 2022 11:22:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668108132; cv=none; d=google.com; s=arc-20160816; b=q8OJkszWP6RohZKRvOhrgOrmeGUfDg/j+vu9sSJriNLoGvUnwTnjrYydU5AyfqaiNB +u7fQf5NhR5Q8VlfqsGDGy+J7gNbqgLhX/1nOVxVYrc8NqgwwG5eZOWP8n9sRjPwmred Mbt0ktG2c4UqY0+4qZWmyek4NapQL3L0e/3q22aWyC+Q8J6WQJ5ec2xNGo6TuaJSHKLA Z8aRuiu36p4xbGGGa0ajO+FPj3G+7P3+mEyoFU51ODzXPHJ+RoevQrr7rlWXfBOWSVgD 1uq/iMS9mB6BK/DKZOa9GWAIxCARGQWvpyAt5Mfnk0ZMq1lr9xEOoYAiiQiVfOjujSbn Al2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version:date :message-id:subject:references:in-reply-to:to:from:dkim-signature; bh=O3XMZNi79cxiAV2MWtbaxWLIggp4u8MgAli1UHEaJY4=; b=HYKU1aBLXo+0PkYrDeojTpkCvp7spo9FNza31/3UGyjLss+lsJrhfNvOJixd5qUODT B8PQjWIO0EDEmrAkUaKe8NlAYAo8sovgjLter1mEuIHmlkFYrM52VZIvp7k9/FD0cwVC yHheIg/TiyfyALDcSDi+e/SrNhR5n57CzZ0nMJGhCXCcwQNY+manfVQ2jAIZ68McnpN6 vTJxWJimv4y/PO30u+oKiu1UD51lHyn7288Hn2CFHnWKf+ND0FtZIxJBubab9DA+4hBh UGSezyWFaEYM8WFoh1nRtdmPzlKnAcXcXq082IlIRumk9bVM1lzsXQrcJ85ybwYIHGD4 E86Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NXVr4lye; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u17-20020a056a00159100b00564874e14e9si13208pfk.280.2022.11.10.11.22.00; Thu, 10 Nov 2022 11:22:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=NXVr4lye; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231322AbiKJTEk (ORCPT + 92 others); Thu, 10 Nov 2022 14:04:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48148 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231299AbiKJTE2 (ORCPT ); Thu, 10 Nov 2022 14:04:28 -0500 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0A0CC45A12 for ; Thu, 10 Nov 2022 11:04:26 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 62266CE1FE3 for ; Thu, 10 Nov 2022 19:04:25 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6071C433D7; Thu, 10 Nov 2022 19:04:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1668107063; bh=Fdos3yrig/YXWCfSadWY8NvihYdcZRISicY+GY0Ipcw=; h=From:To:In-Reply-To:References:Subject:Date:From; b=NXVr4lyeQVWvqb4XDgmn7Jfa5mZK9g9CwSwIyT45X1m4FvlPd4ROb+00w98eeXCfF tuoMDsc51DSxTIfPX7KkEZ5HPudWT5mmkVet+C07b8eYl21GAyqGWDbgrN3bO1fHrv AWk40g/Z6iEL7GggYIa3XzOQy8rYvJh5Df3lJGJRBoRrhhbw/FFyn+l80bD6q/Nx2q vmVkiPDgvn3kErJzBkkD1krpiiR9AWpGJ1+esWrksNbRKeAJvT/e+xTssYavxEiLoQ HWTvs0GyQSCywidOPwtNxklgIzEA7F7B0tUn9buV3cisDVslGfMjf0J4LB+UN2vSuY SzYEnel8JVP1g== From: Mark Brown To: pierre-louis.bossart@linux.intel.com, Junxiao Chang , alsa-devel@alsa-project.org, perex@perex.cz, lgirdwood@gmail.com, kai.vehmanen@linux.intel.com, cezary.rojewski@intel.com, linux-kernel@vger.kernel.org, furong.zhou@intel.com, tiwai@suse.com In-Reply-To: <20221109234023.3111035-1-junxiao.chang@intel.com> References: <20221109234023.3111035-1-junxiao.chang@intel.com> Subject: Re: [PATCH] ASoC: hdac_hda: fix hda pcm buffer overflow issue Message-Id: <166810706137.995851.18267350374607278167.b4-ty@kernel.org> Date: Thu, 10 Nov 2022 19:04:21 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Mailer: b4 0.10.0-dev-fc921 X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Nov 2022 07:40:23 +0800, Junxiao Chang wrote: > When KASAN is enabled, below log might be dumped with Intel EHL hardware: > [ 48.583597] ================================================================== > [ 48.585921] BUG: KASAN: slab-out-of-bounds in hdac_hda_dai_hw_params+0x20a/0x22b [snd_soc_hdac_hda] > [ 48.587995] Write of size 4 at addr ffff888103489708 by task pulseaudio/759 > > [ 48.589237] CPU: 2 PID: 759 Comm: pulseaudio Tainted: G U E 5.15.71-intel-ese-standard-lts #9 > [ 48.591272] Hardware name: Intel Corporation Elkhart Lake Embedded Platform/ElkhartLake LPDDR4x T3 CRB, BIOS EHLSFWI1.R00.4251.A01.2206130432 06/13/2022 > [ 48.593010] Call Trace: > [ 48.593648] > [ 48.593852] dump_stack_lvl+0x34/0x48 > [ 48.594404] print_address_description.constprop.0+0x1f/0x140 > [ 48.595174] ? hdac_hda_dai_hw_params+0x20a/0x22b [snd_soc_hdac_hda] > [ 48.595868] ? hdac_hda_dai_hw_params+0x20a/0x22b [snd_soc_hdac_hda] > [ 48.596519] kasan_report.cold+0x7f/0x11b > [ 48.597003] ? hdac_hda_dai_hw_params+0x20a/0x22b [snd_soc_hdac_hda] > [ 48.597885] hdac_hda_dai_hw_params+0x20a/0x22b [snd_soc_hdac_hda] > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: hdac_hda: fix hda pcm buffer overflow issue commit: 37882100cd0629d830db430a8cee0b724fe1fea3 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark