From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id CF73EC001B2 for ; Mon, 12 Dec 2022 02:17:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231312AbiLLCRh (ORCPT ); Sun, 11 Dec 2022 21:17:37 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42144 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231249AbiLLCQf (ORCPT ); Sun, 11 Dec 2022 21:16:35 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1FAE9DFD7 for ; Sun, 11 Dec 2022 18:15:03 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id D2B98B80B69 for ; Mon, 12 Dec 2022 02:15:01 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7EC58C433F0; Mon, 12 Dec 2022 02:15:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1670811300; bh=fIUOiKbiqrsGr2QuS7oW6OS8BkjjBV0MNKQfyStSemo=; h=Date:To:From:Subject:From; b=r68q9+GCioVdhilBB7wAgdRn0FV6ZbUWxdTO7TmoOksSGyS7IvYcgC/x95ci7/7CD ZXFCkoDbxfYGUkYkRDL3JbmRVycOYoHbkTSaPXrCVtvP3zLz8aP/kCbQkKJo61USfl ioFK5pZVbBTb1Q599diTOXiT99xEPuL8UnFVShRI= Date: Sun, 11 Dec 2022 18:14:59 -0800 To: mm-commits@vger.kernel.org, yang.lee@linux.alibaba.com, shuah@kernel.org, david@redhat.com, akpm@linux-foundation.org From: Andrew Morton Subject: [merged mm-stable] mm-gup_test-fix-pin_longterm_test_read-with-highmem.patch removed from -mm tree Message-Id: <20221212021500.7EC58C433F0@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The quilt patch titled Subject: mm/gup_test: fix PIN_LONGTERM_TEST_READ with highmem has been removed from the -mm tree. Its filename was mm-gup_test-fix-pin_longterm_test_read-with-highmem.patch This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm ------------------------------------------------------ From: David Hildenbrand Subject: mm/gup_test: fix PIN_LONGTERM_TEST_READ with highmem Date: Mon, 5 Dec 2022 20:37:13 +0100 Patch series "selftests/vm: fix some tests on 32bit". I finally had the time to run some of the selftests written by me (especially "cow") on x86 PAE. I found some unexpected "surprises" :) With these changes, and with [1] on top of mm-unstable, the "cow" tests and the "ksm_functional_tests" compile and pass as expected (expected failures with hugetlb in the "cow" tests). "madv_populate" has one expected test failure -- x86 does not support softdirty tracking. #1-#3 fix commits with stable commit ids. #4 fixes a test that is not in mm-stable yet. A note that there are many other compile errors/warnings when compiling on 32bit and with older Linux headers ... something for another day. [1] https://lkml.kernel.org/r/20221205150857.167583-1-david@redhat.com This patch (of 4): ... we have to kmap()/kunmap(), otherwise this won't work as expected with highmem. Link: https://lkml.kernel.org/r/20221205193716.276024-1-david@redhat.com Link: https://lkml.kernel.org/r/20221205193716.276024-2-david@redhat.com Fixes: c77369b437f9 ("mm/gup_test: start/stop/read functionality for PIN LONGTERM test") Signed-off-by: David Hildenbrand Cc: Shuah Khan , Cc: Yang Li Signed-off-by: Andrew Morton --- mm/gup_test.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) --- a/mm/gup_test.c~mm-gup_test-fix-pin_longterm_test_read-with-highmem +++ a/mm/gup_test.c @@ -4,6 +4,7 @@ #include #include #include +#include #include "gup_test.h" static void put_back_pages(unsigned int cmd, struct page **pages, @@ -297,10 +298,13 @@ static inline int pin_longterm_test_read return -EFAULT; for (i = 0; i < pin_longterm_test_nr_pages; i++) { - void *addr = page_to_virt(pin_longterm_test_pages[i]); + void *addr = kmap_local_page(pin_longterm_test_pages[i]); + unsigned long ret; - if (copy_to_user((void __user *)(unsigned long)user_addr, addr, - PAGE_SIZE)) + ret = copy_to_user((void __user *)(unsigned long)user_addr, addr, + PAGE_SIZE); + kunmap_local(addr); + if (ret) return -EFAULT; user_addr += PAGE_SIZE; } _ Patches currently in -mm which might be from david@redhat.com are