From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753119Ab2ABNtY (ORCPT ); Mon, 2 Jan 2012 08:49:24 -0500 Received: from elettra.colt-to.towertech.it ([213.215.222.70]:57108 "EHLO smtp.towertech.it" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752838Ab2ABNtV (ORCPT ); Mon, 2 Jan 2012 08:49:21 -0500 X-Greylist: delayed 457 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Jan 2012 08:49:21 EST Date: Mon, 2 Jan 2012 14:41:38 +0100 From: Alessandro Zummo To: Jonathan Nieder Cc: "P." , rtc-linux@googlegroups.com, linux-kernel@vger.kernel.org, John Stultz , Ben Hutchings , akpm@linux-foundation.org Subject: Re: [PATCH resend] rtc: Fix alarm rollover when day or month is out-of-range Message-ID: <20120102144138.034f5831@linux.lan.towertech.it> In-Reply-To: <20111231003552.GB22266@elie.Belkin> References: <1325289236.85273.YahooMailClassic@web27003.mail.ukl.yahoo.com> <20111231003552.GB22266@elie.Belkin> Organization: Tower Technologies X-Mailer: Claws Mail 3.7.10 (GTK+ 2.24.8; i486-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 30 Dec 2011 18:35:52 -0600 Jonathan Nieder wrote: > From: Ben Hutchings > Date: Thu, 29 Dec 2011 16:41:56 +0100 > > Commit f44f7f96a20a ('RTC: Initialize kernel state from RTC') > introduced a potential infinite loop. If an alarm time contains a > wildcard month and an invalid day (> 31), or a wildcard year and an > invalid month (>= 12), the loop searching for the next matching date > will never terminate. Treat the invalid values as wildcards. > > Fixes , > > Reported-by: leo weppelman > Reported-by: "P. van Gaans" > Cc: stable@vger.kernel.org > Signed-off-by: Ben Hutchings > Signed-off-by: Jonathan Nieder Seems reasonable, ty. Acked-by: Alessandro Zummo -- Best regards, Alessandro Zummo, Tower Technologies - Torino, Italy http://www.towertech.it