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: <20070227140624.5f9eb52d.sfr@canb.auug.org.au>
Date:	Tue, 27 Feb 2007 14:06:24 +1100
From:	Stephen Rothwell <sfr@...b.auug.org.au>
To:	Alexey Dobriyan <adobriyan@...nvz.org>
Cc:	akpm@...l.org, linux-kernel@...r.kernel.org, devel@...nvz.org,
	ak@...e.de, linux-arch@...r.kernel.org
Subject: Re: [PATCH 4/3] lutimesat: compat syscall and wire up on x86_64

On Mon, 26 Feb 2007 19:50:24 +0300 Alexey Dobriyan <adobriyan@...nvz.org> wrote:
>
> +asmlinkage long compat_sys_lutimesat(int dfd, char __user *filename, struct compat_timespec __user *utimes)
> +{
> +	struct timespec ts[2];
> +
> +	if (utimes) {
> +		if (get_user(ts[0].tv_sec, &utimes[0].tv_sec) ||
> +		    get_user(ts[0].tv_nsec, &utimes[0].tv_nsec) ||
> +		    get_user(ts[1].tv_sec, &utimes[1].tv_sec) ||
> +		    get_user(ts[1].tv_nsec, &utimes[1].tv_nsec))
> +			return -EFAULT;

		if (get_compat_timespec(&ts[0], &utimes[0]) ||
		    get_compat_timespec(&ts[1], &utimes[1]))
			return -EFAULT;

--
Cheers,
Stephen Rothwell                    sfr@...b.auug.org.au
http://www.canb.auug.org.au/~sfr/

Content of type "application/pgp-signature" skipped

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ