aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorAlexandre Ghiti <[email protected]>2023-02-03 08:52:28 +0100
committerPalmer Dabbelt <[email protected]>2023-04-19 07:24:50 -0700
commit96f9d4daf745205fe869e9e5ac23199ef11c5448 (patch)
treea43a6bc1676cc775c78f6a37473d40559d0d87db /lib/test_fortify/write_overflow-strncpy-src.c
parentcd0334e1c091fc0263ccf76e81d333a2ece4f3ab (diff)
riscv: Rework kasan population functions
Our previous kasan population implementation used to have the final kasan shadow region mapped with kasan_early_shadow_page, because we did not clean the early mapping and then we had to populate the kasan region "in-place" which made the code cumbersome. So now we clear the early mapping, establish a temporary mapping while we populate the kasan shadow region with just the kernel regions that will be used. This new version uses the "generic" way of going through a page table that may be folded at runtime (avoid the XXX_next macros). It was tested with outline instrumentation on an Ubuntu kernel configuration successfully. Signed-off-by: Alexandre Ghiti <[email protected]> Reviewed-by: Björn Töpel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions