On Wed, Apr 09, 2025 at 03:31:57PM -0700, Suren Baghdasaryan wrote:
On Wed, Apr 9, 2025 at 3:10 PM Kent Overstreet kent.overstreet@linux.dev wrote:
On Wed, Apr 09, 2025 at 02:12:40PM -0700, Andrew Morton wrote:
The patch titled Subject: alloc_tag: handle incomplete bulk allocations in vm_module_tags_populate has been added to the -mm mm-hotfixes-unstable branch. Its filename is alloc_tag-handle-incomplete-bulk-allocations-in-vm_module_tags_populate.patch
This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches...
This patch will later appear in the mm-hotfixes-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 the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days
I don't think we want to rush this patch, given that it's not fixing an actual crash.
It's not designed to fix a crash. The issue is that whenever tags require more than one page and CONFIG_PAGE_OWNER is enabled, memory allocation profiling gets disabled. I missed the fact that alloc_pages_bulk_node() can return less number of pages than requested and this patch fixes that.
That's my point; "allocation profiling gets silently disabled" is much less severe than the crash we're chasing.
I just want to make sure we're not introducing new things while we're chasing more severe bugs, although the patch does look simple enough.