* + mm-vmalloc-improve-allocation-failure-error-messages-fix.patch added to -mm tree
@ 2021-03-31 5:10 akpm
2021-03-31 8:25 ` Stephen Rothwell
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2021-03-31 5:10 UTC (permalink / raw)
To: colin.king, dan.carpenter, mm-commits, npiggin, sfr, urezki, willy
The patch titled
Subject: mm/vmalloc: print correct vmalloc allocation size
has been added to the -mm tree. Its filename is
mm-vmalloc-improve-allocation-failure-error-messages-fix.patch
This patch should soon appear at
https://ozlabs.org/~akpm/mmots/broken-out/mm-vmalloc-improve-allocation-failure-error-messages-fix.patch
and later at
https://ozlabs.org/~akpm/mmotm/broken-out/mm-vmalloc-improve-allocation-failure-error-messages-fix.patch
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 and is updated
there every 3-4 working days
------------------------------------------------------
From: "Uladzislau Rezki (Sony)" <urezki@gmail.com>
Subject: mm/vmalloc: print correct vmalloc allocation size
On entry the area->nr_pages is not set yet and is zero, thus when an
allocation of the page-table array fails the vmalloc size will not be
reflected correctly in a error message.
Replace area->nr_pages by the nr_small_pages.
Link: https://lkml.kernel.org/r/20210329193214.GA28602@pc638.lan
Fixes: 014ccf9b888d ("mm/vmalloc: improve allocation failure error messages")
Signed-off-by: Uladzislau Rezki (Sony) <urezki@gmail.com>
Reported-by: Colin King <colin.king@canonical.com>
Cc: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Nicholas Piggin <npiggin@gmail.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
mm/vmalloc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/mm/vmalloc.c~mm-vmalloc-improve-allocation-failure-error-messages-fix
+++ a/mm/vmalloc.c
@@ -2793,7 +2793,7 @@ static void *__vmalloc_area_node(struct
warn_alloc(gfp_mask, NULL,
"vmalloc size %lu allocation failure: "
"page array size %lu allocation failed",
- area->nr_pages * PAGE_SIZE, array_size);
+ nr_small_pages * PAGE_SIZE, array_size);
return NULL;
}
_
Patches currently in -mm which might be from urezki@gmail.com are
mm-vmalloc-improve-allocation-failure-error-messages-fix.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: + mm-vmalloc-improve-allocation-failure-error-messages-fix.patch added to -mm tree
2021-03-31 5:10 + mm-vmalloc-improve-allocation-failure-error-messages-fix.patch added to -mm tree akpm
@ 2021-03-31 8:25 ` Stephen Rothwell
0 siblings, 0 replies; 2+ messages in thread
From: Stephen Rothwell @ 2021-03-31 8:25 UTC (permalink / raw)
To: akpm; +Cc: colin.king, dan.carpenter, mm-commits, npiggin, urezki, willy
[-- Attachment #1: Type: text/plain, Size: 357 bytes --]
Hi all,
On Tue, 30 Mar 2021 22:10:05 -0700 akpm@linux-foundation.org wrote:
>
> The patch titled
> Subject: mm/vmalloc: print correct vmalloc allocation size
> has been added to the -mm tree. Its filename is
> mm-vmalloc-improve-allocation-failure-error-messages-fix.patch
Added to linux-next today.
--
Cheers,
Stephen Rothwell
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-03-31 8:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-31 5:10 + mm-vmalloc-improve-allocation-failure-error-messages-fix.patch added to -mm tree akpm
2021-03-31 8:25 ` Stephen Rothwell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).