aboutsummaryrefslogtreecommitdiff
path: root/Documentation/admin-guide
diff options
context:
space:
mode:
authorGravatar Barry Song <21cnbao@gmail.com> 2023-11-14 16:42:02 +1300
committerGravatar Andrew Morton <akpm@linux-foundation.org> 2023-12-10 16:51:40 -0800
commit1b5c65b64cd417c801945b26a2a50c4d4eefaec8 (patch)
tree29d4cda85feb7114ebc48b48a6b1483e47cf2f52 /Documentation/admin-guide
parentDocumentation/mm: drop pte_bad() descriptions from arch page table helpers (diff)
downloadlinux-1b5c65b64cd417c801945b26a2a50c4d4eefaec8.tar.gz
linux-1b5c65b64cd417c801945b26a2a50c4d4eefaec8.tar.bz2
linux-1b5c65b64cd417c801945b26a2a50c4d4eefaec8.zip
mm/page_owner: record and dump free_pid and free_tgid
While investigating some complex memory allocation and free bugs especially in multi-processes and multi-threads cases, from time to time, I feel the free stack isn't sufficient as a page can be freed by processes or threads other than the one allocating it. And other processes and threads which free the page often have the exactly same free stack with the one allocating the page. We can't know who free the page only through the free stack though the current page_owner does tell us the pid and tgid of the one allocating the page. This makes the bug investigation often hard. So this patch adds free pid and tgid in page_owner, so that we can easily figure out if the freeing is crossing processes or threads. Link: https://lkml.kernel.org/r/20231114034202.73098-1-v-songbaohua@oppo.com Signed-off-by: Barry Song <v-songbaohua@oppo.com> Cc: Audra Mitchell <audra@redhat.com> Cc: Hyeonggon Yoo <42.hyeyoo@gmail.com> Cc: Joonsoo Kim <iamjoonsoo.kim@lge.com> Cc: Kassey Li <quic_yingangl@quicinc.com> Cc: Kemeng Shi <shikemeng@huaweicloud.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'Documentation/admin-guide')
0 files changed, 0 insertions, 0 deletions