This is a note to let you know that I've just added the patch titled tools/mm/page_owner_sort.c: fix TGID output when cull=tg is used to the 6.2-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: tools-mm-page_owner_sort.c-fix-tgid-output-when-cull-tg-is-used.patch and it can be found in the queue-6.2 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let <stable@xxxxxxxxxxxxxxx> know about it. >From 9235756885e865070c4be2facda75262dbd85967 Mon Sep 17 00:00:00 2001 From: Steve Chou <steve_chou@xxxxxxxxxxx> Date: Tue, 11 Apr 2023 11:49:28 +0800 Subject: tools/mm/page_owner_sort.c: fix TGID output when cull=tg is used From: Steve Chou <steve_chou@xxxxxxxxxxx> commit 9235756885e865070c4be2facda75262dbd85967 upstream. When using cull option with 'tg' flag, the fprintf is using pid instead of tgid. It should use tgid instead. Link: https://lkml.kernel.org/r/20230411034929.2071501-1-steve_chou@xxxxxxxxxxx Fixes: 9c8a0a8e599f4a ("tools/vm/page_owner_sort.c: support for user-defined culling rules") Signed-off-by: Steve Chou <steve_chou@xxxxxxxxxxx> Cc: Jiajian Ye <yejiajian2018@xxxxxxxxxxxxxxxx> Cc: <stable@xxxxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> --- tools/vm/page_owner_sort.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/vm/page_owner_sort.c +++ b/tools/vm/page_owner_sort.c @@ -847,7 +847,7 @@ int main(int argc, char **argv) if (cull & CULL_PID || filter & FILTER_PID) fprintf(fout, ", PID %d", list[i].pid); if (cull & CULL_TGID || filter & FILTER_TGID) - fprintf(fout, ", TGID %d", list[i].pid); + fprintf(fout, ", TGID %d", list[i].tgid); if (cull & CULL_COMM || filter & FILTER_COMM) fprintf(fout, ", task_comm_name: %s", list[i].comm); if (cull & CULL_ALLOCATOR) { Patches currently in stable-queue which might be from steve_chou@xxxxxxxxxxx are queue-6.2/tools-mm-page_owner_sort.c-fix-tgid-output-when-cull-tg-is-used.patch