Fix for settimeofday() error checking regression
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 1 replyIn review
- v1 RFC2 patches 2 repliesSuperseded
Changes in v2 from the cover letter
* Add logic simplification suggested by Dima Stepanov
* Add tested by tag from Mika
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | time: Fix problematic change in settimeofday error checkinginclude/ | +3 | 0 replies | |
| 2/2 | kselftests: timers: Add set-tz test casetools/ tools/ | +121 | 1 reply |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by.
| Patch | Mika Westerberg |
|---|---|
| 1/2 | T-b |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2 v2] Fix for settimeofday() error checking regression
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.
Thomas: Can you please queue the first patch in tip/timers/urgent?
Shuah: I'll leave the second patch to your discretion.
thanks
-john
v2:
* Add logic simplification suggested by Dima Stepanov
* Add tested by tag from Mika
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
Signature · 1 line
1.9.1