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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <174740461415.2575604.10045637964283416849.b4-ty@kernel.org>
Date: Fri, 16 May 2025 16:37:46 +0100
From: Will Deacon <will@...nel.org>
To: linux-arm-kernel@...ts.infradead.org,
	Gavin Shan <gshan@...hat.com>
Cc: catalin.marinas@....com,
	kernel-team@...roid.com,
	Will Deacon <will@...nel.org>,
	linux-kernel@...r.kernel.org,
	anshuman.khandual@....com,
	ryan.roberts@....com,
	dev.jain@....com,
	peterx@...hat.com,
	joey.gouly@....com,
	yangyicong@...ilicon.com,
	shan.gavin@...il.com
Subject: Re: [PATCH v2] arm64: mm: Drop redundant check in pmd_trans_huge()

On Thu, 08 May 2025 18:52:51 +1000, Gavin Shan wrote:
> pmd_val(pmd) is redundant because a positive pmd_present(pmd) ensures
> a positive pmd_val(pmd) according to their definitions like below.
> 
>   #define pmd_val(x)       ((x).pmd)
>   #define pmd_present(pmd) pte_present(pmd_pte(pmd))
>   #define pte_present(pte) (pte_valid(pte) || pte_present_invalid(pte))
>   #define pte_valid(pte)   (!!(pte_val(pte) & PTE_VALID))
>   #define pte_present_invalid(pte) \
>           ((pte_val(pte) & (PTE_VALID | PTE_PRESENT_INVALID)) == PTE_PRESENT_INVALID)
> 
> [...]

Applied to arm64 (for-next/mm), thanks!

[1/1] arm64: mm: Drop redundant check in pmd_trans_huge()
      https://git.kernel.org/arm64/c/13c63ce35883

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ