ld.lld: error: call to __read_overflow marked "dontcall-error": detected read beyond size of object (1st parameter)

kernel test robot
2025-04-03T02:50:30Z

head: a1b5bd45d4ee58af4f56e49497b8c3db96d8f8a3
commit: 6ee149f61bcce39692f0335a01e99355d4cec8da kunit/fortify: Replace "volatile" with OPTIMIZER_HIDE_VAR()
date: 3 weeks ago
config: riscv-randconfig-002-20250403 (https://download.01.org/0day-ci/archive/20250403/202504031024.1XGGoOYN-lkp@intel.com/config)
compiler: clang version 21.0.0git (https://github.com/llvm/llvm-project 7eccafc3c84606587a175c0a8c1ebea6e4fb21cd)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250403/202504031024.1XGGoOYN-lkp@intel.com/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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202504031024.1XGGoOYN-lkp@intel.com/