[daveh-devel:old-ucode-platform] [x86/microcode] 19fb9a6d87: UBSAN:shift-out-of-bounds_in_arch/x86/kernel/cpu/match.c
From: kernel test robot
Date: Wed Nov 19 2025 - 21:56:28 EST
Hello,
kernel test robot noticed "UBSAN:shift-out-of-bounds_in_arch/x86/kernel/cpu/match.c" on:
commit: 19fb9a6d870e83926b240ba86a3e35870fa2e578 ("x86/microcode: Add platform mask to Intel microcode version list")
https://git.kernel.org/cgit/linux/kernel/git/daveh/devel.git old-ucode-platform
in testcase: lkvs
version: lkvs-x86_64-6d7ca2c-1_20251014
with following parameters:
test: cstate-client
config: x86_64-rhel-9.4-func
compiler: gcc-14
test machine: 22 threads 1 sockets Intel(R) Core(TM) Ultra 9 185H @ 4.5GHz (Meteor Lake) with 32G memory
(please refer to attached dmesg/kmsg for entire log/backtrace)
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 <oliver.sang@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-lkp/202511200314.3033cba4-lkp@xxxxxxxxx
kern :warn : [ 0.000000] [ T0] ------------[ cut here ]------------
kern :err : [ 0.000000] [ T0] UBSAN: shift-out-of-bounds in arch/x86/kernel/cpu/match.c:80:9
kern :err : [ 0.000000] [ T0] shift exponent 128 is too large for 64-bit type 'long unsigned int'
kern :warn : [ 0.000000] [ T0] CPU: 0 UID: 0 PID: 0 Comm: swapper Not tainted 6.18.0-rc5-00007-g19fb9a6d870e #1 PREEMPT(undef)
kern :warn : [ 0.000000] [ T0] Call Trace:
kern :warn : [ 0.000000] [ T0] <TASK>
kern :warn : [ 0.000000] [ T0] ? dump_stack_lvl (lib/dump_stack.c:122)
kern :warn : [ 0.000000] [ T0] ? ubsan_epilogue (lib/ubsan.c:234 (discriminator 1))
kern :warn : [ 0.000000] [ T0] ? __ubsan_handle_shift_out_of_bounds.cold (lib/ubsan.c:494)
kern :warn : [ 0.000000] [ T0] ? __pfx_check_cpufeature_deps (arch/x86/kernel/cpu/cpuid-deps.c:172)
kern :warn : [ 0.000000] [ T0] ? x86_match_cpu.cold (arch/x86/kernel/cpu/match.c:80)
kern :warn : [ 0.000000] [ T0] ? cpu_set_bug_bits+0x18/0x1980
kern :warn : [ 0.000000] [ T0] ? early_identify_cpu+0x1d2/0x270
kern :warn : [ 0.000000] [ T0] ? setup_arch (arch/x86/kernel/setup.c:934)
kern :warn : [ 0.000000] [ T0] ? mutex_lock (arch/x86/include/asm/atomic64_64.h:101 (discriminator 5) include/linux/atomic/atomic-arch-fallback.h:4296 (discriminator 5) include/linux/atomic/atomic-long.h:1482 (discriminator 5) include/linux/atomic/atomic-instrumented.h:4458 (discriminator 5) kernel/locking/mutex.c:157 (discriminator 5) kernel/locking/mutex.c:273 (discriminator 5))
kern :warn : [ 0.000000] [ T0] ? __pfx_setup_arch (arch/x86/kernel/setup.c:881)
kern :warn : [ 0.000000] [ T0] ? _printk (kernel/printk/printk.c:2443)
kern :warn : [ 0.000000] [ T0] ? __pfx__printk (kernel/printk/printk.c:2443)
kern :warn : [ 0.000000] [ T0] ? cgroup_init_early (kernel/cgroup/cgroup.c:6327 (discriminator 3))
kern :warn : [ 0.000000] [ T0] ? start_kernel (init/main.c:934)
kern :warn : [ 0.000000] [ T0] ? x86_64_start_reservations (arch/x86/kernel/head64.c:310)
kern :warn : [ 0.000000] [ T0] ? x86_64_start_kernel (??:?)
kern :warn : [ 0.000000] [ T0] ? common_startup_64 (arch/x86/kernel/head_64.S:419)
kern :warn : [ 0.000000] [ T0] </TASK>
kern :warn : [ 0.000000] [ T0] ---[ end trace ]---
The kernel config and materials to reproduce are available at:
https://download.01.org/0day-ci/archive/20251120/202511200314.3033cba4-lkp@xxxxxxxxx
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki