Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp2255459pxb; Fri, 17 Sep 2021 06:00:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzm3C33/EEn42qUztyoqpOcw9eai0kaQ4ZDROhbkLzvw8jvSwDTOMb82jk7rGY1Hyy3TdkP X-Received: by 2002:a92:2c0d:: with SMTP id t13mr7731828ile.99.1631883634108; Fri, 17 Sep 2021 06:00:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631883634; cv=none; d=google.com; s=arc-20160816; b=u7/QYwyvCPPIeobdLISIErCV67p1UOFIG5KSQ+F+mZi5QAbPjhTJDDgtMTPbEP/gPr WYXzKgkQaIZLiYvmewgPBHuRn7ovPXOEIIXT/Z0vofqaoomhkuLqYGnL5O+2/K7z78j5 N0MP64ManACNfdlG6suQOMWw5Wq9SZuiTGT2jxZoyabbGBBzuU3JH3FRd7GJyi8nFTaP v9/aEv8YyM2/3Upt9nqiJ61qatDc6kd8mV759phdo9BVIdGeyemW38vJscsl3gyPH79R MJUYaRHbYobKnoIdgV9YQQHpnk3cutk+hrPfUNn5CCoZErIVmasKNSVJsyw+81fZN4gH LU7A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=pfT+XNG8BsEgyB9fuZ/uCpdWu3gKIzuQRWftSgWPtJU=; b=kHY46O1W1SAW+IRedwFa6lFzvtqePrGUei0tvpBxTZODFCxuvHEEteTnA2BNGOMNns eS+Ozs8f+qMGGO9AHY/bEEiWRu+JvH50yoMb6Z+RIU2GEHOzTi7j04XbDuoa8lnWcIu7 acLgvHe6EXf45vHjG675z8Hc77JQkpvMWgOfr+O+Di+3tdVjhoJgIDgFG39QxE/1XJmJ +OtUqV5z39/2Kt5dNkLj/KCeEbxfpel5Pm1Q/vukUOS3UWQ63rayzybYt8ExObrC+mP7 jQnvPVltjmTeyeUOGhQ8PdO0CFBxKpFr3sqS+YxmHopNG39Z6K3uX+FtJ3gR+AG/RdLo fIQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RyryCH3j; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l5si5286298ioa.54.2021.09.17.06.00.18; Fri, 17 Sep 2021 06:00:34 -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=@kernel.org header.s=k20201202 header.b=RyryCH3j; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240646AbhIQHdN (ORCPT + 99 others); Fri, 17 Sep 2021 03:33:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:60506 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230393AbhIQHdM (ORCPT ); Fri, 17 Sep 2021 03:33:12 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id DEB3660F51; Fri, 17 Sep 2021 07:31:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631863910; bh=HeuwKG3mbLHpdTH2uLeOlk6tLRJ0UBKEWNQbjKU9BEg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=RyryCH3jgYDsY0Z/Ff4gdHiuMpqWW1ISx2ss2GqaQcuJm6tcbaUn2I4a2/9VRfpgS fJmogclEQD5wt8Vo2gwJ0ub5J4JXTH36YVAhUpV0ykFXR+BC8/uyaVcDcZC6Ns2KMX LpZusTcjjdJuvi87mjoZjPLF5Cw0HSdJKeU5X/vng4xiLfpSIOwQ1SaslO323iW/hZ BQJePqMZfCm47ZWCwfL1fWq+0TgCSn+2RkCIZbOfJ99swX7l/neLyfZrd8wv+3gCOg IgCiHJqbz2SKUmYGCjf8m6OOXKa9fqpvTroh1jWsT2kaGWsJtn/EjCmKS8tPUWop0d LozB5Z0I0SiYg== Received: by mail-wm1-f41.google.com with SMTP id l18-20020a05600c4f1200b002f8cf606262so9199443wmq.1; Fri, 17 Sep 2021 00:31:50 -0700 (PDT) X-Gm-Message-State: AOAM531aOrzZdCHmJuxeFGTaZ5B5qvRc41Ge/ibCZbSFNJCZi1geouzf 0C7BYScmtOm+LhYBGtc3VKNcJmwXHe08Eou0wvA= X-Received: by 2002:a05:600c:896:: with SMTP id l22mr13581876wmp.173.1631863909527; Fri, 17 Sep 2021 00:31:49 -0700 (PDT) MIME-Version: 1.0 References: <20210913131113.390368911@linuxfoundation.org> <20210913131123.500712780@linuxfoundation.org> <874kak9moe.ffs@tglx> In-Reply-To: <874kak9moe.ffs@tglx> From: Arnd Bergmann Date: Fri, 17 Sep 2021 09:31:33 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 5.14 298/334] time: Handle negative seconds correctly in timespec64_to_ns() To: Thomas Gleixner Cc: Greg Kroah-Hartman , Linux Kernel Mailing List , "# 3.4.x" , Lukas Hannen Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Arnd