Skip to contentSkip to conversation

Leap Second Kernel Panic??

DISCUSSION Michael D. Berger 2 participants 2 messages Jan 3, 2006 – Jan 4, 2006

lore
Share & tools
lore
#0 lore raw

I have two linux boxes that run all the time. I was away for a few days over New Year, and came home to find both boxes locked up with this on the screens, with the only differences shown by yy and xxxxxxxx:

Red Hat Enterprise Linux WS release 4(Nahant)
Kernel 2.6.9-5.EL on an i686

mbrcyy login: Clock: inserting leap second: 23:59:60 UTC

   Kernel panic - not syncing: net/ipv4/tcp_timer.c:211:
   spin_lock(net/ipv4/tcp_minisocks.c:xxxxxxxx) already locked by
   net/ipv4/tcp_ipv4.c/1790

yy = 32, xxxxxxxx = f5fee080
yy = 20, xxxxxxxx = c276aa40

I add that both boxes are running:
ntpd (but only one talks to the outside world) net_queue_d, a new and rather complex libipq daemon I am developing

I of course suspect my libipq daemon, but the apparent relation to the leap second is peculiar.

Assistance would be much appreciated. If additional information would help, please tell me what it is.

Thanks,
Mike.

--
Michael D. Berger
[email protected]

#1 lore raw

I have a mix of boxes 2.6.14, 2.4.23-ck1 and 2.6.12-gentoo-r10, those are at my home now, all three of them where on at 23:59:60 UTC and inserted the leap second ok, in fact I logged it with ntptime and the result was two 23:59:59 moments.

I logged this with a crude shell:
while true ; do ntptime ; echo ; sleep 1 ; done

The result was:

ntp_gettime() returns code 1 (INS)
time c76199fe.9f8fa000 Sun, Jan 1 2006 0:59:58.623, (.623285), maximum error 830140 us, estimated error 362 us
ntp_adjtime() returns code 1 (INS)
modes 0x0 (),
offset 879.000 us, frequency -60.010 ppm, interval 4 s, maximum error 830140 us, estimated error 362 us,
status 0x11 (PLL,INS),
time constant 5, precision 1.000 us, tolerance 512 ppm, pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200.000 us, intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.

ntp_gettime() returns code 1 (INS)
time c76199ff.a091b000 Sun, Jan 1 2006 0:59:59.627, (.627223), maximum error 830652 us, estimated error 362 us
ntp_adjtime() returns code 1 (INS)
modes 0x0 (),
offset 879.000 us, frequency -60.010 ppm, interval 4 s, maximum error 830652 us, estimated error 362 us,
status 0x11 (PLL,INS),
time constant 5, precision 1.000 us, tolerance 512 ppm, pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200.000 us, intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.

ntp_gettime() returns code 3 (OOP)
time c76199ff.a197b000 Sun, Jan 1 2006 0:59:59.631, (.631221), maximum error 831164 us, estimated error 362 us
ntp_adjtime() returns code 3 (OOP)
modes 0x0 (),
offset 879.000 us, frequency -60.010 ppm, interval 4 s, maximum error 831164 us, estimated error 362 us,
status 0x11 (PLL,INS),
time constant 5, precision 1.000 us, tolerance 512 ppm, pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200.000 us, intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.

ntp_gettime() returns code 4 (WAIT)
time c7619a00.a2b8b000 Sun, Jan 1 2006 1:00:00.635, (.635631), maximum error 831676 us, estimated error 362 us
ntp_adjtime() returns code 4 (WAIT)
modes 0x0 (),
offset 878.000 us, frequency -60.010 ppm, interval 4 s, maximum error 831676 us, estimated error 362 us,
status 0x11 (PLL,INS),
time constant 5, precision 1.000 us, tolerance 512 ppm, pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200.000 us, intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.

ntp_gettime() returns code 4 (WAIT)
time c7619a01.a3a25000 Sun, Jan 1 2006 1:00:01.639, (.639195), maximum error 832188 us, estimated error 362 us
ntp_adjtime() returns code 4 (WAIT)
modes 0x0 (),
offset 878.000 us, frequency -60.010 ppm, interval 4 s, maximum error 832188 us, estimated error 362 us,
status 0x11 (PLL,INS),
time constant 5, precision 1.000 us, tolerance 512 ppm, pps frequency 0.000 ppm, stability 512.000 ppm, jitter 200.000 us, intervals 0, jitter exceeded 0, stability exceeded 0, errors 0.

Perhaps your code expected always a time increment and when faced the second 23:59:59 moment failed?.

--
Jorge Nerín
<[email protected]>