Received: by 2002:ac0:8c8e:0:0:0:0:0 with SMTP id r14csp355179ima; Wed, 6 Feb 2019 00:56:36 -0800 (PST) X-Google-Smtp-Source: AHgI3IZ4GhHU4npSw371CO9oyGU/OLI4FbYsj5WS+eBSckBHqkIqHalP7Yo29GUbo+bQLuzIivHy X-Received: by 2002:a17:902:b60a:: with SMTP id b10mr9163904pls.303.1549443396707; Wed, 06 Feb 2019 00:56:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549443396; cv=none; d=google.com; s=arc-20160816; b=FCrBcAkJQsflz17rJSMF/AdWZTsLJCtEHHCr0TAum1TN/4Y2PcFyMzTAhYn0kowCxj CKK6M+oMUQOTTNkx5YZt46Sd8EuB0mHvmz9aNgorrMkMlJIkypaHxklgO9I8Evek09As ckOYHAbLJk759kWI0oWKCT52YLA4zfAUuEOO/aH6tJChuQ9Muq/CRdufU8Ms1FVl66la tIIiQ5MfVbowB5lqOAU+9o4RtyaGaPbkJdzOWU3Fs7HFvSQzspRo0e2j9JFUl8R8Ny55 +bEgHXf9o2sQ/teFiwAMrKllPOp50p+zxgh5xU6/hq/Uj2/dS84NTk0kAVOP79RPXaeK 0J0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=GLDfZmSNM30C49L/laWm285X7f6T1jw10bM39mOPJME=; b=E8GpXch5ZwCrUbC0/CGeAkLs0YmUmwGC1byoKDTCCvGVODc6lTga9qSbqQarbcLFFQ xT1eGQeZ/+JapEbvYsKg55HZmybaAvcZrVZ0aMIghySpN69hqRTiQxzu48z8dsS+Elw7 T0Bgh0mTIQ0j0mrSqxNmrXQZGI1HvCDNiwONlqaMSAKHCD0qK3FlvL+RxlMshAvlYRmF 8tP1eLj4n9tP9jwU/jS/27qGNATlbpC3wXzTkSQvtSXs+ShPOqxnBhGuXRyKPhDVoNfb 8CSJI6MLtu95R9YWfpLm0BM0bDdOKLl7g4lm5q130AmAo4xd/4eQjPjgSM9oHr5ivBsa eRiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C4wvdLC1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v13si3608292pgn.355.2019.02.06.00.56.20; Wed, 06 Feb 2019 00:56:36 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=C4wvdLC1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728643AbfBFIz2 (ORCPT + 99 others); Wed, 6 Feb 2019 03:55:28 -0500 Received: from mail-lf1-f68.google.com ([209.85.167.68]:35288 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728278AbfBFIz1 (ORCPT ); Wed, 6 Feb 2019 03:55:27 -0500 Received: by mail-lf1-f68.google.com with SMTP id l142so4793924lfe.2; Wed, 06 Feb 2019 00:55:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GLDfZmSNM30C49L/laWm285X7f6T1jw10bM39mOPJME=; b=C4wvdLC1fmI+KGvcpvTVJadrrUlz0RywpXFZGxOukmMiNC+3Oth+kLskPWOsxxkO5u PEwuqgBAPhTTZENYVsPRkWsGgwJwiHJEomweI2h2fjuDAqRbIy58IK5HMh7trJSEEi7g gaXfP84zBuY05QIz1o8PwQGyqFECuB8EO1TTBSA2ONW5nH0Sgz258egtyr+fmkt6xsyw r3NM67skxhzjUH3G6KtDGy2Uxnik+Dfo3xDZG8xORZx/1HIKcCPnjXRcOCrqTJdtICXD Zv0ohyBj90tOvn+kpJ3GsbfrIOh/eq4GqqcJ5mFgwgDCjjdX6mFSWxuaZStrwbQkR+G9 ps5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=GLDfZmSNM30C49L/laWm285X7f6T1jw10bM39mOPJME=; b=DyHOBXga8yK6YxJo5SUNgnMeipl+G5VhWc6JP6zEz+7cv8eACP0EvkNrgYrT4BwSQ8 XH2WUGQ87uIdTII+cNk+Rt6791yo8opdKxONf38c7FYGxJB/bejpKHOdeUfOmggp13bW 5fXG6ykYFpDUR/WogH77A9UJNJEY40aPtL7D25ue8FEAyDX1LA5vaJEGqIw/Q2hbeqFd s0dtjCCWWnnX2ohKVwVK0lj5BeTk8N4vSjlGfQ9NnXc6bXm41Mglus3Lvwdrf8DhIeOp Md9hipK3wxNq98GfX6Jbua7wB9baoGEQ7U4hn2oUTr3vV/foVWk7hsnbznKMhau6TW0O IqlQ== X-Gm-Message-State: AHQUAubAPKw8tyvrjiYukPSoiyB6iCzLdjL0Xu9L/20TNzVNCIS8b2YY rO3SzgfDoUBHH23kdb9eFBU= X-Received: by 2002:a19:aace:: with SMTP id t197mr5763249lfe.7.1549443326294; Wed, 06 Feb 2019 00:55:26 -0800 (PST) Received: from uranus.localdomain ([5.18.103.226]) by smtp.gmail.com with ESMTPSA id x11sm4646252lfd.81.2019.02.06.00.55.25 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 00:55:25 -0800 (PST) Received: by uranus.localdomain (Postfix, from userid 1000) id 511364606E4; Wed, 6 Feb 2019 11:55:25 +0300 (MSK) Date: Wed, 6 Feb 2019 11:55:25 +0300 From: Cyrill Gorcunov To: Dmitry Safonov Cc: linux-kernel@vger.kernel.org, Andrei Vagin , Adrian Reber , Andrei Vagin , Andy Lutomirski , Andy Tucker , Arnd Bergmann , Christian Brauner , Dmitry Safonov <0x7f454c46@gmail.com>, "Eric W. Biederman" , "H. Peter Anvin" , Ingo Molnar , Jeff Dike , Oleg Nesterov , Pavel Emelyanov , Shuah Khan , Thomas Gleixner , containers@lists.linux-foundation.org, criu@openvz.org, linux-api@vger.kernel.org, x86@kernel.org Subject: Re: [PATCH 05/32] timerfd/timens: Take into account ns clock offsets Message-ID: <20190206085525.GC25251@uranus> References: <20190206001107.16488-1-dima@arista.com> <20190206001107.16488-6-dima@arista.com> <20190206085203.GB25251@uranus> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190206085203.GB25251@uranus> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 06, 2019 at 11:52:03AM +0300, Cyrill Gorcunov wrote: ... > > > > - if ((flags & ~TFD_SETTIME_FLAGS) || > > - !itimerspec64_valid(new)) > > - return -EINVAL; > > Please don't defer this early test of a @flags value. Otherwise > if @flags is invalid you continue fget/put/clock-to-host even > if result will be dropped out then. Just to clarify -- this could be done on top of the series to not resend the whole bunch.