summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/python_version.py
diff options
context:
space:
mode:
authorzhoumin <teczm@foxmail.com>2026-03-26 12:14:03 +0300
committerTony Luck <tony.luck@intel.com>2026-05-29 18:34:12 +0300
commitc63ed6e1f5fe648a4a099b6717f679999be482ef (patch)
tree2457d6ee95c6a03110d46aa578671514a34673c7 /tools/lib/python/kdoc/python_version.py
parentd9b75e35503959a81ab175a40b9690b7c9da34a0 (diff)
downloadlinux-c63ed6e1f5fe648a4a099b6717f679999be482ef.tar.xz
EDAC/{skx_common,skx}: Fix UBSAN shift-out-of-bounds in skx_get_dimm_info
When the skx_get_dimm_attr() helper returns -EINVAL, skx_get_dimm_info() does not validate these return values before using them in a shift operation: size = ((1ull << (rows + cols + ranks)) * banks) >> (20 - 3); If all three values are -22, the shift exponent becomes -66, triggering a UBSAN shift-out-of-bounds error: UBSAN: shift-out-of-bounds in drivers/edac/skx_common.c shift exponent -66 is negative Fixes: 88a242c98740 ("EDAC, skx_common: Separate common code out from skx_edac") Signed-off-by: zhoumin <teczm@foxmail.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Link: https://patch.msgid.link/tencent_2A0CC835A18366643CBD2865B169948AB409@qq.com
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions