From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754361AbcEaVcW (ORCPT ); Tue, 31 May 2016 17:32:22 -0400 Received: from mail-pf0-f182.google.com ([209.85.192.182]:33161 "EHLO mail-pf0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750813AbcEaVcU (ORCPT ); Tue, 31 May 2016 17:32:20 -0400 From: John Stultz To: linux-kernel@vger.kernel.org Cc: John Stultz , Mika Westerberg , Baolin Wang , Thomas Gleixner , Shuah Khan , Arnd Bergmann , Ingo Molnar , Richard Cochran , Prarit Bhargava Subject: [RFC][PATCH 0/2] Fix for settimeofday() error checking regression Date: Tue, 31 May 2016 14:32:13 -0700 Message-Id: <1464730335-21427-1-git-send-email-john.stultz@linaro.org> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As reported by Mika Westerberg here: https://lkml.org/lkml/2016/5/30/413 A regression in the settimeofday error checking snuck in via 86d3473224b0 ("time: Introduce do_sys_settimeofday64()"), effecting cases where the timeval is null but the timezone was set. This patchset contains my proposed fix and an addition to the kselftests to add checks for this case. Testing/feedback would be greatly appreciated! thanks -john Cc: Mika Westerberg Cc: Baolin Wang Cc: Thomas Gleixner Cc: Shuah Khan Cc: Arnd Bergmann Cc: Ingo Molnar Cc: Richard Cochran Cc: Prarit Bhargava John Stultz (2): time: Fix problematic change in settimeofday error checking kselftests: timers: Add set-tz test case include/linux/timekeeping.h | 3 + tools/testing/selftests/timers/Makefile | 3 +- tools/testing/selftests/timers/set-tz.c | 119 ++++++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 tools/testing/selftests/timers/set-tz.c -- 1.9.1