Re: [patch] stime/settimeofday/adjtimex SMP races (2.2.12 and

Andrea Arcangeli (andrea@suse.de)
Mon, 20 Sep 1999 01:36:48 +0200 (CEST)


On Sun, 19 Sep 1999, Ryan Murray wrote:

>I rebooted today and found that the hwclock had warped to 2002, so there
>may still be a problem...

Do you had the rtc device driver compiled into the kernel? The rtc device
driver still writes to the RTC without holding the xtime_lock in write
mode.

Really hwclock using iopl is racy as well as it can't hold the spinlock
since it's in userspace, but as hwclock on most machines only runs at
shutdown the door for the race should be very small (small enough to get
some testcase-information about /dev/rtc interference).

Andrea

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/