Re: [PATCH 2/2] time: adjtimex: Validate the ADJ_FREQUENCY values

2015-01-07 Thread Greg KH
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 > Si

[PATCH 2/2] time: adjtimex: Validate the ADJ_FREQUENCY values

2015-01-07 Thread John Stultz
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 redunen

[PATCH 2/2] time: adjtimex: Validate the ADJ_FREQUENCY values

2015-01-02 Thread John Stultz
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 Signed-off-by: Sasha Levin [jstultz: Fix up bug for negative values and drop redunent cap check] Signed-o