Re: [PATCH 06/10] io_uring: add support for futex wake and wait

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux