lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240715084239.685491ee@canb.auug.org.au>
Date: Mon, 15 Jul 2024 08:42:39 +1000
From: Stephen Rothwell <sfr@...b.auug.org.au>
To: Andrew Morton <akpm@...ux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>, Linux Next
 Mailing List <linux-next@...r.kernel.org>, Miaohe Lin
 <linmiaohe@...wei.com>
Subject: linux-next: manual merge of the mm-stable tree with Linus' tree

Hi all,

Today's linux-next merge of the mm-stable tree got a conflict in:

  mm/hugetlb.c

between commit:

  5596d9e8b553 ("mm/hugetlb: fix potential race in __update_and_free_hugetlb_folio()")

from Linus' tree and commit:

  a81fa1dc5db2 ("mm/hugetlb: fix potential race with try_memory_failure_hugetlb()")

from the mm-stable tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

-- 
Cheers,
Stephen Rothwell

diff --cc mm/hugetlb.c
index 43e1af868cfd,740df0b377aa..000000000000
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@@ -1725,6 -1722,20 +1722,13 @@@ static void __update_and_free_hugetlb_f
  		return;
  	}
  
+ 	/*
+ 	 * If we don't know which subpages are hwpoisoned, we can't free
+ 	 * the hugepage, so it's leaked intentionally.
+ 	 */
+ 	if (folio_test_hugetlb_raw_hwp_unreliable(folio))
+ 		return;
+ 
 -	/*
 -	 * Move PageHWPoison flag from head page to the raw error pages,
 -	 * which makes any healthy subpages reusable.
 -	 */
 -	if (unlikely(folio_test_hwpoison(folio)))
 -		folio_clear_hugetlb_hwpoison(folio);
 -
  	/*
  	 * If vmemmap pages were allocated above, then we need to clear the
  	 * hugetlb flag under the hugetlb lock.

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ