All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: oe-kbuild@lists.linux.dev
Cc: lkp@intel.com, Dan Carpenter <error27@gmail.com>
Subject: [linux-next:master 6292/10910] sound/soc/sof/amd/acp.c:663 sof_amd_handle_acp7x_sdw_wake_event() error: buffer overflow 'adata->sdw->pdev' 2 <= 3
Date: Sun, 27 Sep 2026 12:08:36 +0200	[thread overview]
Message-ID: <202609271202.N9xIiQL9-lkp@intel.com> (raw)

BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
TO: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
CC: Mark Brown <broonie@kernel.org>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   f5f84daefcd92d7a630066635ecea1433ed5eac7
commit: c9b000c028792c313861b123c508b3dc7f7114ab [6292/10910] ASoC: SOF: amd: add ACP7.B/7.F SoundWire IO IRQ handling
:::::: branch date: 2 days ago
:::::: commit date: 10 days ago
config: i386-randconfig-2200-20260927 (https://download.01.org/0day-ci/archive/20260927/202609271202.N9xIiQL9-lkp@intel.com/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
smatch: v0.5.0-9187-g5189e3fb

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202609271202.N9xIiQL9-lkp@intel.com/

New smatch warnings:
sound/soc/sof/amd/acp.c:663 sof_amd_handle_acp7x_sdw_wake_event() error: buffer overflow 'adata->sdw->pdev' 2 <= 3

Old smatch warnings:
sound/soc/sof/amd/acp.c:666 sof_amd_handle_acp7x_sdw_wake_event() error: buffer overflow 'adata->sdw->pdev' 2 <= 3

vim +663 sound/soc/sof/amd/acp.c

c9b000c028792c Vijendar Mukunda 2026-09-10  654  
c9b000c028792c Vijendar Mukunda 2026-09-10  655  static void sof_amd_handle_acp7x_sdw_wake_event(struct acp_dev_data *adata)
c9b000c028792c Vijendar Mukunda 2026-09-10  656  {
c9b000c028792c Vijendar Mukunda 2026-09-10  657  	struct amd_sdw_manager *amd_manager;
c9b000c028792c Vijendar Mukunda 2026-09-10  658  	unsigned int instance;
c9b000c028792c Vijendar Mukunda 2026-09-10  659  
c9b000c028792c Vijendar Mukunda 2026-09-10  660  	for (instance = 0; instance < ACP7X_SDW_MAX_MANAGER_COUNT; instance++) {
c9b000c028792c Vijendar Mukunda 2026-09-10  661  		if (!adata->acp7x_sdw_wake_event[instance])
c9b000c028792c Vijendar Mukunda 2026-09-10  662  			continue;
c9b000c028792c Vijendar Mukunda 2026-09-10 @663  		if (!adata->sdw->pdev[instance])
c9b000c028792c Vijendar Mukunda 2026-09-10  664  			continue;
c9b000c028792c Vijendar Mukunda 2026-09-10  665  
c9b000c028792c Vijendar Mukunda 2026-09-10  666  		amd_manager = dev_get_drvdata(&adata->sdw->pdev[instance]->dev);
c9b000c028792c Vijendar Mukunda 2026-09-10  667  		if (amd_manager)
c9b000c028792c Vijendar Mukunda 2026-09-10  668  			pm_request_resume(amd_manager->dev);
c9b000c028792c Vijendar Mukunda 2026-09-10  669  		adata->acp7x_sdw_wake_event[instance] = false;
c9b000c028792c Vijendar Mukunda 2026-09-10  670  	}
c9b000c028792c Vijendar Mukunda 2026-09-10  671  }
c9b000c028792c Vijendar Mukunda 2026-09-10  672  

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2026-09-27 10:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202609271202.N9xIiQL9-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=error27@gmail.com \
    --cc=oe-kbuild@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.