Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1293307lqt; Fri, 7 Jun 2024 13:53:21 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVoUYm5M95hRB+rJrUQdgfLzL9ifOYBQrLs6heCvKZJk8yuHO625ga8+BZnitN9p/b6zufhvy1t2chNNAD/CcKtD5HjynnRdJPKgHNtuQ== X-Google-Smtp-Source: AGHT+IFkij/rytvDiQNJlb6oLOz228mhmqtAKwpEHa2fFsaV7gn2ZDPDhuLlKlzoqA35klFUbwza X-Received: by 2002:a05:6a00:130f:b0:6f6:76c8:122c with SMTP id d2e1a72fcca58-7040ba28bd0mr5360146b3a.16.1717793600798; Fri, 07 Jun 2024 13:53:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717793600; cv=pass; d=google.com; s=arc-20160816; b=pgZIeOV8KMUxvTZuQUIDw3LqXZsX7WaCV/Z6vV9BaGTKe3Zzw3iA9W7zQqxhUKDdP+ caIiMp8w2zwzjok5clYSwLoD1CDSCLgalYgn6IR/oCd9Z900QlgkHpq8pNCubYMvJCxv HDH2XqYY2fB4m3AV+4YjHidUJkbbLFzYd+wAKsavoB43HO/J/7IsZtiWqKB4nsrUIzX7 RkUbkYnsdWtFWGpKTd90RISQ+/zrqIdog27UrxpgrtwMRDlCDYO72hhhfkvdXcIVDrHR sIudm6XKdzClYHjSsWY82STIFFMJOZYY3edOdtkRk+h7CSYkfP4+/mt+p9Wsya01J22L RmSQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GYQp9dC3UpZGBuYImicESfmUl6H1CygZfqRoSmgI07M=; fh=hfsNyVSKbpHERSBoO5GzJTTr+u1hQjMnfue/Rd9u63Y=; b=oKnnXqgIwAEq2gs5cl21I4sBvqYXL8GOFeInBRyhY6BW2OJ8RsPu4RXOhP6kj600MM 8EyfgbQn1gHQ/9JlQwJhrFQWB9iBf5TZm5W1NYKpf7nOoc8NgquTkJp/9pQ3xapB6wOa bgaDhmuwbT7hzBHT41XdKEKn8a1LIsi2MAGYUHI1PI7MHvO6bpCbkiAgBkzmHmqCrnq1 wGQNjZDZvLlyOm1YYAclrIJRzwIihFIb+2etergL2Z3bUpoeWWe1eyTy/ypMrKosAhyg 9+klwUoUY0wfca+So8Bhv74ulvTmJ8Radjx+L1mQlWjwEmxOgcRoTsH3ApWWKKjLxy9U QUeA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=GFZ9KF6+; arc=pass (i=1 spf=pass spfdomain=pankajraghav.com dkim=pass dkdomain=pankajraghav.com dmarc=pass fromdomain=pankajraghav.com); spf=pass (google.com: domain of linux-kernel+bounces-206743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206743-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pankajraghav.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id d2e1a72fcca58-703fd38e6acsi3029468b3a.28.2024.06.07.13.53.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 13:53:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@pankajraghav.com header.s=MBO0001 header.b=GFZ9KF6+; arc=pass (i=1 spf=pass spfdomain=pankajraghav.com dkim=pass dkdomain=pankajraghav.com dmarc=pass fromdomain=pankajraghav.com); spf=pass (google.com: domain of linux-kernel+bounces-206743-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206743-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=pankajraghav.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6D10B283EB7 for ; Fri, 7 Jun 2024 20:53:20 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 708BD1552F0; Fri, 7 Jun 2024 20:52:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b="GFZ9KF6+" Received: from mout-p-101.mailbox.org (mout-p-101.mailbox.org [80.241.56.151]) (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 9654F154BFB; Fri, 7 Jun 2024 20:52:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=80.241.56.151 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717793576; cv=none; b=J5LnbssOv9C4yEZkAFnAQ2UccunpGSs9Vsz2FqvaJpuW3UikYVE9cdJVfOVNTTpMEnenpFgiM6IdDGjt5Vof9YKWYL8jOFF2IkXcf4ITIhL2gvYBggzMcBVbB41qsohBW8MsHtdsHpS8nBfNDJVOP46N4BiE5KsEGKmUKroiF5Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717793576; c=relaxed/simple; bh=VMLxmXz/u3qMiTiYWYaIgTSjlhBqu0PyuRoBOBtThgY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=GZz1HVNw+LSvzowPVDGil6ZimO8o/vf7AVeF7tZojOQ3xxHjMJ3ovtGHkfxGTMmANd1IuXcBctA8GDdmS9DzXIdDk51hMasYMFApmDmeDPGWjF7VGp1kGgJ8S39ywtIAGaLMSn3ELpfngLsJDY+ygwE82gEE5FLstvOk0YHFGBg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pankajraghav.com; spf=pass smtp.mailfrom=pankajraghav.com; dkim=pass (2048-bit key) header.d=pankajraghav.com header.i=@pankajraghav.com header.b=GFZ9KF6+; arc=none smtp.client-ip=80.241.56.151 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=pankajraghav.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pankajraghav.com Received: from smtp202.mailbox.org (smtp202.mailbox.org [10.196.197.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-101.mailbox.org (Postfix) with ESMTPS id 4Vwtgk3THBz9sGk; Fri, 7 Jun 2024 22:52:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pankajraghav.com; s=MBO0001; t=1717793570; 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: in-reply-to:in-reply-to:references:references; bh=GYQp9dC3UpZGBuYImicESfmUl6H1CygZfqRoSmgI07M=; b=GFZ9KF6+TkSf21PJjhZ4xQoUU2T7OJrIN0wiyXn9te1gMwhL8I+ZOTrDBEj7B1aul3hKhC ruUhiFiEpkmjpsMZLd9S6BUTUCiJl6enb/lTyCJVNIPgP59Uu43TGIgV3JzEllNNDXBu5L PRsMgKT2cTd9G6uHkmrak67jlPrSR3NDdtvY9qXMF0DAjM3JCwzDqnki82q0t/Fmmpn/K/ qH/9eiiuaQuP1SuH5fjp0syHQE7pgt2JIotwB93EBjH67OcHOi1LiDTd3w+1DgLU9ClHWG mMIQmwnslL42WT8ZbP401PvI2fnmldonX8gsnFQyo/Cov3dFW1t/m9Ky1NQqvQ== Date: Fri, 7 Jun 2024 20:52:47 +0000 From: "Pankaj Raghav (Samsung)" To: Andrew Morton Cc: Donet Tom , 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: <20240607205247.b7touyyblwcpamfm@quentin> References: <20240607182000.6494-1-donettom@linux.ibm.com> <20240607130623.76ba44371f8f406f5d1678b7@linux-foundation.org> 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-Disposition: inline In-Reply-To: <20240607130623.76ba44371f8f406f5d1678b7@linux-foundation.org> On Fri, Jun 07, 2024 at 01:06:23PM -0700, Andrew Morton wrote: > 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: I think v3 already had these changes [1] V3: - Fixed the build error when it is compiled with _FORTIFY_SOURCE. [1] https://lore.kernel.org/linux-kselftest/20240607055046.138650-1-donettom@linux.ibm.com/ > > --- 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"); > >