linux-stable/tools
Petre Rodan 86a53183e2 tools: iio: replace seekdir() in iio_generic_buffer
[ Upstream commit 4e6500bfa0 ]

Replace seekdir() with rewinddir() in order to fix a localized glibc bug.

One of the glibc patches that stable Gentoo is using causes an improper
directory stream positioning bug on 32bit arm. That in turn ends up as a
floating point exception in iio_generic_buffer.

The attached patch provides a fix by using an equivalent function which
should not cause trouble for other distros and is easier to reason about
in general as it obviously always goes back to to the start.

https://sourceware.org/bugzilla/show_bug.cgi?id=31212

Signed-off-by: Petre Rodan <petre.rodan@subdimension.ro>
Link: https://lore.kernel.org/r/20240108103224.3986-1-petre.rodan@subdimension.ro
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-13 13:10:08 +02:00
..
accounting
arch work around gcc bugs with 'asm goto' with outputs 2024-02-09 15:57:48 -08:00
bootconfig
bpf tools/resolve_btfids: Fix cross-compilation to non-host endianness 2024-03-26 18:16:40 -04:00
build perf cs-etm: Bump minimum OpenCSD version to ensure a bugfix is present 2023-11-27 10:21:27 -03:00
certs
cgroup samples: introduce new samples subdir for cgroup 2023-12-10 16:51:54 -08:00
counter tools/counter: Remove unneeded semicolon 2023-12-20 11:43:31 -05:00
crypto crypto: tcrypt - add script tcrypt_speed_compare.py 2023-12-29 11:25:55 +08:00
debugging
edid
firewire
firmware
gpio
hv
iio tools: iio: replace seekdir() in iio_generic_buffer 2024-04-13 13:10:08 +02:00
include tools/resolve_btfids: fix build with musl libc 2024-04-03 15:32:51 +02:00
kvm/kvm_stat
laptop
leds
lib libperf evlist: Avoid out-of-bounds access 2024-04-13 13:10:07 +02:00
memory-model
mm
net/ynl tools: ynl: fix setting presence bits in simple nests 2024-04-10 16:37:54 +02:00
objtool objtool: Fix UNWIND_HINT_{SAVE,RESTORE} across basic blocks 2024-03-26 18:16:51 -04:00
pci
pcmcia
perf perf vendor events amd: Fix Zen 4 cache latency events 2024-03-26 18:17:16 -04:00
power tools/power x86_energy_perf_policy: Fix file leak in get_pkg_num() 2024-04-13 13:10:00 +02:00
rcu
scripts
spi
testing ktest: force $buildonly = 1 for 'make_warnings_file' test type 2024-04-13 13:10:08 +02:00
thermal tools/thermal/tmon: Fix compilation warning for wrong format 2024-01-02 09:33:19 +01:00
time
tracing tools/rtla: Exit with EXIT_SUCCESS when help is invoked 2024-02-12 10:59:09 +01:00
usb
verification tools/rv: Fix curr_reactor uninitialized variable 2024-02-12 09:58:36 +01:00
virtio
wmi
workqueue
Makefile