* drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:69 gfxhub_v12_1_xcc_setup_vm_pt_regs() error: buffer overflow 'adev->vmhub' 13 <= s32max
@ 2026-08-08 7:43 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-08-08 7:43 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Hawking Zhang <Hawking.Zhang@amd.com>
CC: Alex Deucher <alexander.deucher@amd.com>
CC: Le Ma <le.ma@amd.com>
CC: Likun Gao <Likun.Gao@amd.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: bcc44b6785f216eb939226ade6e3910baa30516b
commit: e87bfaf55e7311b9587c0163060c6939c36f077e drm/amdgpu: Add gfxhub v12_1 support
date: 8 months ago
:::::: branch date: 8 hours ago
:::::: commit date: 8 months ago
config: i386-randconfig-141-20260806 (https://download.01.org/0day-ci/archive/20260808/202608081419.1cCE4164-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
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
| Fixes: e87bfaf55e73 ("drm/amdgpu: Add gfxhub v12_1 support")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202608081419.1cCE4164-lkp@intel.com/
smatch warnings:
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:69 gfxhub_v12_1_xcc_setup_vm_pt_regs() error: buffer overflow 'adev->vmhub' 13 <= s32max
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:412 gfxhub_v12_1_xcc_setup_vmid_config() error: buffer overflow 'adev->vmhub' 13 <= s32max
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:470 gfxhub_v12_1_xcc_program_invalidation() error: buffer overflow 'adev->vmhub' 13 <= u32max
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:539 gfxhub_v12_1_xcc_gart_disable() error: buffer overflow 'adev->vmhub' 13 <= u32max
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:752 gfxhub_v12_1_xcc_init() error: buffer overflow 'adev->vmhub' 13 <= s32max
vim +69 drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c
e87bfaf55e7311 Hawking Zhang 2025-02-24 59
e87bfaf55e7311 Hawking Zhang 2025-02-24 60 static void gfxhub_v12_1_xcc_setup_vm_pt_regs(struct amdgpu_device *adev,
e87bfaf55e7311 Hawking Zhang 2025-02-24 61 uint32_t vmid,
e87bfaf55e7311 Hawking Zhang 2025-02-24 62 uint64_t page_table_base,
e87bfaf55e7311 Hawking Zhang 2025-02-24 63 uint32_t xcc_mask)
e87bfaf55e7311 Hawking Zhang 2025-02-24 64 {
e87bfaf55e7311 Hawking Zhang 2025-02-24 65 struct amdgpu_vmhub *hub;
e87bfaf55e7311 Hawking Zhang 2025-02-24 66 int i;
e87bfaf55e7311 Hawking Zhang 2025-02-24 67
e87bfaf55e7311 Hawking Zhang 2025-02-24 68 for_each_inst(i, xcc_mask) {
e87bfaf55e7311 Hawking Zhang 2025-02-24 @69 hub = &adev->vmhub[AMDGPU_GFXHUB(i)];
e87bfaf55e7311 Hawking Zhang 2025-02-24 70 WREG32_SOC15_OFFSET(GC, GET_INST(GC, i),
e87bfaf55e7311 Hawking Zhang 2025-02-24 71 regGCVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32,
e87bfaf55e7311 Hawking Zhang 2025-02-24 72 hub->ctx_addr_distance * vmid,
e87bfaf55e7311 Hawking Zhang 2025-02-24 73 lower_32_bits(page_table_base));
e87bfaf55e7311 Hawking Zhang 2025-02-24 74
e87bfaf55e7311 Hawking Zhang 2025-02-24 75 WREG32_SOC15_OFFSET(GC, GET_INST(GC, i),
e87bfaf55e7311 Hawking Zhang 2025-02-24 76 regGCVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32,
e87bfaf55e7311 Hawking Zhang 2025-02-24 77 hub->ctx_addr_distance * vmid,
e87bfaf55e7311 Hawking Zhang 2025-02-24 78 upper_32_bits(page_table_base));
e87bfaf55e7311 Hawking Zhang 2025-02-24 79 }
e87bfaf55e7311 Hawking Zhang 2025-02-24 80 }
e87bfaf55e7311 Hawking Zhang 2025-02-24 81
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:69 gfxhub_v12_1_xcc_setup_vm_pt_regs() error: buffer overflow 'adev->vmhub' 13 <= s32max
@ 2026-08-06 18:39 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-08-06 18:39 UTC (permalink / raw)
To: oe-kbuild; +Cc: lkp, Dan Carpenter
BCC: lkp@intel.com
CC: oe-kbuild-all@lists.linux.dev
CC: linux-kernel@vger.kernel.org
TO: Hawking Zhang <Hawking.Zhang@amd.com>
CC: Alex Deucher <alexander.deucher@amd.com>
CC: Le Ma <le.ma@amd.com>
CC: Likun Gao <Likun.Gao@amd.com>
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fcaeecb8b0cd44f77d03b28de0671258d4db18f8
commit: e87bfaf55e7311b9587c0163060c6939c36f077e drm/amdgpu: Add gfxhub v12_1 support
date: 8 months ago
:::::: branch date: 3 hours ago
:::::: commit date: 8 months ago
config: i386-randconfig-141-20260806 (https://download.01.org/0day-ci/archive/20260807/202608070257.3q9GpqXZ-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
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
| Fixes: e87bfaf55e73 ("drm/amdgpu: Add gfxhub v12_1 support")
| Reported-by: kernel test robot <lkp@intel.com>
| Reported-by: Dan Carpenter <error27@gmail.com>
| Closes: https://lore.kernel.org/r/202608070257.3q9GpqXZ-lkp@intel.com/
smatch warnings:
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:69 gfxhub_v12_1_xcc_setup_vm_pt_regs() error: buffer overflow 'adev->vmhub' 13 <= s32max
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:412 gfxhub_v12_1_xcc_setup_vmid_config() error: buffer overflow 'adev->vmhub' 13 <= s32max
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:470 gfxhub_v12_1_xcc_program_invalidation() error: buffer overflow 'adev->vmhub' 13 <= u32max
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:539 gfxhub_v12_1_xcc_gart_disable() error: buffer overflow 'adev->vmhub' 13 <= u32max
drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:752 gfxhub_v12_1_xcc_init() error: buffer overflow 'adev->vmhub' 13 <= s32max
vim +69 drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c
e87bfaf55e7311b Hawking Zhang 2025-02-24 59
e87bfaf55e7311b Hawking Zhang 2025-02-24 60 static void gfxhub_v12_1_xcc_setup_vm_pt_regs(struct amdgpu_device *adev,
e87bfaf55e7311b Hawking Zhang 2025-02-24 61 uint32_t vmid,
e87bfaf55e7311b Hawking Zhang 2025-02-24 62 uint64_t page_table_base,
e87bfaf55e7311b Hawking Zhang 2025-02-24 63 uint32_t xcc_mask)
e87bfaf55e7311b Hawking Zhang 2025-02-24 64 {
e87bfaf55e7311b Hawking Zhang 2025-02-24 65 struct amdgpu_vmhub *hub;
e87bfaf55e7311b Hawking Zhang 2025-02-24 66 int i;
e87bfaf55e7311b Hawking Zhang 2025-02-24 67
e87bfaf55e7311b Hawking Zhang 2025-02-24 68 for_each_inst(i, xcc_mask) {
e87bfaf55e7311b Hawking Zhang 2025-02-24 @69 hub = &adev->vmhub[AMDGPU_GFXHUB(i)];
e87bfaf55e7311b Hawking Zhang 2025-02-24 70 WREG32_SOC15_OFFSET(GC, GET_INST(GC, i),
e87bfaf55e7311b Hawking Zhang 2025-02-24 71 regGCVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_LO32,
e87bfaf55e7311b Hawking Zhang 2025-02-24 72 hub->ctx_addr_distance * vmid,
e87bfaf55e7311b Hawking Zhang 2025-02-24 73 lower_32_bits(page_table_base));
e87bfaf55e7311b Hawking Zhang 2025-02-24 74
e87bfaf55e7311b Hawking Zhang 2025-02-24 75 WREG32_SOC15_OFFSET(GC, GET_INST(GC, i),
e87bfaf55e7311b Hawking Zhang 2025-02-24 76 regGCVM_CONTEXT0_PAGE_TABLE_BASE_ADDR_HI32,
e87bfaf55e7311b Hawking Zhang 2025-02-24 77 hub->ctx_addr_distance * vmid,
e87bfaf55e7311b Hawking Zhang 2025-02-24 78 upper_32_bits(page_table_base));
e87bfaf55e7311b Hawking Zhang 2025-02-24 79 }
e87bfaf55e7311b Hawking Zhang 2025-02-24 80 }
e87bfaf55e7311b Hawking Zhang 2025-02-24 81
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-08 7:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-08 7:43 drivers/gpu/drm/amd/amdgpu/gfxhub_v12_1.c:69 gfxhub_v12_1_xcc_setup_vm_pt_regs() error: buffer overflow 'adev->vmhub' 13 <= s32max kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2026-08-06 18:39 kernel test robot
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.