Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2511114pxb; Fri, 17 Sep 2021 11:22:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIIpWNTUWWNFQC5MkdpatwHB4o1sewKj+eWA9goJNif34IKQ0gSI48SiJUL/not5RxD+3T X-Received: by 2002:a5d:935a:: with SMTP id i26mr9631188ioo.79.1631902948463; Fri, 17 Sep 2021 11:22:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631902948; cv=none; d=google.com; s=arc-20160816; b=fT+oUCf1AOky+LtCeYXNmLt4xQJ+Ho3HfRYk3/1rCRhmT1CqMjZ488RD4uKnkLuz1F TCy0MGE1rFxo8hJ5fTtf4UypaNAvMaqXAd5MktlCFeS6Xa1KrkHwA/cHvIxmj8/p/+vb QQW0oTi4r+LxUVv8UVItD0vHjZtjPnFEEL+FL54Rz9MOvuzEXiCA1ljKr+GI70fNRv0/ SHTY+4Doh30+6c60DoA2sNVaN+EaFx2cf7NyCDSBtooqax1pNDFrOdYa+fb5F7aRzHcz TPHtJoBOxGPi9s15ywY3J1Heqbnffe9atKeqCTZE7ugAaDCAXbidxVlnf2bUPl2Mov+o D+OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=zRoaV9KAwSz72mzYBYBkLflb/tgUNwl5bpEM3U7RSPY=; b=MzL5Wiri2yTgRKCKM/lmGtHmbYTLDx1L9g902RIrmIXFC1/MVoa4OGrYyoq1/KryEz nWfHx5f2bVC6ziBjvDloW3ZAeKL9xkXr9QyJofqIDaE7m3twFePX3EbiJZgRekaTl98J acMtE7r4b4Zke7s3365RnqKeQxtR3ymZXYnqyVjNPiOQzR1DQX/MNl584/35Lc6jBim8 mTfW8IoYFakirDulSnqW+AKlBFQ9I8Ma6MRb53I/T29e6fCFWKBQwKDMNOREfmruZVcF CIVEEwdGubI//8sJEXI1USW6sC0/beDxHc6xLxO4YQTjaBX8CNf/t410Un9Aat/70m2I LsAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O7ftwHAO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p10si7974942ilo.160.2021.09.17.11.22.00; Fri, 17 Sep 2021 11:22:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=O7ftwHAO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245260AbhIQI0y (ORCPT + 99 others); Fri, 17 Sep 2021 04:26:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:47158 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243646AbhIQI0u (ORCPT ); Fri, 17 Sep 2021 04:26:50 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 7F2AB611C3; Fri, 17 Sep 2021 08:25:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1631867129; bh=CSIDt2jIttDSppcDogg4dSvJUyrt+SztAzo3xfKPArQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=O7ftwHAObwxpx0lp/QozRdYMBej++TDJVoIX1D1qMz4HNo7FS2c7ZYZwE9LncI+aU Omo20XW7DDyc5VZvG5jEUtls8joZBp/Cw1YLMLOZEAaCYhN+A6XvI10ZyaYSYt1FXF 3e15eeZ/7fHjtfAiFTRFwJVftiyL1Q5QHJ65etXc= Date: Fri, 17 Sep 2021 10:25:26 +0200 From: Greg Kroah-Hartman To: Arnd Bergmann Cc: Thomas Gleixner , Linux Kernel Mailing List , "# 3.4.x" , Lukas Hannen Subject: Re: [PATCH 5.14 298/334] time: Handle negative seconds correctly in timespec64_to_ns() Message-ID: References: <20210913131113.390368911@linuxfoundation.org> <20210913131123.500712780@linuxfoundation.org> <874kak9moe.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Sep 17, 2021 at 09:31:33AM +0200, Arnd Bergmann wrote: > On Fri, Sep 17, 2021 at 12:32 AM Thomas Gleixner wrote: > > On Wed, Sep 15 2021 at 21:00, Arnd Bergmann wrote: > > > > I have done the analysis. setitimer() does not have any problem with > > that simply because it already checks at the call site that the seconds > > value is > 0 and so do all the other user visible interfaces. See > > get_itimerval() ... > > Right, I now came to the same conclusion after taking a closer look, > see my reply from yesterday. > > > Granted that the kernel internal interfaces do not have those checks, > > but they already have other safety nets in place to prevent this and I > > could not identify any callsite which has trouble with that change. > > > > If I failed to spot one then what the heck is the problem? It was broken > > before that change already! > > My bad for the unfortunate timing. When only saw the patch when Greg > posted it during the stable review and wasn't completely sure about it > at the time, so I was hoping that he could just hold off until you had a chance > to reply either saying that you had already checked this case or that it > was dangerous, but now it's already reverted. > > I agree we should put back the fix into all stable kernels. Ok, I'll queue it up again after this round goes out. thanks for the additional review. greg k-h