This is a note to let you know that I've just added the patch titled platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes to the 5.14-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: platform-mellanox-mlxreg-io-fix-read-access-of-n-bytes-size-attributes.patch and it can be found in the queue-5.14 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From db9cc7d6f95e7d89b0ce57e785cfd9d67a7505d8 Mon Sep 17 00:00:00 2001 From: Vadim Pasternak <vadimp@xxxxxxxxxx> Date: Mon, 27 Sep 2021 17:22:14 +0300 Subject: platform/mellanox: mlxreg-io: Fix read access of n-bytes size attributes From: Vadim Pasternak <vadimp@xxxxxxxxxx> commit db9cc7d6f95e7d89b0ce57e785cfd9d67a7505d8 upstream. Fix shift argument for function rol32(). It should be provided in bits, while was provided in bytes. Fixes: 86148190a7db ("platform/mellanox: mlxreg-io: Add support for complex attributes") Signed-off-by: Vadim Pasternak <vadimp@xxxxxxxxxx> Link: https://lore.kernel.org/r/20210927142214.2613929-3-vadimp@xxxxxxxxxx Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- drivers/platform/mellanox/mlxreg-io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/platform/mellanox/mlxreg-io.c +++ b/drivers/platform/mellanox/mlxreg-io.c @@ -98,7 +98,7 @@ mlxreg_io_get_reg(void *regmap, struct m if (ret) goto access_error; - *regval |= rol32(val, regsize * i); + *regval |= rol32(val, regsize * i * 8); } } Patches currently in stable-queue which might be from vadimp@xxxxxxxxxx are queue-5.14/mlxsw-thermal-fix-out-of-bounds-memory-accesses.patch queue-5.14/platform-mellanox-mlxreg-io-fix-argument-base-in-kstrtou32-call.patch queue-5.14/platform-mellanox-mlxreg-io-fix-read-access-of-n-bytes-size-attributes.patch