kmsan_copy_page_meta(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… kmsan_copy_page_meta(9) β€” Kernel API Manual, but make it make sense ✨

okay so bestie, welcome to the kmsan_copy_page_meta page πŸ’– this is the kernel API manual, and honestly? this one's a lil cutie with a big job.


🌸 NAME 🌸

kmsan_copy_page_meta β€” literally copies KMSAN metadata between two pages, no cap 🫢


✨ SYNOPSIS ✨

void kmsan_copy_page_meta (struct page *dst , struct page *src );

that's it. that's the whole vibe check. two struct page * args, zero return value, we move πŸ¦‹


πŸŽ€ ARGUMENTS πŸŽ€

  • dst β€” the destination page, i.e. the one receiving the metadata glow-up πŸ‘‘
  • src β€” the source page, the one being copied from, the main character of this operation πŸ’«

πŸ”₯ DESCRIPTION πŸ”₯

so here's the tea β˜• β€” KMSAN takes the contents of the metadata pages for src and copies them straight into the metadata pages for dst. like handing your bestie your notes, but make it kernel memory 🧚

but wait, there's a plot twist 😭 if dst has no associated metadata pages, then literally nothing happens. nothing. zero. a whole void. it's giving shrug emoji πŸ’€

and if src has no associated metadata pages? then dst's metadata pages get unpoisoned ✨ which is the good ending, honestly 🌈

no guessing here β€” those are the only three paths in the original, and they all stay faithful πŸ’œ

πŸ¦‹ SEE ALSO πŸ¦‹

kernel file ./include/linux/kmsan.h β€” go read it, iykyk πŸ“–

and the whole kmsan friend group, because they all show up to the same party πŸŽ‰:

like, the whole squad fr fr πŸ’…


and that's the page, bestie πŸŽ€ this icon lives in ./include/linux, stamped October 2026, and goes by kmsan_copy_page_meta(9) β€” periodt πŸ’–βœ¨

πŸ“¦ where this page comes from