From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 712B7365A19 for ; Tue, 30 Jun 2026 02:29:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782786557; cv=none; b=IUnKeAuIt9nDMCbYYwnw+aMq7R4aEW5bP+5EUChTqgB5Wa3ZpTU+WSojylhXhgNOD07HEye0VEYDrevHeyQkbgHBYQk9YRpjRtUJfRAvKLEyzn8to+YPZFqYWo5wYbYWHTcuaeHfV8wqMWKMjmLGvlmtq8OElkzFA2utYqzcNvM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782786557; c=relaxed/simple; bh=OCTXc+tJ+G+BPFuxoedF07wYyr7HWNDYieiwYBOKKjY=; h=Date:To:From:Subject:Message-Id; b=H94ofcfHGp/vSX8fUq87xgYf9REUKNRcximNcGmeRp26nfWYYAx179pGHkC2AgQLRjO5SyWHO5jhnowJ6EKX4tdsrQcoIxLcSRL4XGDmDl2w1Vikb4ys10yZldzWIfyq6gixNSX80yzHK8KfIaryWWOBQ4tmoYZ35ObyHm2ZNwY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=ZXuPJh9V; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="ZXuPJh9V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0E5781F000E9; Tue, 30 Jun 2026 02:29:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1782786556; bh=RNNR64QbiI+yoRJOyCV+4e26HtTpcYQ0KD0u9p4PAc8=; h=Date:To:From:Subject; b=ZXuPJh9V8NRcFRDBMOkVcNW+VUmI+c94vpgczBTVT4qf506j8S45YW66dBaXnpdVH U4x32hN+sk5QjM4z4mEFr4IXsrsy8Bl7z5Nq05AIBDTCw8/ahSSKVuEnemNYK5E7zT wDGGYdsiqboOfqg+QHf7hj42HfGkXFVUdsUfNOmQ= Date: Mon, 29 Jun 2026 19:29:15 -0700 To: mm-commits@vger.kernel.org,ziy@nvidia.com,vbabka@kernel.org,surenb@google.com,mhocko@suse.com,jackmanb@google.com,hannes@cmpxchg.org,ye.liu@linux.dev,akpm@linux-foundation.org From: Andrew Morton Subject: + mm-page_owner-add-missing-newline-to-count_threshold-format-string.patch added to mm-unstable branch Message-Id: <20260630022916.0E5781F000E9@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: mm/page_owner: add missing newline to count_threshold format string has been added to the -mm mm-unstable branch. Its filename is mm-page_owner-add-missing-newline-to-count_threshold-format-string.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-page_owner-add-missing-newline-to-count_threshold-format-string.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: Ye Liu Subject: mm/page_owner: add missing newline to count_threshold format string Date: Tue, 30 Jun 2026 09:53:22 +0800 The DEFINE_SIMPLE_ATTRIBUTE format string for page_owner_threshold_fops is missing a trailing \n. simple_attr_read() uses scnprintf() with the format string, which does not append a newline, so reading /sys/kernel/debug/page_owner_stacks/count_threshold produces output without a terminating newline. Add the missing \n to match the standard debugfs attribute convention. Link: https://lore.kernel.org/20260630015331.147174-6-ye.liu@linux.dev Signed-off-by: Ye Liu Reviewed-by: Zi Yan Reviewed-by: Vlastimil Babka (SUSE) Cc: Brendan Jackman Cc: Johannes Weiner Cc: Michal Hocko Cc: Suren Baghdasaryan Signed-off-by: Andrew Morton --- mm/page_owner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/page_owner.c~mm-page_owner-add-missing-newline-to-count_threshold-format-string +++ a/mm/page_owner.c @@ -974,7 +974,7 @@ static int page_owner_threshold_set(void } DEFINE_SIMPLE_ATTRIBUTE(page_owner_threshold_fops, &page_owner_threshold_get, - &page_owner_threshold_set, "%llu"); + &page_owner_threshold_set, "%llu\n"); static int __init pageowner_init(void) _ Patches currently in -mm which might be from ye.liu@linux.dev are mm-page_owner-extract-skip_buddy_pages-helper-to-unify-buddy-page-skipping.patch mm-page_owner-add-mr_never-to-enum-migrate_reason-and-use-it-for-last_migrate_reason.patch mm-use-enum-migrate_reason-instead-of-int-for-migration-reason-parameters.patch mm-page_owner-hoist-config_memcg-to-function-level-for-print_page_owner_memcg.patch mm-page_owner-add-missing-newline-to-count_threshold-format-string.patch mm-page_owner-move-free_ts_nsec-output-to-free-section-in-__dump_page_owner.patch mm-page_owner-drop-redundant-page_owner-prefix-from-static-symbols.patch mm-page_owner-clamp-skip_buddy_pages-pfn-advance-at-max_order_nr_pages-boundary.patch mm-page_owner-use-memcg_data-snapshot-instead-of-pagememcgkmem-to-avoid-toctou-vm_bug_on.patch