• Suren Baghdasaryan's avatar
    mm: create new codetag references during page splitting · be25d1d4
    Suren Baghdasaryan authored
    When a high-order page is split into smaller ones, each newly split page
    should get its codetag.  After the split each split page will be
    referencing the original codetag.  The codetag's "bytes" counter remains
    the same because the amount of allocated memory has not changed, however
    the "calls" counter gets increased to keep the counter correct when these
    individual pages get freed.
    
    Link: https://lkml.kernel.org/r/20240321163705.3067592-20-surenb@google.comSigned-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
    Reviewed-by: default avatarVlastimil Babka <vbabka@suse.cz>
    Tested-by: default avatarKees Cook <keescook@chromium.org>
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: Alex Gaynor <alex.gaynor@gmail.com>
    Cc: Alice Ryhl <aliceryhl@google.com>
    Cc: Andreas Hindborg <a.hindborg@samsung.com>
    Cc: Benno Lossin <benno.lossin@proton.me>
    Cc: "Björn Roy Baron" <bjorn3_gh@protonmail.com>
    Cc: Boqun Feng <boqun.feng@gmail.com>
    Cc: Christoph Lameter <cl@linux.com>
    Cc: Dennis Zhou <dennis@kernel.org>
    Cc: Gary Guo <gary@garyguo.net>
    Cc: Kent Overstreet <kent.overstreet@linux.dev>
    Cc: Miguel Ojeda <ojeda@kernel.org>
    Cc: Pasha Tatashin <pasha.tatashin@soleen.com>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Tejun Heo <tj@kernel.org>
    Cc: Wedson Almeida Filho <wedsonaf@gmail.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    be25d1d4
huge_memory.c 101 KB