Priyanka Singh
adadb7167a
EDAC/fsl_ddr: Fix bad bit shift operations
...
[ Upstream commit 9ec22ac4fe766c6abba845290d5139a3fbe0153b ]
Fix undefined behavior caused by left-shifting a negative value in the
expression:
cap_high ^ (1 << (bad_data_bit - 32))
The variable bad_data_bit ranges from 0 to 63. When it is less than 32,
bad_data_bit - 32 becomes negative, and left-shifting by a negative
value in C is undefined behavior.
Fix this by combining cap_high and cap_low into a 64-bit variable.
[ bp: Massage commit message, simplify error bits handling. ]
Fixes: ea2eb9a8b6 ("EDAC, fsl-ddr: Separate FSL DDR driver from MPC85xx")
Signed-off-by: Priyanka Singh <priyanka.singh@nxp.com>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Frank Li <Frank.Li@nxp.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Link: https://lore.kernel.org/r/20241016-imx95_edac-v3-3-86ae6fc2756a@nxp.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-14 19:44:23 +01:00
..
altera_edac.c
EDAC/altera: Fix deferred probing
2022-02-08 18:24:34 +01:00
altera_edac.h
amd64_edac.c
EDAC/amd64: Handle three rank interleaving mode
2021-11-17 09:48:36 +01:00
amd64_edac.h
amd64_edac_dbg.c
amd64_edac_inj.c
amd76x_edac.c
amd8111_edac.c
amd8111_edac.h
amd8131_edac.c
amd8131_edac.h
armada_xp_edac.c
EDAC/armada-xp: Fix output of uncorrectable error counter
2021-10-20 11:40:14 +02:00
aspeed_edac.c
bluefield_edac.c
EDAC/bluefield: Fix potential integer overflow
2024-12-14 19:44:23 +01:00
cell_edac.c
cpc925_edac.c
debugfs.c
e7xxx_edac.c
e752x_edac.c
edac_device.c
EDAC/device: Respect any driver-supplied workqueue polling value
2023-02-06 07:52:44 +01:00
edac_device.h
edac_device_sysfs.c
edac_mc.c
EDAC: Fix calculation of returned address and next offset in edac_align_ptr()
2022-02-23 11:59:59 +01:00
edac_mc.h
edac_mc_sysfs.c
edac_module.c
edac_module.h
EDAC/device: Fix period calculation in edac_device_reset_delay_period()
2023-01-18 11:42:03 +01:00
edac_pci.c
edac_pci.h
edac_pci_sysfs.c
fsl_ddr_edac.c
EDAC/fsl_ddr: Fix bad bit shift operations
2024-12-14 19:44:23 +01:00
fsl_ddr_edac.h
ghes_edac.c
highbank_l2_edac.c
highbank_mc_edac.c
EDAC/highbank: Fix memory leak in highbank_mc_probe()
2023-02-06 07:52:35 +01:00
i7core_edac.c
i10nm_base.c
EDAC/i10nm: fix refcount leak in pci_get_dev_wrapper()
2023-01-18 11:40:55 +01:00
i3000_edac.c
i3200_edac.c
i5000_edac.c
i5100_edac.c
i5400_edac.c
i7300_edac.c
i82443bxgx_edac.c
i82860_edac.c
i82875p_edac.c
i82975x_edac.c
ie31200_edac.c
Kconfig
layerscape_edac.c
Makefile
EDAC, i10nm: make skx_common.o a separate module
2024-08-19 05:33:25 +02:00
mce_amd.c
mce_amd.h
mpc85xx_edac.c
mpc85xx_edac.h
mv64x60_edac.c
mv64x60_edac.h
octeon_edac-l2c.c
octeon_edac-lmc.c
octeon_edac-pc.c
octeon_edac-pci.c
pasemi_edac.c
pnd2_edac.c
pnd2_edac.h
ppc4xx_edac.c
ppc4xx_edac.h
qcom_edac.c
EDAC/qcom: Do not pass llcc_driv_data as edac_device_ctl_info's pvt_info
2023-02-06 07:52:44 +01:00
r82600_edac.c
sb_edac.c
EDAC/sb_edac: Fix top-of-high-memory value for Broadwell/Haswell
2021-11-17 09:48:22 +01:00
sifive_edac.c
skx_base.c
EDAC, skx: Retrieve and print retry_rd_err_log registers
2024-08-19 05:33:25 +02:00
skx_common.c
EDAC, i10nm: make skx_common.o a separate module
2024-08-19 05:33:25 +02:00
skx_common.h
EDAC, i10nm: make skx_common.o a separate module
2024-08-19 05:33:25 +02:00
synopsys_edac.c
EDAC/synopsys: Read the error count from the correct register
2022-04-27 13:50:48 +02:00
thunderx_edac.c
EDAC/thunderx: Fix possible out-of-bounds string access
2024-01-25 14:34:21 -08:00
ti_edac.c
wq.c
x38_edac.c
xgene_edac.c
EDAC/xgene: Fix deferred probing
2022-02-08 18:24:34 +01:00