Bug 92481
Summary: | Recent patches to ntp.c and time.c prevent correction by ptpd2 | ||
---|---|---|---|
Product: | Timers | Reporter: | George Joseph (george.joseph) |
Component: | Other | Assignee: | john stultz (john.stultz) |
Status: | CLOSED PATCH_ALREADY_AVAILABLE | ||
Severity: | high | CC: | arekm, embedded |
Priority: | P1 | ||
Hardware: | ARM | ||
OS: | Linux | ||
Kernel Version: | 3.18.5 | Subsystem: | |
Regression: | No | Bisected commit-id: | |
Attachments: | Patch to fix false positives on 32bit systems |
Description
George Joseph
2015-02-02 04:10:07 UTC
Thanks for the report! Could you confirm that it is only the "time: adjtimex: Validate the ADJ_FREQUENCY values" patch that needs to be reverted? thanks -john Created attachment 165631 [details]
Patch to fix false positives on 32bit systems
Can you try this patch ontop of the affected kernel to validate it resolves the issue for you?
(In reply to john stultz from comment #2) > Created attachment 165631 [details] > Patch to fix false positives on 32bit systems > > Can you try this patch ontop of the affected kernel to validate it resolves > the issue for you? Funny, I was just checking the value of (LONG_MIN / PPM_SCALE) and (LONG_MIN / PPM_SCALE) and they were evaluating to -32 and 32. :) So, yep... using LLONG gives the correct -140737488355 to 140737488355 range. Thanks for looking at this so quickly! Oh, and just to confirm the unstated... ptpd is now able to maintain the clock. Willing to provide a Tested-by: tag? (In reply to john stultz from comment #5) > Willing to provide a Tested-by: tag? Sure... Tested-by: George Joseph <george.joseph@fairview5.com> Thanks! I'll be sending the patch out later today. Apologies for this being a bit slow to make it upstream. The patch has made it to the -tip tree, and hopefully will be submitted to Linus soon. Backporting the patch into 3.10.67 and above solves the "adjtime: invalid argument" problem with openntpd. Patch has been merged for awhile. Closing this out. Let me know if there are any continued issues. |