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: <alpine.DEB.2.02.1405220642100.9695@ionos.tec.linutronix.de>
Date:	Thu, 22 May 2014 06:43:08 +0900 (JST)
From:	Thomas Gleixner <tglx@...utronix.de>
To:	Cyrill Gorcunov <gorcunov@...nvz.org>
cc:	linux-kernel@...r.kernel.org, shawn@...rchofgit.com,
	akpm@...ux-foundation.org, avagin@...nvz.org, xemul@...allels.com,
	vdavydov@...allels.com
Subject: Re: [patch 3/3] timerfd: Implement write method

On Tue, 29 Apr 2014, Cyrill Gorcunov wrote:
> +
> +static ssize_t timerfd_write(struct file *file, const char __user *buf,
> +			     size_t count, loff_t *ppos)
> +{
> +	struct timerfd_ctx *ctx = file->private_data;
> +	u64 ticks = 0;
> +
> +	if (count < sizeof(ticks))
> +		return -EINVAL;
> +
> +	if (get_user(ticks, (u64 __user *) buf))
> +		return -EFAULT;
> +
> +	spin_lock_irq(&ctx->wqh.lock);
> +	ctx->ticks = ticks;

So what wakes a potential waiter in read/poll?

Thanks,

	tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ