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 25A4627144B for ; Wed, 1 Jul 2026 03:42:03 +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=1782877324; cv=none; b=dsLK3DRUgHr6MZWst6wsbWMCXKzCyLk5cWbruFR1r0hElovAAQtwXI8mOEuWtaIs0dvMRffdd15PA+2+mFSCJyLwBX4fxC147FVKCssEtcTeQfhAd0hC5XXpTLvcRtfTGGWYRXqQ0qLQRrZjyAZwC9+lUqyMDkVcOFFQGfZEaDk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782877324; c=relaxed/simple; bh=Dx9J4Fd/tOYRN+sX2fySXGBMJfRUoHr/ZZRNLnYLDhA=; h=Date:To:From:Subject:Message-Id; b=RXmwNHwn3E5EagqjnjajBoWu2zbPxo3vDg4FhThmz9gP8Eq/sIUrAmiexD9Y956XgbSBeJ0OsYfJPfO0Bn6SZcVovu6mvkZZ+5a0fw+edJyYMAVt+CZWG4zPlBJEVLJRDwwBT7/pVQs1zXEFHA4R9489c/gAOVmxl5vqYaf9gEs= 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=oCVHsxNP; 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="oCVHsxNP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CD6D61F000E9; Wed, 1 Jul 2026 03:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1782877322; bh=osnTaZpc4zcM94bXync2Ol3qVgI7xNMGc0LIw7f4dtk=; h=Date:To:From:Subject; b=oCVHsxNP+p4Uk+u191YKct8Pf/9TAj3dL4SxbZNceMPbQyOLRIigIoF4a7wSBwyez geUYpe5cLYmjCRL8xaqjzXB+K9RJMeqC5cpONL22uq5N9KTj0rpxwqSJIZ0TllxwKd j6s8cTFgu5mathMaWVMR+XcPqK+qJY0+OQW+WpI8= Date: Tue, 30 Jun 2026 20:42:02 -0700 To: mm-commits@vger.kernel.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: <20260701034202.CD6D61F000E9@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: Wed, 1 Jul 2026 09:22:31 +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/20260701012239.315262-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