summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/parallel-perf.py
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2026-07-25 09:34:46 -0700
committerGuenter Roeck <linux@roeck-us.net>2026-07-27 11:35:18 -0700
commitf46d5ab43a572b84773015a76966f5da56fc1748 (patch)
treefdcc030891974126bbbc8f25d25fed0d47c63844 /tools/perf/scripts/python/parallel-perf.py
parent00feb1cce93dab948a299b69753d99c681d45a0b (diff)
hwmon: (sht3x) Fix unaligned accesses
Sashiko reports: In sht3x_update_client(), the 16-bit temperature and humidity values are extracted from a stack-allocated byte array using be16_to_cpup(). The pointers passed to this function are calculated as buf and buf + 3. Since the difference between the two pointers is an odd number of bytes, at least one of them is guaranteed to be at an unaligned offset. This will trigger an alignment fault on strict-alignment architectures such as ARMv5 or SPARC, resulting in a kernel panic. Fix the problem by using get_unaligned_be16() instead of be16_to_cpup(), and put_unaligned_be16() instead of cpu_to_be16(). Fixes: 7c84f7f80d6f ("hwmon: add support for Sensirion SHT3x sensors") Reported-by: Sashiko <sashiko-bot@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions