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-prev] [day] [month] [year] [list]
Message-ID: <20240924201352.GF3550746@ZenIV>
Date: Tue, 24 Sep 2024 21:13:52 +0100
From: Al Viro <viro@...iv.linux.org.uk>
To: Lorenzo Stoakes <lorenzo.stoakes@...cle.com>
Cc: Andrew Morton <akpm@...ux-foundation.org>, linux-mm@...ck.org,
	linux-kernel@...r.kernel.org, Arnd Bergmann <arnd@...db.de>
Subject: Re: [PATCH] mm: refactor mm_access() to not return NULL

On Tue, Sep 24, 2024 at 09:10:23PM +0100, Lorenzo Stoakes wrote:
> +	if (IS_ERR(mm))
> +		return PTR_ERR(mm) == -ESRCH ? NULL : mm;

	Pet peeve: what's wrong with mm == ERR_PTR(-ESRCH)?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ