From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754523AbbAGS27 (ORCPT ); Wed, 7 Jan 2015 13:28:59 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:56872 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754349AbbAGS24 (ORCPT ); Wed, 7 Jan 2015 13:28:56 -0500 Date: Wed, 7 Jan 2015 10:28:55 -0800 From: Greg KH To: John Stultz Cc: lkml , Sasha Levin , Thomas Gleixner , Ingo Molnar , stable , Andy Lutomirski Subject: Re: [PATCH 2/2] time: adjtimex: Validate the ADJ_FREQUENCY values Message-ID: <20150107182855.GB7699@kroah.com> References: <1420654340-3009-1-git-send-email-john.stultz@linaro.org> <1420654340-3009-3-git-send-email-john.stultz@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1420654340-3009-3-git-send-email-john.stultz@linaro.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 07, 2015 at 10:12:20AM -0800, John Stultz wrote: > From: Sasha Levin > > Verify that the frequency value from userspace is valid and makes sense. > > Unverified values can cause overflows later on. > > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: stable > Cc: Andy Lutomirski > Signed-off-by: Sasha Levin > [jstultz: Fix up bug for negative values and drop redunent cap check] > Signed-off-by: John Stultz > --- > kernel/time/ntp.c | 7 +++++++ > 1 file changed, 7 insertions(+) This is not the correct way to submit patches for inclusion in the stable kernel tree. Please read Documentation/stable_kernel_rules.txt for how to do this properly.