Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp4090218rdb; Mon, 11 Dec 2023 08:32:39 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmPMzPWnLAzkqyKPayFevKWaeuv9BtDAGqwhIhOY/9nwjtPe2zy8LqfMDg6Pv2dVbNqfCu X-Received: by 2002:a05:6358:9889:b0:170:406b:7b92 with SMTP id q9-20020a056358988900b00170406b7b92mr4358538rwa.28.1702312359093; Mon, 11 Dec 2023 08:32:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1702312359; cv=none; d=google.com; s=arc-20160816; b=IvmY3vsm3M/pRCSvpjK0Tl5bp7o9GYWdiaX1AyfdHmLWLBBieS8I1CCXbME+Shq8aU i8USvVTLRZPAti1YdolitS8Py5HPYWseJCyyE5E3S6whP4BOkWT1DA6GaOLS06GW9d/P +g7YmZ0ACnlJlYxEcoh1ASt4au+hTvksgGZ3Ho1C+4sH4V7fS1oUekm+YUjSFkMaJvuz vqZdp4JL+U5FJjYTkeEqHpRUDWWzrDztWX8f+4jfqGrgglRRwx1q3RmUA1J6VJ64pt1l WRvIgHeMyOszmsfWaDx3pK9zstbgF8WjV2KeNkUXuAC9b8LSPtJP4Rr/7mMFSQmyOO7N QFpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:autocrypt:from:references:cc:to:content-language :subject:user-agent:mime-version:date:message-id:dkim-signature; bh=Zf8entefDzOqQ9+sQlfmVQKb6/ZuCgvQj4+9alNyvCE=; fh=z1rDmRvKxP7yhu/Kjn1PsyBTqjhxnqgbWjMlYMVWR+k=; b=lTdE790ITmM2wQGwT0cRjCH+BPNv/ypcpsskm5ZuK2F5QosYoo0lFNORzCnt5g6jlH f3xudkoZfUTUSm6jM//JYgN68+TYZ5lhk4darvLMA34UIAefkDo3WymvAazIcSm2Sxfr 8lYBIXxf6ljP/jzK8OiUQFic04fxY9mZx3Nxmd2YzZAfY27e4cNygfzqN5LX+RKg3xCG 5bOSqdbQO32gJ4dAi+dBUfi9SKC+YeNipvntgU1Sj8vYCOLa6S/zgmtFVdv4iEmPlxru AGaa+U5FBp/aE+Jgt7VNQTlsS3PCl0ruVlsAF33fMyg/ZcMrOef2JaBMLBwNNHWg5WwK Or+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TdvwA9YC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id p12-20020a63c14c000000b005c289c5cb5esi6112549pgi.762.2023.12.11.08.32.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Dec 2023 08:32:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=TdvwA9YC; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 408A4809F8AB; Mon, 11 Dec 2023 08:32:36 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1344597AbjLKQcR (ORCPT + 99 others); Mon, 11 Dec 2023 11:32:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344433AbjLKQcQ (ORCPT ); Mon, 11 Dec 2023 11:32:16 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D23E9E for ; Mon, 11 Dec 2023 08:32:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1702312341; 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:autocrypt:autocrypt; bh=Zf8entefDzOqQ9+sQlfmVQKb6/ZuCgvQj4+9alNyvCE=; b=TdvwA9YCtG/C52OvRhTd0wbnM6fTqBLPh6nnyv2Z6qCsFSb6bAgwwftxXd2LmXgJZ4+Kmt xPESrE6WDUJOpGiD5wbnyUdiUY317q0YP3ocu3BKfcKt//UHYgLHEScaRblaccW6I4nNUl snMwsJY8p8CoEpEqtOBSY8yi4nNLVds= Received: from mail-wr1-f72.google.com (mail-wr1-f72.google.com [209.85.221.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-119-CsTdGPOgObWhsNQHWQMVNg-1; Mon, 11 Dec 2023 11:32:20 -0500 X-MC-Unique: CsTdGPOgObWhsNQHWQMVNg-1 Received: by mail-wr1-f72.google.com with SMTP id ffacd0b85a97d-33353f98b7bso3938064f8f.0 for ; Mon, 11 Dec 2023 08:32:20 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702312339; x=1702917139; h=content-transfer-encoding:in-reply-to:organization:autocrypt: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=Zf8entefDzOqQ9+sQlfmVQKb6/ZuCgvQj4+9alNyvCE=; b=MjsONbDts5SA8ycBcGvf1w4ks0AerS1k3nID1WlDx71f0pWkKL4toxSaELh10IyppK kBg6XRGVuPjBulNQ2ZYMjIBi3/UyTCIlg1VU7GNBt6PE3DJDLPOrIJa17bd0mGPjG/u1 hrf4Jtw8yA0iMVeQs87fvw0wDL0JGioYJehI0VmEfi0oQYQDBescLT5khClHk4FykNtB USVBMMkn3H8n7H1uMmIZkYvbEjog5lA+iIyutoFpeNohJyYpF71+1W2On+u6zddlh/OQ Uai/EO9ZiB0TJOCC3Cwb+43tGJWbDzJ3t74IzBz07yMhR+9HJPD94KI6rM29IGdLF13+ a9pg== X-Gm-Message-State: AOJu0Yz+LG28wqPwdBNFjuDlBxp6qSCuIJfBYJyaHex28wN4otGoqq2P Y/2pdI4kNg9cfykRdPOcVGXiJV3j++6rSMqcXlm54Oi1w7KDuwi6ODolNvwN+7dnVgekilww5Jr XtzFFwvq97bUegdY/dhA4Q2Ik X-Received: by 2002:a5d:48ca:0:b0:333:1adc:a37b with SMTP id p10-20020a5d48ca000000b003331adca37bmr2319654wrs.5.1702312339403; Mon, 11 Dec 2023 08:32:19 -0800 (PST) X-Received: by 2002:a5d:48ca:0:b0:333:1adc:a37b with SMTP id p10-20020a5d48ca000000b003331adca37bmr2319644wrs.5.1702312339010; Mon, 11 Dec 2023 08:32:19 -0800 (PST) Received: from ?IPV6:2003:cb:c742:ae00:6e5f:7195:98f6:3ed1? (p200300cbc742ae006e5f719598f63ed1.dip0.t-ipconnect.de. [2003:cb:c742:ae00:6e5f:7195:98f6:3ed1]) by smtp.gmail.com with ESMTPSA id h6-20020adffd46000000b003333c9ad4d6sm8926700wrs.116.2023.12.11.08.32.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 11 Dec 2023 08:32:18 -0800 (PST) Message-ID: <3240f4b5-081b-4075-851a-7d1cd86f4333@redhat.com> Date: Mon, 11 Dec 2023 17:32:16 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v6 5/5] selftests/mm: add UFFDIO_MOVE ioctl test Content-Language: en-US To: Suren Baghdasaryan , Mark Brown Cc: akpm@linux-foundation.org, viro@zeniv.linux.org.uk, brauner@kernel.org, shuah@kernel.org, aarcange@redhat.com, lokeshgidra@google.com, peterx@redhat.com, ryan.roberts@arm.com, hughd@google.com, mhocko@suse.com, axelrasmussen@google.com, rppt@kernel.org, willy@infradead.org, Liam.Howlett@oracle.com, jannh@google.com, zhangpeng362@huawei.com, bgeffon@google.com, kaleshsingh@google.com, ngeoffray@google.com, jdduke@google.com, linux-mm@kvack.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kernel-team@android.com, John Hubbard , Peter Zijlstra References: <20231206103702.3873743-1-surenb@google.com> <20231206103702.3873743-6-surenb@google.com> <50385948-5eb4-47ea-87f8-add4265933d6@redhat.com> <6a34b0c9-e084-4928-b239-7af01c8d4479@sirena.org.uk> From: David Hildenbrand Autocrypt: addr=david@redhat.com; keydata= xsFNBFXLn5EBEAC+zYvAFJxCBY9Tr1xZgcESmxVNI/0ffzE/ZQOiHJl6mGkmA1R7/uUpiCjJ dBrn+lhhOYjjNefFQou6478faXE6o2AhmebqT4KiQoUQFV4R7y1KMEKoSyy8hQaK1umALTdL QZLQMzNE74ap+GDK0wnacPQFpcG1AE9RMq3aeErY5tujekBS32jfC/7AnH7I0v1v1TbbK3Gp XNeiN4QroO+5qaSr0ID2sz5jtBLRb15RMre27E1ImpaIv2Jw8NJgW0k/D1RyKCwaTsgRdwuK Kx/Y91XuSBdz0uOyU/S8kM1+ag0wvsGlpBVxRR/xw/E8M7TEwuCZQArqqTCmkG6HGcXFT0V9 PXFNNgV5jXMQRwU0O/ztJIQqsE5LsUomE//bLwzj9IVsaQpKDqW6TAPjcdBDPLHvriq7kGjt WhVhdl0qEYB8lkBEU7V2Yb+SYhmhpDrti9Fq1Es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ADIPQTPNvBewdeI80yeOCrN+Zzwy/Mrx9EPeu59Y5vSJOx/z6OUImD/GhX7Xvkt3kq Er5KTrJz3++B6SH9pum9PuoE/k+nntJkNMmQpR4MCBaV/J9gIOPGodDKnjdng+mXliF3Ptu6 3oxc2RCyGzTlxyMwuc2U5Q7KtUNTdDe8T0uE+9b8BLMVQDDfJjqY0VVqSUwImzTDLX9S4g/8 kC4HRcclk8hpyhY2jKGluZO0awwTIMgVEzmTyBphDg/Gx7dZU1Xf8HFuE+UZ5UDHDTnwgv7E th6RC9+WrhDNspZ9fJjKWRbveQgUFCpe1sa77LAw+XFrKmBHXp9ZVIe90RMe2tRL06BGiRZr jPrnvUsUUsjRoRNJjKKA/REq+sAnhkNPPZ/NNMjaZ5b8Tovi8C0tmxiCHaQYqj7G2rgnT0kt WNyWQQ== Organization: Red Hat In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 11 Dec 2023 08:32:36 -0800 (PST) On 11.12.23 17:15, Suren Baghdasaryan wrote: > On Mon, Dec 11, 2023 at 4:24 AM Mark Brown wrote: >> >> On Mon, Dec 11, 2023 at 01:03:27PM +0100, David Hildenbrand wrote: >>> On 11.12.23 12:15, Mark Brown wrote: >> >>>> This is linux-next. I pasted the commands used to build and sent links >>>> to a full build log in the original report. >> >>> Probably also related to "make headers-install": >> >>> https://lkml.kernel.org/r/20231209020144.244759-1-jhubbard@nvidia.com >> >>> The general problem is that some mm selftests are currently not written in >>> way that allows them to compile with old linux headers. That's why the build >>> fails if "make headers-install" was not executed, but it does not fail if >>> "make headers-install" was once upon a time executed, but the headers are >>> outdated. >> >> Oh, it's obviously the new headers not being installed. The builds >> where I'm seeing the problem (my own and KernelCI's) are all fresh >> containers so there shouldn't be any stale headers lying around. > > Ok, I was updating my headers and that's why I could not reproduce it. > David, should the test be modified to handle old linux headers > (disable the new tests #ifndef _UFFDIO_MOVE or some other way)? That's an open question: do we want to be able to build selftests against any host headers, and not the in-tree headers that have to be manually installed and dirty the git tree? One obvious drawbacks is that we'll have to deal with all that using a bunch of #ifdef, and the tests that will be built+run will depend on the host headers. Especially the letter is relevant I think: Our upstream testing won't be able to build+run tests that rely on new upstream features. But that's what some key benefit of these selftests, and being able to run them automatically on a bunch of different combinations upstream. Further, the tests are closely related to the given kernel version, they are not some completely separate tests. Moving the the (MM?) selftests to a separate repository would make the decision easier: just like in QEMU etc, we'd simply pull in a headers update and only build against these archived headers. So I see the options: (1) Rely on installing the proper in-tree headers. Build will fail if that is not happening. (2) Make the tests build with any host headers. (3) Regularly archive the required headers in the selftest directory like external projects like QEMU do. (3) avoids dirtying the tree as a "make headers_install" would, but it also means that each test that makes use of new uapi has to update the relevant headers (what people working on QEMU are used to). -- Cheers, David / dhildenb