Received: by 2002:ab2:60d1:0:b0:1f7:5705:b850 with SMTP id i17csp993712lqm; Thu, 2 May 2024 01:53:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVVnJ3AAJ8vG/sDwizGgEOh/bkb5gn4RevFs6OKd/ZRFeTriBiIBzfxQ7dTLM7qbE1fo0tqt4jBPIEeW41leRm+cDADLeSe53v1HgdxCw== X-Google-Smtp-Source: AGHT+IHXzRxMLcbzbfmcfXMrSgel27WV/LiPqiHMwphqbmafuQIwlVHAZZeLwTheiLB0MT9TlkM/ X-Received: by 2002:a05:620a:1584:b0:790:eedb:4b63 with SMTP id d4-20020a05620a158400b00790eedb4b63mr5420586qkk.16.1714639994733; Thu, 02 May 2024 01:53:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714639994; cv=pass; d=google.com; s=arc-20160816; b=qH5bqMUbNlwhoWVd1V3SzuxZX0CgkuMUGvW5+MW0qse6iNiN13egxRM+v/CV7UxoB5 788gEGAGk4M1nM1JHiE1S7WUFMywCdTGFc5ttZ4lQBdLTcwCJ2Kd5XAh1mkt181ptymV poMM2ukaQnFcPQBTNoZjGq69lFtP/jCjINF69XQf2YcmUDYYGYEnGYvzvqWSpy3zCAXS sOskh4cvc9/MrJMTIU51jrs+bSj/z0lenZ8OveWyD+kiP3uhHWo5BGCzJnWZHZVvx71o JEc4ws1GRuL4+G/Llah7uN9e0zlbi4YEyDTo0MDxM54m9ldgJosrsus1lR004r7SwJjw HL0w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=NR4F1yCnaHMzo+jYRRQjO/m7l+e0Gwyie6VNrB5gst4=; fh=xCW1vna0pLgjkQXt9byNFfNJqb/JtlzdxK6Z/f9JaF4=; b=aizxZ9Amb5HhdrcoC+7KIrF1M14fXYiRnyiGWGU7rb2fJ0hSNJoQjYnCR1AEdssGbD fguBzYQKz7EnpMhjFHxvZ5xXeV8AspNcxmxa2DvhLCYvGy/NtXQxg8OJnvEbAS6+ZrRN 3c9L4FGW83EhRRnd55VcqMllDRxwdA+vH462lPA/zdeYj9E5n79hqRh4Q/y10lnrYdSJ jSkZkHg3bsxCVBf8C4la3Kev4cFxL2egDL68p3ZTiwFTIVPORBpXa2Pa7pAD6xeCqJsv +jZ98MXe14OSP3XvhGGYPzn3VIqwYMX0D7+lNM8HGYoDXizC+2RbYwb1vy1S8U7HjE0l cTsw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="PUn/V8nQ"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-166156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id m8-20020a05620a290800b0078f0f174cbesi493186qkp.47.2024.05.02.01.53.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 May 2024 01:53:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-166156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="PUn/V8nQ"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-166156-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-166156-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 74B631C210B5 for ; Thu, 2 May 2024 08:53:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6329547A7A; Thu, 2 May 2024 08:53:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="PUn/V8nQ" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3ABCF22F00 for ; Thu, 2 May 2024 08:53:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714639988; cv=none; b=tGDmvrYVbG4YzPYtMRepIsCyzvPC0BMGY2aTMmSMxUNY//CXIrfxmgVXFw5SBys/eLl4dz/yw+22y0Da5zjT6owyp61+l0/OvJtaxkNoSDsp57uJm49M/AieSp8e9sB35Qfk7+5upqkMpSf8Fk9B/QlkpNyZwAzhP0un22CaVso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714639988; c=relaxed/simple; bh=LEOOwhiOIcvRQi9Cb1d0MWZ04FF4u1rqzdfIYJBWXW4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YWdjV95soi+ONjG+1Zw7RgEolvdJX/qSrzGow75TlEqUkrJ8PJCyHyWUkL5cnmy01T4MHs6iAvxPibpNCVk4Z60zTmQZlJRDKtO3VNK92yFVUM/2HLduc7C7qXJKWA9xD3OUSBGy0Hl1PxRcKq/w0NmkuTmQu07U/h/BDIf1Zis= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=PUn/V8nQ; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1714639986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=NR4F1yCnaHMzo+jYRRQjO/m7l+e0Gwyie6VNrB5gst4=; b=PUn/V8nQBxj/kAu8NiqoN3HUSi8493rkUzSReXbD9huFcuppSHwmpUtS7vWKIx6LaN2LtA qiZEopStrBGbnjBCouaIwJlBHSvDs2eWb2cN+Rx49BfHDoURqSTVYES7tfxUuj2p/YTD6X ZqFizsovQV5XS3ylKPl0JsujdMVqLLA= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-612-_IBEBEYFPGCCtQ-Rix5efA-1; Thu, 02 May 2024 04:53:02 -0400 X-MC-Unique: _IBEBEYFPGCCtQ-Rix5efA-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 22905830D37; Thu, 2 May 2024 08:53:02 +0000 (UTC) Received: from t14s.redhat.com (unknown [10.39.193.224]) by smtp.corp.redhat.com (Postfix) with ESMTP id 12B1C40ED31; Thu, 2 May 2024 08:52:59 +0000 (UTC) From: David Hildenbrand To: linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, linux-kselftest@vger.kernel.org, David Hildenbrand , Andrew Morton , Muchun Song , Shuah Khan Subject: [PATCH v1 0/2] selftests: mm: cow: flag vmsplice() hugetlb tests as XFAIL Date: Thu, 2 May 2024 10:52:57 +0200 Message-ID: <20240502085259.103784-1-david@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 The failing hugetlb vmsplice() COW tests keep confusing people, and having tests that have been failing for years and likely will keep failing for years to come because nobody cares enough is rather suboptimal. Let's mark them as XFAIL and document why fixing them is not that easy as it would appear at first sight. More details can be found in [1], especially around how hugetlb pages cannot really be overcommitted, and why we don't particularly care about these vmsplice() leaks for hugetlb -- in contrast to ordinary memory. [1] https://lore.kernel.org/all/8b42a24d-caf0-46ef-9e15-0f88d47d2f21@redhat.com/ Cc: Andrew Morton Cc: Muchun Song Cc: Shuah Khan David Hildenbrand (2): selftests: mm: cow: flag vmsplice() hugetlb tests as XFAIL mm/hugetlb: document why hugetlb uses folio_mapcount() for COW reuse decisions mm/hugetlb.c | 7 ++ tools/testing/selftests/mm/cow.c | 106 +++++++++++++++++++++---------- 2 files changed, 78 insertions(+), 35 deletions(-) -- 2.44.0