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: <20240807115824.f5c29702dda952abd709351d@linux-foundation.org>
Date: Wed, 7 Aug 2024 11:58:24 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Pedro Falcato <pedro.falcato@...il.com>
Cc: Shuah Khan <shuah@...nel.org>, "Liam R. Howlett"
 <Liam.Howlett@...cle.com>, Jeff Xu <jeffxu@...omium.org>, Kees Cook
 <kees@...nel.org>, linux-mm@...ck.org, linux-kernel@...r.kernel.org,
 linux-kselftest@...r.kernel.org, stable@...r.kernel.org
Subject: Re: [PATCH 1/2] mseal: Fix is_madv_discard()

On Wed,  7 Aug 2024 18:33:35 +0100 Pedro Falcato <pedro.falcato@...il.com> wrote:

> is_madv_discard did its check wrong. MADV_ flags are not bitwise,
> they're normal sequential numbers. So, for instance:
> 	behavior & (/* ... */ | MADV_REMOVE)
> 
> tagged both MADV_REMOVE and MADV_RANDOM (bit 0 set) as
> discard operations. This is obviously incorrect, so use
> a switch statement instead.

Please describe the userspace-visible runtime effects of this bug?

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ