aboutsummaryrefslogtreecommitdiffstats
path: root/rust/helpers.c
diff options
context:
space:
mode:
authorSuren Baghdasaryan <[email protected]>2024-07-11 22:04:57 +0000
committerAndrew Morton <[email protected]>2024-07-18 04:05:19 +0000
commit6ab42fe21c84d72da752923b4bd7075344f4a362 (patch)
tree95f1df4c734dbb0607436085134dd91f64111b63 /rust/helpers.c
parentlib: reuse page_ext_data() to obtain codetag_ref (diff)
downloadkernel-6ab42fe21c84d72da752923b4bd7075344f4a362.tar.gz
kernel-6ab42fe21c84d72da752923b4bd7075344f4a362.zip
alloc_tag: fix page_ext_get/page_ext_put sequence during page splitting
pgalloc_tag_sub() might call page_ext_put() using a page different from the one used in page_ext_get() call. This does not pose an issue since page_ext_put() ignores this parameter as long as it's non-NULL but technically this is wrong. Fix it by storing the original page used in page_ext_get() and passing it to page_ext_put(). Link: https://lkml.kernel.org/r/[email protected] Fixes: be25d1d4e822 ("mm: create new codetag references during page splitting") Signed-off-by: Suren Baghdasaryan <[email protected]> Cc: Kees Cook <[email protected]> Cc: Kent Overstreet <[email protected]> Cc: Pasha Tatashin <[email protected]> Cc: Sourav Panda <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'rust/helpers.c')
0 files changed, 0 insertions, 0 deletions