aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorBenjamin Gray <[email protected]>2024-02-12 15:50:20 +1100
committerMichael Ellerman <[email protected]>2024-05-08 00:28:16 +1000
commit295454eda97b9c5f7a64ac5c2bb827fd15efb623 (patch)
treecbea45945b708a21896c2ccba274a733bc0e6c54 /tools/testing/selftests/bpf/progs/test_autoload.c
parentad679719d7020a200c4a10248ebb3bbb374d423d (diff)
powerpc64/kasan: Pass virtual addresses to kasan_init_phys_region()
The kasan_init_phys_region() function maps shadow pages necessary for the ranges of the linear map backed by physical pages. Currently kasan_init_phys_region() is being passed physical addresses, but kasan_mem_to_shadow() expects virtual addresses. It works right now because the lower bits (12:64) of the kasan_mem_to_shadow() calculation are the same for the real and virtual addresses, so the actual PTE value is the same in the end. But virtual addresses are the intended input, so fix it. Signed-off-by: Benjamin Gray <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions