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: <ZfsAEl5nipppfeLx@casper.infradead.org>
Date: Wed, 20 Mar 2024 15:26:10 +0000
From: Matthew Wilcox <willy@...radead.org>
To: alexs@...nel.org
Cc: Izik Eidus <izik.eidus@...ellosystems.com>,
	Andrea Arcangeli <aarcange@...hat.com>,
	Hugh Dickins <hughd@...gle.com>, Chris Wright <chrisw@...s-sol.org>,
	kasong@...cent.com, Andrew Morton <akpm@...ux-foundation.org>,
	"open list:MEMORY MANAGEMENT" <linux-mm@...ck.org>,
	open list <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH 09/11] mm/ksm: Convert stable_tree_search to use folio

On Wed, Mar 20, 2024 at 03:40:45PM +0800, alexs@...nel.org wrote:
> @@ -1820,28 +1820,30 @@ static struct page *stable_tree_search(struct page *page)
>  	struct rb_node *parent;
>  	struct ksm_stable_node *stable_node, *stable_node_dup, *stable_node_any;
>  	struct ksm_stable_node *page_node;
> +	struct folio *folio;
>  
> -	page_node = page_stable_node(page);
> +	folio = (struct folio *)page;

These casts make me nervous.  Remember that we're heading towards a
future where struct page and struct folio don't point to the same
memory, and part of that will be finding all these casts and removing
them.  Please, unless there's a good reason, just use page_folio().


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ