The patch titled Subject: mm-gup-remove-vmas-parameter-from-get_user_pages_remote-fix has been added to the -mm mm-unstable branch. Its filename is mm-gup-remove-vmas-parameter-from-get_user_pages_remote-fix.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-gup-remove-vmas-parameter-from-get_user_pages_remote-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 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 ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: mm-gup-remove-vmas-parameter-from-get_user_pages_remote-fix Date: Fri Jun 9 10:40:05 AM PDT 2023 avoid passing NULL to PTR_ERR Reported-by: kernel test robot <lkp@xxxxxxxxx> Link: https://lkml.kernel.org/r/202306100045.iM5qbyCz-lkp@xxxxxxxxx Cc: Catalin Marinas <catalin.marinas@xxxxxxx> Cc: Christian König <christian.koenig@xxxxxxx> Cc: Christoph Hellwig <hch@xxxxxx> Cc: David Hildenbrand <david@xxxxxxxxxx> Cc: Dennis Dalessandro <dennis.dalessandro@xxxxxxxxxxxxxxxxxxxx> Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx> Cc: Janosch Frank <frankja@xxxxxxxxxxxxx> Cc: Jarkko Sakkinen <jarkko@xxxxxxxxxx> Cc: Jason Gunthorpe <jgg@xxxxxxxxxx> Cc: Jens Axboe <axboe@xxxxxxxxx> Cc: Lorenzo Stoakes <lstoakes@xxxxxxxxx> Cc: Matthew Wilcox (Oracle) <willy@xxxxxxxxxxxxx> Cc: Sakari Ailus <sakari.ailus@xxxxxxxxxxxxxxx> Cc: Sean Christopherson <seanjc@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- kernel/events/uprobes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/kernel/events/uprobes.c~mm-gup-remove-vmas-parameter-from-get_user_pages_remote-fix +++ a/kernel/events/uprobes.c @@ -475,7 +475,7 @@ retry: /* Read the page with vaddr into memory */ old_page = get_user_page_vma_remote(mm, vaddr, gup_flags, &vma); if (IS_ERR_OR_NULL(old_page)) - return PTR_ERR(old_page); + return old_page ? PTR_ERR(old_page) : 0; ret = verify_opcode(old_page, vaddr, &opcode); if (ret <= 0) _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm-shmem-fix-race-in-shmem_undo_range-w-thp-fix.patch mm-compaction-optimize-compact_memory-to-comply-with-the-admin-guide-fix.patch mm-page_owner-add-page_owner_stacks-file-to-print-out-only-stacks-and-their-counte-fix.patch mm-page_owner-add-page_owner_stacks-file-to-print-out-only-stacks-and-their-counte-fix-fix.patch mmpage_owner-filter-out-stacks-by-a-threshold-counter-fix.patch mm-gup-remove-vmas-parameter-from-get_user_pages_remote-fix.patch selftests-mm-gup_longterm-new-functional-test-for-foll_longterm-fix.patch mm-mlock-rename-mlock_future_check-to-mlock_future_ok.patch mm-hugetlb-use-a-folio-in-hugetlb_fault-fix.patch fork-optimize-memcg_charge_kernel_stack-a-bit-fix.patch squashfs-cache-partial-compressed-blocks-fix.patch squashfs-cache-partial-compressed-blocks-fix-3-fix.patch init-add-bdev-fs-printk-if-mount_block_root-failed-fix.patch kexec-add-helper-__crash_shrink_memory-fix.patch