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 54051C38A2D for ; Tue, 25 Oct 2022 07:10:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231221AbiJYHKg (ORCPT ); Tue, 25 Oct 2022 03:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56294 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231571AbiJYHK1 (ORCPT ); Tue, 25 Oct 2022 03:10:27 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33C76DEF0E for ; Tue, 25 Oct 2022 00:10:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1666681825; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=6uE3DhoyppSorLvc/Envz8CzaNz1EF7/KSd+9Rw6KO4=; b=F2olL4dCR8tov21M9ponpWw3UsLZE7zSKCYDiX+ZxiQqbUf5eEs2PSxlDdxK9B8JjSkprI +2zYiG7UeNfnjtayiCvLjIpDIWVFozDOPpuML9LMikr2zbz4TONb8EUE3aAdPVV/XoXIgo Ax7Jz73EsemlCObqgcvwUC7yCFL12BU= Received: from mail-wm1-f70.google.com (mail-wm1-f70.google.com [209.85.128.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-398-pcN-xP41NcWW9q62SHzAdw-1; Tue, 25 Oct 2022 03:10:22 -0400 X-MC-Unique: pcN-xP41NcWW9q62SHzAdw-1 Received: by mail-wm1-f70.google.com with SMTP id bg25-20020a05600c3c9900b003cf3ed7e27bso260029wmb.4 for ; Tue, 25 Oct 2022 00:10:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:organization:from:references :cc:to:content-language:subject:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6uE3DhoyppSorLvc/Envz8CzaNz1EF7/KSd+9Rw6KO4=; b=lcXdk2rTDHBzpOfHbERRT/Hnsu1uxN/D1xpE0/lL8wVCO1H6srr8bNTw15yAMEmc7M fP8MO70betCnePwOtUZmiBRAhgKd94RxVgOQ3SY4P3+D/wRR7G/wtKKnXjNBmYCB26Kl kXE9zqeHAqE2G44Nu0YzqqUP2naYdBeea6E13gnRHaIoWZtmYUwiTnC1C6vkU/DGPUc4 /cBqhVKSVRdlUBTruvdNyd+WeSpAw6OyogvzhUnhTMIRv2QAz6GVfE3MI77Y0QE2ZZDl tq9WeThgnqBxjA0ps3MQCGurZQBkW5ZaiPq3JwGEuXGAKOt7niSQkCyviP9Rh4wVwxkY SDsQ== X-Gm-Message-State: ACrzQf3qIHOzqCmvtWGnQ1ER1n9i0w178KBjiPdi70UgKAX9PwYNl2qg mOD2d/QDuSeWfhUddbZXgJGqYj4ojyjDLWKcaIrCHXEl21SK7jx39+5qt2le+KAJeGKb0kFOiBN XoGeWGu3T7+pGv4mhIn9e86p1/RgEci4UR/eCK+3elznt9b7qasivZxaBXgO77wI/kydzEXZn X-Received: by 2002:a05:600c:a47:b0:3a6:5848:4bde with SMTP id c7-20020a05600c0a4700b003a658484bdemr44919425wmq.189.1666681820705; Tue, 25 Oct 2022 00:10:20 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7YT/j1Vmojh5DBuD0Dlc3qbWbBxDj/qp//DibR7eJ6WajhCcajb+s3exb/pzzTjfOALnrs0Q== X-Received: by 2002:a05:600c:a47:b0:3a6:5848:4bde with SMTP id c7-20020a05600c0a4700b003a658484bdemr44919379wmq.189.1666681820211; Tue, 25 Oct 2022 00:10:20 -0700 (PDT) Received: from ?IPV6:2003:cb:c70b:4e00:3efc:1c60:bc60:f557? (p200300cbc70b4e003efc1c60bc60f557.dip0.t-ipconnect.de. [2003:cb:c70b:4e00:3efc:1c60:bc60:f557]) by smtp.gmail.com with ESMTPSA id p5-20020a1c5445000000b003c71358a42dsm12027984wmi.18.2022.10.25.00.10.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Oct 2022 00:10:19 -0700 (PDT) Message-ID: <445fe1ae-9e22-0d1d-4d09-272231d2f84a@redhat.com> Date: Tue, 25 Oct 2022 09:10:18 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Subject: Re: [PATCH v1 5/7] selftests/vm: anon_cow: add liburing test cases Content-Language: en-US To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, Andrew Morton , Shuah Khan , Jason Gunthorpe , John Hubbard , Nadav Amit , Peter Xu , Andrea Arcangeli , Vlastimil Babka , Mike Rapoport , Christoph von Recklinghausen , Don Dutile References: <20220927110120.106906-1-david@redhat.com> <20220927110120.106906-6-david@redhat.com> From: David Hildenbrand Organization: Red Hat In-Reply-To: <20220927110120.106906-6-david@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27.09.22 13:01, David Hildenbrand wrote: > io_uring provides a simple mechanism to test long-term, R/W GUP pins > -- via fixed buffers -- and can be used to verify that GUP pins stay > in sync with the pages in the page table even if a page would > temporarily get mapped R/O or concurrent fork() could accidentially > end up sharing pinned pages with the child. > > Note that this essentially re-introduces local_config support that was > removed recently in commit 6f83d6c74ea5 ("Kselftests: remove support of > libhugetlbfs from kselftests"). > > Signed-off-by: David Hildenbrand > --- The following fixup on top: diff --git a/tools/testing/selftests/vm/anon_cow.c b/tools/testing/selftests/vm/anon_cow.c index c1450a5d6f53..01417a604eda 100644 --- a/tools/testing/selftests/vm/anon_cow.c +++ b/tools/testing/selftests/vm/anon_cow.c @@ -346,7 +346,7 @@ static void do_test_iouring(char *mem, size_t size, bool use_fork) struct io_uring_cqe *cqe; struct io_uring_sqe *sqe; struct io_uring ring; - size_t cur, total; + ssize_t cur, total; struct iovec iov; char *buf, *tmp; int ret, fd; -- Thanks, David / dhildenb