Re: [PATCH] ACPI: IORT: validate RMR node array bounds
kernel test robot <[email protected]> Wed, 5 Aug 2026 00:44:27 +0200
| Newsgroups | gmane.linux.acpi.devel,gmane.linux.ports.arm.kernel,gmane.linux.kernel |
|---|---|
| Message-ID | <[email protected]> |
Hi Pengpeng, kernel test robot noticed the following build warnings: [auto build test WARNING on rafael-pm/linux-next] [also build test WARNING on rafael-pm/bleeding-edge linus/master v7.2-rc6 next-20260804] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Pengpeng-Hou/ACPI-IORT-validate-RMR-node-array-bounds/20260804-123552 base: https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next patch link: https://lore.kernel.org/r/20260706094300.82618-1-pengpeng%40iscas.ac.cn patch subject: [PATCH] ACPI: IORT: validate RMR node array bounds config: arm64-allnoconfig-bpf (https://download.01.org/0day-ci/archive/20260805/[email protected]/config) compiler: aarch64-linux-gnu-gcc (Debian 14.2.0-19) 14.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260805/[email protected]/reproduce) 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 <[email protected]> | Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ All warnings (new ones prefixed by >>): >> drivers/acpi/arm64/iort.c:199:13: warning: 'iort_rmr_node_valid' defined but not used [-Wunused-function] 199 | static bool iort_rmr_node_valid(struct acpi_iort_node *node) | ^~~~~~~~~~~~~~~~~~~ vim +/iort_rmr_node_valid +199 drivers/acpi/arm64/iort.c 198 > 199 static bool iort_rmr_node_valid(struct acpi_iort_node *node) 200 { 201 struct acpi_iort_rmr *rmr; 202 203 if (node->length < sizeof(*node) + sizeof(*rmr)) { 204 pr_err(FW_BUG "Truncated RMR node in IORT table\n"); 205 return false; 206 } 207 208 rmr = (struct acpi_iort_rmr *)node->node_data; 209 return iort_node_array_valid(node, rmr->rmr_offset, rmr->rmr_count, 210 sizeof(struct acpi_iort_rmr_desc), 211 sizeof(*node) + sizeof(*rmr), 212 "RMR descriptor"); 213 } 214 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki