Files
linux/kernel
Kumar Kartikeya Dwivedi bfa2bb9abd bpf: Fix improper int-to-ptr cast in dump_stack_cb
On 32-bit platforms, we'll try to convert a u64 directly to a pointer
type which is 32-bit, which causes the compiler to complain about cast
from an integer of a different size to a pointer type. Cast to long
before casting to the pointer type to match the pointer width.

Reported-by: kernelci.org bot <[email protected]>
Reported-by: Randy Dunlap <[email protected]>
Fixes: d7c431cafc ("bpf: Add dump_stack() analogue to print to BPF stderr")
Signed-off-by: Kumar Kartikeya Dwivedi <[email protected]>
Acked-by: Randy Dunlap <[email protected]>
Tested-by: Randy Dunlap <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
2025-07-07 08:30:15 -07:00
..
…
…
…
…
2025-02-10 16:56:58 -08:00
…
…
…
…
…
2025-05-06 13:59:00 +02:00
…
…
…
…
2024-11-03 01:28:06 -05:00
…
…
…
2025-02-12 12:12:27 +01:00
…