Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757540AbaGBTB0 (ORCPT ); Wed, 2 Jul 2014 15:01:26 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:50473 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756857AbaGBTBX (ORCPT ); Wed, 2 Jul 2014 15:01:23 -0400 From: Arnd Bergmann To: Cyrill Gorcunov Cc: Christopher Covington , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Michael Kerrisk , Thomas Gleixner , Andrew Morton , Andrey Vagin , Pavel Emelyanov , Vladimir Davydov , Linux ARM kernel mailing list Subject: Re: [patch 3/4] timerfd: Implement timerfd_ioctl method to restore timerfd_ctx::ticks Date: Wed, 02 Jul 2014 21:01:02 +0200 Message-ID: <4188254.Av1Z2pQssC@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.11.0-18-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <20140702170416.GG12440@moon> References: <20140623185431.396309193@openvz.org> <53B4382F.9030908@codeaurora.org> <20140702170416.GG12440@moon> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V02:K0:KtNZaj9yneOy8rKKL9tuyh0pQprpD6ErenKEnK6CRNW IL7BkMRLBCJwbsNAMthsjaTXMzgqbzeYFW8Rs6ZYWQ4bqysNZU XD5z8SzgeiVGz3S+pkSQtbYzUnPnrZstdrDODHGhFKeRB1qpnV LIVfvr5edHm6Kc/Ac+uKSmZu67gP/fbY2XP7OGg/wa3FGZ4ofe 9D/5ojloJ33bsx0NBHRIK8ZfyQ8mKzW7N8k364EQyiVZEDyZy3 8oECpIXC2FYRjVcH/+K5sqPwC7ZN9iE8xReYRa6N2apnEyqRWV +ecroa+dBu3LdtNtKW43gIAHMBJMdsOLdqjssb4SYpWe+sPL4i qFAqgmj7rGKlXLZcyXUY= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wednesday 02 July 2014 21:04:16 Cyrill Gorcunov wrote: > On Wed, Jul 02, 2014 at 12:49:51PM -0400, Christopher Covington wrote: > > > > > > +#ifdef CONFIG_CHECKPOINT_RESTORE > > > +static long timerfd_ioctl(struct file *file, unsigned int cmd, unsigned long arg) > > > +{ > > > + struct timerfd_ctx *ctx = file->private_data; > > > + int ret = 0; > > > + > > > + switch (cmd) { > > > + case TFD_IOC_SET_TICKS: { > > > + u64 ticks; > > > + > > > + if (get_user(ticks, (u64 __user *)arg)) > > > > 64-bit get_user is currently unsupported on ARM, although it appears work is > > ongoing [1]. > > > > 1. https://lkml.org/lkml/2014/6/17/260 > > Thanks for info, Christopher! What arm camp is using then, copy-from-user? > copy_from_user should work on all architectures. I believe a 64-bit get_user is currently unsupported on most 32-bit architectures, x86-32 being a notable exception. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/