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] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZddUrO7i5KZn57FY@casper.infradead.org>
Date: Thu, 22 Feb 2024 14:05:32 +0000
From: Matthew Wilcox <willy@...radead.org>
To: Yongqiang Liu <liuyongqiang13@...wei.com>
Cc: linux-arm-kernel@...ts.infradead.org, yanaijie@...wei.com,
	zhangxiaoxu5@...wei.com, wangkefeng.wang@...wei.com,
	sunnanyong@...wei.com, linux@...linux.org.uk, rppt@...ux.ibm.com,
	linux-kernel@...r.kernel.org, keescook@...omium.org, arnd@...db.de,
	m.szyprowski@...sung.com
Subject: Re: [PATCH] arm: flush: check if the folio is reserved for IMO
 addresses

On Thu, Feb 22, 2024 at 10:01:47PM +0800, Yongqiang Liu wrote:
> @@ -296,6 +297,9 @@ void __sync_icache_dcache(pte_t pteval)
>  		return;
>  
>  	folio = page_folio(pfn_to_page(pfn));
> +	if (test_bit(PG_reserved, &folio->flags))
> +		return;

Why are you using PG_foo directly instead of the helpers?

	if (folio_test_reserved(folio))

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ