* + lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.patch added to mm-unstable branch
@ 2026-06-02 0:51 Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2026-06-02 0:51 UTC (permalink / raw)
To: mm-commits, liuqiang, leon, jgg, apopple, akpm, akpm
The patch titled
Subject: lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix
has been added to the -mm mm-unstable branch. Its filename is
lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.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: Andrew Morton <akpm@linux-foundation.org>
Subject: lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix
Date: Mon Jun 1 05:49:07 PM PDT 2026
fix dmirror_devmem_fault_alloc_and_copy() retval handling
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Qiang Liu <liuqiang@kylinos.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/test_hmm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/lib/test_hmm.c~lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix
+++ a/lib/test_hmm.c
@@ -1167,9 +1167,9 @@ static int dmirror_migrate_to_system(str
goto out;
pr_debug("Migrating from device mem to sys mem\n");
- ret = dmirror_devmem_fault_alloc_and_copy(&args, dmirror);
- if (ret) {
+ if (dmirror_devmem_fault_alloc_and_copy(&args, dmirror)) {
migrate_vma_finalize(&args);
+ ret = -ENOMEM;
goto out;
}
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.patch
mm-switch-deferred-split-shrinker-to-list_lru-fix.patch
mm-swap-pm-hibernate-atomically-replace-hibernation-pin-checkpatch-fixes.patch
sparc-add-_mcount-prototype.patch
drivers-media-v4l2-core-v4l2-vp9c-reduce-inlining.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
* + lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.patch added to mm-unstable branch
@ 2026-06-02 0:51 Andrew Morton
0 siblings, 0 replies; 2+ messages in thread
From: Andrew Morton @ 2026-06-02 0:51 UTC (permalink / raw)
To: mm-commits, lkp, liuqiang, leon, jgg, apopple, akpm, akpm
The patch titled
Subject: lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix
has been added to the -mm mm-unstable branch. Its filename is
lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.patch
This patch will shortly appear at
https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.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: Andrew Morton <akpm@linux-foundation.org>
Subject: lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix
Date: Mon Jun 1 05:49:07 PM PDT 2026
fix dmirror_devmem_fault_alloc_and_copy() retval handling
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202606011329.zWs2BKy4-lkp@intel.com/
Cc: Alistair Popple <apopple@nvidia.com>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: Leon Romanovsky <leon@kernel.org>
Cc: Qiang Liu <liuqiang@kylinos.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
lib/test_hmm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/lib/test_hmm.c~lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix
+++ a/lib/test_hmm.c
@@ -1167,9 +1167,9 @@ static int dmirror_migrate_to_system(str
goto out;
pr_debug("Migrating from device mem to sys mem\n");
- ret = dmirror_devmem_fault_alloc_and_copy(&args, dmirror);
- if (ret) {
+ if (dmirror_devmem_fault_alloc_and_copy(&args, dmirror)) {
migrate_vma_finalize(&args);
+ ret = -ENOMEM;
goto out;
}
_
Patches currently in -mm which might be from akpm@linux-foundation.org are
lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.patch
mm-switch-deferred-split-shrinker-to-list_lru-fix.patch
mm-swap-pm-hibernate-atomically-replace-hibernation-pin-checkpatch-fixes.patch
sparc-add-_mcount-prototype.patch
drivers-media-v4l2-core-v4l2-vp9c-reduce-inlining.patch
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-06-02 0:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-02 0:51 + lib-test_hmm-check-alloc_page_vma-return-value-and-handle-oom-fix.patch added to mm-unstable branch Andrew Morton
-- strict thread matches above, loose matches on Subject: below --
2026-06-02 0:51 Andrew Morton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.