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: <20230721113718.GA3638458@hirez.programming.kicks-ass.net>
Date:   Fri, 21 Jul 2023 13:37:18 +0200
From:   Peter Zijlstra <peterz@...radead.org>
To:     Jens Axboe <axboe@...nel.dk>
Cc:     io-uring@...r.kernel.org, linux-kernel@...r.kernel.org,
        andres@...razel.de
Subject: Re: [PATCH 06/10] io_uring: add support for futex wake and wait

On Fri, Jul 21, 2023 at 01:30:31PM +0200, Peter Zijlstra wrote:

Sorry, I was too quick..

	iof->uaddr = sqe->addr;
	iof->val   = sqe->futex_val;
	iof->mask  = sqe->futex_mask;
	flags      = sqe->futex_flags;

	if (flags & ~FUTEX2_MASK)
		return -EINVAL;

	iof->flags = futex2_to_flags(flags);
	if (!futex_flags_valid(iof->flags))
		return -EINVAL;

	if (!futex_validate_input(iof->flags, iof->val) ||
	    !futex_validate_input(iof->flags, iof->mask))
		return -EINVAL


Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ