Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1273340lqt; Fri, 7 Jun 2024 13:06:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3jmE+c1PfKwm6MWW/K/b1rBsJE2YtoXtZ+jj1x37e+s/PvJSskuVSr4aXWTzoSO7jLLttHGfiN2dwXW6sTMzTR4r1EmwncdAWab1WQw== X-Google-Smtp-Source: AGHT+IE3vo0GvbJVDrJS2M1IstmuKNrwM6c0EIgfJ6STD8z4mBO1ln6E6beU+unAmSZCNuKxf5Hl X-Received: by 2002:a05:620a:113a:b0:794:b8dd:b921 with SMTP id af79cd13be357-7953c4d0896mr333421485a.64.1717790792571; Fri, 07 Jun 2024 13:06:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717790792; cv=pass; d=google.com; s=arc-20160816; b=hf/zC2FHlVC75QNPAS1reI3OGqnxwVEqdTsxXXYXVUPYoxQWkKteKohpzZjbVJHQ/X nNCzMrUHpBcweiqjo0r2IpMwBwTq+xHxHyqPfIuXFSQxZTVZXwNquUvwfOmJ+pAlJTGj 7U0cOyR/5RcJRuHmrxIwQj9a2pylUVyFTBbQPe+z/S9kY9OJWIEnHBXMTHVP+6xfAu5X HA9/aMAqlnKtG4fNuBFpf/NX8UyVh6/7MUGoe6xK7jUrm5BnRxmnSYu7r42odxncteXD WQISlcTh0rYdqkVMkQWqBy/NEBm4fbW4z0qtC1Vt5iu4ZZqWxdV+T2Faj0D2TPj5C13S sqbA== 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:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=wIx9cKR9oFs2l0WUFce61hdfX+TM3kLxrbPruTKfdtc=; fh=RJYPSYfd70baxV3pDt+Rixxli1egBHhAU3Zup6crGbc=; b=pGC/rWGEE/AnNIi8RKDHE2Wpm1IETyUxdbPugrAaoUhxrOt5Ytmo12DcDMSEJtR+TY 2aUSvffNtc+UggEdjd+IC8a93FxfwZ5UvoTFgHzTV3djUuIqQ1DqtiGxRnGexZSZzzAo QYqrp0+Z6z1Kex6X9T80vta08yQJQeo0DSGbbQSuSmilCi7sV/A6OS/t29m28CcdhbJ5 LwN18pXXk0SiIqiUyx7/MmXMnLUsMgjmQhm+FRnl/1TT5Jj9joVaI1Mr9XivGHkf0uBA jv+mvb5d6nn6QrFw7YL4EzdgpdaSMyS2Uh1/66wKv9OaqWob2wa85Lxbcn7uTrvZI+W+ C/sw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=VhcVZAw8; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-206686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206686-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-7954e2f1afasi102331285a.480.2024.06.07.13.06.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 13:06:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=VhcVZAw8; arc=pass (i=1 dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-206686-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206686-linux.lists.archive=gmail.com@vger.kernel.org" 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 4055A1C21254 for ; Fri, 7 Jun 2024 20:06:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 93A6A149DE8; Fri, 7 Jun 2024 20:06:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="VhcVZAw8" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5C9E5A20; Fri, 7 Jun 2024 20:06:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717790785; cv=none; b=SNwbfSYozow5tYLQKsXkWjLAR51HkQWWB0POE9uwCUROXYrnCGarOb7Ga0tWy+Mh2p9o8X0d2HJPO8RWIEoSzbAHVW+p6U0Gwq2Kb07cwS1JLAOYgo/7MM793CT+83S+TDRwF4ZX7lafFFRV2n97BHEJGa9rHDbHmWbaqiegW+k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717790785; c=relaxed/simple; bh=l+MzTCrE+QhkM/SGOM47J9fZob9RAcpn4S4cOQ09WjM=; h=Date:From:To:Cc:Subject:Message-Id:In-Reply-To:References: Mime-Version:Content-Type; b=r6rnUDoqmtTPPzwbcD74lbVajLONvJYxs2AJG8C6j6/mpOBE5AewH6FVzldx7As7+wLIWp38V2IbtcGSH2lOEVb8G/fzLfBoUeXzrPlIsZY9rsl1S0tN002iP/iKS6I556JZoCyAW9fQDtN0+4S+dfs8gZYQde6douwBJ6jC8vI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=VhcVZAw8; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5B90FC2BBFC; Fri, 7 Jun 2024 20:06:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1717790784; bh=l+MzTCrE+QhkM/SGOM47J9fZob9RAcpn4S4cOQ09WjM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=VhcVZAw8YVqckma6gCRFJjjbTX4WSeR2cejP0qeOAq1uuvmWfFw8/5l5KclhfSMsJ EkbGTDrcI3zncJ2iVGkYNY+qXP2ivFd8AzBxylock6mOdqS67HO6fJTyvXVOkua7c2 NpJnUfFzWxjngUgBuFHGQsj3pySQgstFqfxXlurk= Date: Fri, 7 Jun 2024 13:06:23 -0700 From: Andrew Morton To: Donet Tom Cc: Shuah Khan , Matthew Wilcox , Tony Battersby , linux-mm@kvack.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Ritesh Harjani , Mike Rapoport , Muchun Song , David Hildenbrand , p.raghav@samsung.com, usama.anjum@collabora.com Subject: Re: [PATCH v4] selftest: mm: Test if hugepage does not get leaked during __bio_release_pages() Message-Id: <20240607130623.76ba44371f8f406f5d1678b7@linux-foundation.org> In-Reply-To: <20240607182000.6494-1-donettom@linux.ibm.com> References: <20240607182000.6494-1-donettom@linux.ibm.com> X-Mailer: Sylpheed 3.8.0beta1 (GTK+ 2.24.33; x86_64-pc-linux-gnu) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 7 Jun 2024 13:20:00 -0500 Donet Tom wrote: > V4: > - Added this test to run_vmtests.sh. v4 also contains this change: --- a/tools/testing/selftests/mm/hugetlb_dio.c~selftest-mm-test-if-hugepage-does-not-get-leaked-during-__bio_release_pages-v4 +++ a/tools/testing/selftests/mm/hugetlb_dio.c @@ -40,7 +40,7 @@ void run_dio_using_hugetlb(unsigned int ksft_exit_fail_msg("Unable to determine huge page size\n"); /* Open the file to DIO */ - fd = open("/tmp", O_TMPFILE | O_RDWR | O_DIRECT); + fd = open("/tmp", O_TMPFILE | O_RDWR | O_DIRECT, 0664); if (fd < 0) ksft_exit_fail_perror("Error opening file\n");