From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932602AbdFLPlf (ORCPT ); Mon, 12 Jun 2017 11:41:35 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:33899 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932561AbdFLPld (ORCPT ); Mon, 12 Jun 2017 11:41:33 -0400 Date: Mon, 12 Jun 2017 17:41:30 +0200 (CEST) From: Thomas Gleixner To: Prarit Bhargava cc: linux-kernel@vger.kernel.org, John Stultz , Stephen Boyd Subject: Re: [PATCH] time/alarmtimer: Add bounds checking for the timer interval and expiration In-Reply-To: <1497272550-3337-1-git-send-email-prarit@redhat.com> Message-ID: References: <1497272550-3337-1-git-send-email-prarit@redhat.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Jun 2017, Prarit Bhargava wrote: > Running the syzkaller timer_hang_poc.c > (https://groups.google.com/forum/#!topic/syzkaller/355tWdc8oHY) causes a > kernel hang by passing in a time that results in the timer being started > with an expiration that exceeds KTIME_MAX. > > Check for overflow values of expiration (exp) and interval. > > Also cleanup the code. Set and check the values, and then modify the > timer. This is already addressed in git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git timers/urgent I just did not come around to send it to Linus last week. Thanks, tglx