Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp616463yba; Thu, 18 Apr 2019 06:55:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqyI3PuZC5ccRs9UddcIHaezzB+TwBiWTD+U9MVCYq+3W5dpgyTCWcqNLLqny4Kpyky/nxgb X-Received: by 2002:a63:78ce:: with SMTP id t197mr89152140pgc.314.1555595740226; Thu, 18 Apr 2019 06:55:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555595740; cv=none; d=google.com; s=arc-20160816; b=LeES3Uu2sPd24e5sWuS8Ybh5CKQnWODes35w6bCE/salWdvaCZqbWdz8yMQii84j04 L7qY+LtsktD6eUPETr7i2ggBJsw4lNd8qNQo0hhVH//moqVQVrNTXVFWXdTYznT3Y+Cn 3knFuOZwBjW8FrdjzcMp8wDn/n7R1B9V3AW1VecZE39UYIVXnkY+xiDaUvo4txw4nfFD V+FJTnaIvnYm9pJwgDVuJYbSjzc43vFvQMSkBdPIzEPjdnMV0XCVCQ6msOVq8jZLDD+L FY1H9xT3gTsIVNMhRCLq3gngOZVzzMJZakrQU4reJBRPbqGDFecjEUUTDP2mZJk/b33f xzHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=U5d7FWyo3nBz5oSQdSEgCnf1oCh1t3mYGk0DDdpCjgw=; b=kcHdKl77DdcQDJZkj4yB0GVuay/TrKrbIIexI240W1+dyZYO3cCyjkAwQkN+W0JI5K Nw9NaPPL/gUvl6XQTwWWfX8/xrg/M1vqw3Z5QPrt3BUc0bESirsFS2GWEpkYDHd6Y06Q Y0yHnRJ/BnNtcXwpSKZ6wtQjdQ97M48+xytcm8zEKo6/qIMybdcVl0cBVekRwOyhPdDh mU5hOD9f0UGdFIYPeeqXGnZ/kgR2STlNkRgRVJGTepNPzUrR42HwAB3Kn7cYCx5c0hr1 Fm+GInLQl0CpEPlhkKOZSKPpalBPaYsk13TAM2yX2okI5riwKWRCYPWIu2btjO3x1wx2 qg2Q== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f75si2185115pfh.15.2019.04.18.06.55.25; Thu, 18 Apr 2019 06:55:40 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388858AbfDRNyb (ORCPT + 99 others); Thu, 18 Apr 2019 09:54:31 -0400 Received: from mail-ot1-f65.google.com ([209.85.210.65]:45231 "EHLO mail-ot1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728074AbfDRNya (ORCPT ); Thu, 18 Apr 2019 09:54:30 -0400 Received: by mail-ot1-f65.google.com with SMTP id e5so1738882otk.12 for ; Thu, 18 Apr 2019 06:54:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=U5d7FWyo3nBz5oSQdSEgCnf1oCh1t3mYGk0DDdpCjgw=; b=dZMKh+kl/kbP8dIGWN7k08Ff+m9wE1gPQhDPO2GI4WSdHSBPwJcbwIhQvfmO7IXduL h5U/udpOq5ObVdA9nfJA6ts6McRVOd/33IpAQmXTrvATMc7mXMxTcrqNDX039iUyJhI3 m5Wsf6iK+nr/kOSwZQ2Miopy5WE4feeJLaAxfKmG2Gwp5zuZ6Mx4K65BfSwmTRLT4DcC Ox6D7Bykkzimck38/zJEPMo7atg/+uynGmK8DbiMBUqC1OesQKJuFY6Hjo+pZEkgVDcO ch+4+WtiEiCRf1wB5Py30rjKXFM3Nucgq/vRVBMzzaCQSw+7NkPzDN5E5j2ZZLwIY8mo 1k8A== X-Gm-Message-State: APjAAAUkuu4bEDfU05lO+q8JHNAOfOaJb6NQ/J97CAY25XihAXA/wBQ9 xnyELbs22icVmeZPkIkM3R2j5tfwQYCZi9wAGiG7Aw== X-Received: by 2002:a9d:5cca:: with SMTP id r10mr39994648oti.21.1555595670209; Thu, 18 Apr 2019 06:54:30 -0700 (PDT) MIME-Version: 1.0 References: <20190417084833.7401-1-mlichvar@redhat.com> <20190418080710.GE5984@localhost> In-Reply-To: From: Ondrej Mosnacek Date: Thu, 18 Apr 2019 15:54:19 +0200 Message-ID: Subject: Re: [PATCH] ntp: Allow TAI-UTC offset to be set to zero To: Thomas Gleixner Cc: Miroslav Lichvar , Linux kernel mailing list , John Stultz , Richard Cochran , Prarit Bhargava Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 18, 2019 at 11:07 AM Thomas Gleixner wrote: > On Thu, 18 Apr 2019, Miroslav Lichvar wrote: > > On Wed, Apr 17, 2019 at 11:00:23AM +0200, Ondrej Mosnacek wrote: > > > On Wed, Apr 17, 2019 at 10:48 AM Miroslav Lichvar wrote: > > > > Change the ADJ_TAI check to accept zero as a valid TAI-UTC offset in > > > > order to allow setting it back to the initial value. > > > > > Thanks for sending the patch! Maybe you (or the committer) could > > > consider adding: > > > > > > Fixes: 153b5d054ac2 ("ntp: support for TAI") > > > > To me the change looks more like an extension of the API, rather than > > a bug fix, so I'd leave that up to the committer. > > I don't see why we need to backport that all the way, but I'm happy to add > the tag if there is some really good reason. OK, I can live without it, it's just that it kind of breaks the tests for the recent time auditing patches [1] (I try to reset to previous values when triggering events). I worked around it for now by resetting the value to 1 when original value was 0... I don't know if it can lead to some issues or not, but it would be nice if I could reset to the actual original value... [1] https://github.com/linux-audit/audit-testsuite/pull/82/files#diff-555d96083b536100d9b7e3eea56feadbR76 -- Ondrej Mosnacek Software Engineer, Security Technologies Red Hat, Inc.