Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp872925imu; Fri, 21 Dec 2018 08:42:32 -0800 (PST) X-Google-Smtp-Source: ALg8bN7WNgjAT2+KJ/KYZVyZ3iNda8UPQSoNefOOe6RhN4poncbnbzf5ss/AAotPd+xoPUyvatyU X-Received: by 2002:a17:902:8c91:: with SMTP id t17mr3128702plo.119.1545410552714; Fri, 21 Dec 2018 08:42:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545410552; cv=none; d=google.com; s=arc-20160816; b=iYFi/q384u4rVyV1BNu/WIRtqsr/vXwXSP1qYQHZVdMw+NyCMfqWUuFz0kZh7tkWbK do3Gvyk4WyxuqA1eUF1NyXp7yuPyqPz00NGw4i4L5oca9o8M1ca1PlJXPLM4AhXBBJXW 1QFfJXc6JDXeyYjHEbqzMTbigFX/m6HJWrIfSKICJuFkQG0W+uP5Mi9xDR20I3Be9JGZ g9p/G9EhWyxO27mnKdQZrBs8TMpzLGE41vuRfXAr58bCdsYiyw1Hc4AafdKBSbIL7ht2 YL+1bZ6xsG+m4/fGIULbBvTnYhGom4BoCaXwyK7JSpYJ62TbzCu3H/LjAFd8YirbTklq 6Y8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=v73THrGTH48rWXzaWbNFlPMjEaysh2khjnluEZfOoi8=; b=CEB6Kp6qsEbs1+EOKk2S/1D5T44vBDYuU8jjhjbqMivZbxaSd5MjC6Q2D0voDxXDUz rAyS0lzttznNSkM5GVkC96mbKP3WeOZ7BnQX6P7gM7dH+ztxaQ4BtWUkwhboPHnKiI4g UsaU3TX5F66rc1iyphudOq3Cwudzu720NcZbT5XCNI4eZOkob/8bFdiJVDmXqwtVIWJJ jNFoTVz6YotAxaBRiJWkiJpHECoZNSWWuMndcOJ8dYfTxg7Ckq1Yroo1wHz/lVeGDy8f ZxxngpIm/esepXl4vL1kM2Vuq76VIcb5r6C53bN4FuS2HUPf+zfm8piL+D0FjUIK4wFs gBHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="ZEm/C0En"; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si7233300pfc.57.2018.12.21.08.42.16; Fri, 21 Dec 2018 08:42:32 -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=fail header.i=@gmail.com header.s=20161025 header.b="ZEm/C0En"; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390349AbeLUMe6 (ORCPT + 99 others); Fri, 21 Dec 2018 07:34:58 -0500 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39903 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390338AbeLUMe5 (ORCPT ); Fri, 21 Dec 2018 07:34:57 -0500 Received: by mail-wr1-f66.google.com with SMTP id t27so5095194wra.6 for ; Fri, 21 Dec 2018 04:34:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:mime-version :content-disposition:user-agent; bh=v73THrGTH48rWXzaWbNFlPMjEaysh2khjnluEZfOoi8=; b=ZEm/C0EnY6G3B7sm+9yLEq1FLtdHin0ARgdLzy1VyG51HHFwprRnPmQK7J9kEvo2z0 uv34Aj3LnN+hsPsbsCs5j7uIt7BjIX0cCB0pk7ii99x5q47DIKnEoWETgfGXpZxpaYFC iCCpF3O0xVov8QVs2S3UJ5TsBMr+hedDpAbkpv17Ep2s8cfmz1GXJRQEPDCdPuRGV7U0 pdb60krpjT7JqQk/lOZ75ekSkXPRcYz5p2jksL15/0EeBqr+ByvgyFg7Pa2TQXuDvqPn FssOcQIqUTDLG2fQHPqO6gGFguV4dSp2I7Bye9tsG0vgyk8WsSV7nYeDHeq1CrrzSOeB KXHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :mime-version:content-disposition:user-agent; bh=v73THrGTH48rWXzaWbNFlPMjEaysh2khjnluEZfOoi8=; b=KqdpvEIwcWxBBGoJolqdy4hWvriNwHbeAc9Qy/u3w/1y/TOdZXcQwIdYgovC4zF2hQ 4gBuZsNCLz8l40xnKapWJcGINPwuICc2AkEopSwyg5Sc1xNUtB1kBDbeuOyDYVkDwc9u YT5fDCMk21JsJ7LYmCIJsiQ+T/koH+v7q7rU/dAiVTDCsi2bSm+h/rofHcv2bfLSfjMP vV8RDPgcOOw9TYOJ5rHR2MOkkuqjufjVr8tsw12aDvYBfJdt8MzKISlKD9EfyYj2irtB WstXVIqu4uZgWEr3sY4IJRw9XXRMpaBYbTrnzxWXA8/a9k0EjJnTRu4lqFzcDSCRqRrU 1mHQ== X-Gm-Message-State: AJcUukcm2ouKELN73EDgezXbkZ7RsHTBjDnbs6rcWuee/LCMjPD/cDwI u8NU0bzB1KWEdp+XctO4Kl4WJur6 X-Received: by 2002:adf:e7d0:: with SMTP id e16mr2602336wrn.142.1545395695891; Fri, 21 Dec 2018 04:34:55 -0800 (PST) Received: from gmail.com (2E8B0CD5.catv.pool.telekom.hu. [46.139.12.213]) by smtp.gmail.com with ESMTPSA id y13sm12400033wme.2.2018.12.21.04.34.54 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Dec 2018 04:34:55 -0800 (PST) Date: Fri, 21 Dec 2018 13:34:53 +0100 From: Ingo Molnar To: Linus Torvalds Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Peter Zijlstra , Andrew Morton Subject: [GIT PULL] timer fix Message-ID: <20181221123453.GA102366@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Linus, Please pull the latest timers-urgent-for-linus git tree from: git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers-urgent-for-linus # HEAD: 0e334db6bb4b1fd1e2d72c1f3d8f004313cd9f94 posix-timers: Fix division by zero bug Fix a division by zero crash in the posix-timers code. Thanks, Ingo ------------------> Thomas Gleixner (1): posix-timers: Fix division by zero bug kernel/time/posix-timers.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/kernel/time/posix-timers.c b/kernel/time/posix-timers.c index bd62b5eeb5a0..31f49ae80f43 100644 --- a/kernel/time/posix-timers.c +++ b/kernel/time/posix-timers.c @@ -289,9 +289,6 @@ static void common_hrtimer_rearm(struct k_itimer *timr) { struct hrtimer *timer = &timr->it.real.timer; - if (!timr->it_interval) - return; - timr->it_overrun += hrtimer_forward(timer, timer->base->get_time(), timr->it_interval); hrtimer_restart(timer); @@ -317,7 +314,7 @@ void posixtimer_rearm(struct kernel_siginfo *info) if (!timr) return; - if (timr->it_requeue_pending == info->si_sys_private) { + if (timr->it_interval && timr->it_requeue_pending == info->si_sys_private) { timr->kclock->timer_rearm(timr); timr->it_active = 1;