はじめまして、と208.5日でリブートするカーネルのバグについて

閲覧: 2,358 回
最初の未読メッセージにスキップ

ryo kawaguchi

未読、
2012/01/06 2:40:362012/01/06
To: Scientific Linux Users Group Japan
はじめまして

民間企業でエンジニアをしております、川口と申します。
よろしくお願いします。

早速ですが、約208.5日連続稼動するとリプートが発生するというカーネルのバグが
あるようです。

「sched_clock() overflow after 208.5 days in Linux Kernel」
http://kenichiokuyama.blogspot.com/

対策のためのアップデート情報などを、お持ちのかたは、いらっしゃいますか?

以上です。

Akemi Yagi

未読、
2012/01/06 4:48:382012/01/06
To: sl-us...@googlegroups.com
矢木です。

少し調べてみたところ、kernel 3.1.5にはこのバグの修正がはいっている
ようです。

http://git.kernel.org/?p=linux/kernel/git/tip/tip.git;a=commitdiff;h=4cecf6d401a01d054afc1e5f605bcbfe553cb9b9

RHEL/SL 6 のコード (timer.h) は修正されていないので、バグの影響は
ありそうです。しかし bugzilla.redhat.com あたりを探してみましたが、
それらしい報告は見つかりませんでした。

一番てっとりばやい(?)対策は200+日がくる前に計画的なrebootを行うこと
ではないでしょうか。で、どうせrebootをするのなら、上記のパッチを
いれたkernelをビルドしてそれを使うのがとりあえずの回避策としては
よいのではと思いますが。

2012/1/5 ryo kawaguchi <rka...@gmail.com>:

Akemi Yagi

未読、
2012/01/06 13:14:182012/01/06
To: sl-us...@googlegroups.com
再び矢木です。

RHEL-6のメーリングリストに問い合わせてみたところ、RHから次のような返事が
ありました。

======================================
From: Robin Price II <rprice redhat com>
To: rhelv6-list redhat com
Date: Fri, 06 Jan 2012 11:55:08 -0500

Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=765720

This is private due to private information from customer use cases. If
you need further details, I would highly encourage you to contact Red
Hat support or your TAM.

Here is the initial information opened in the BZ:

"The following patch is in urgent fix for Linus branch, which avoid the

unnecessary overflow in sched_clock otherwise kernel will crash after
209~250 days.

http://git.kernel.org/?p=linux/kernel/git/tip/tip.git;a=patch;h=4cecf6d401a01d054afc1e5f605bcbfe553cb9b9

In hundreds of days, the __cycles_2_ns calculation in sched_clock

has an overflow. cyc * per_cpu(cyc2ns, cpu) exceeds 64 bits, causing
the final value to become zero. We can solve this without losing any
precision. We can decompose TSC into quotient and remainder of
division by the scale factor, and then use this to convert TSC into
nanoseconds."

~rp
=========================================

Bzの内容が読めないのではっきりしませんが、おそらく緊急扱いになっているのでは
と想像しています。しかし次のkernel updateが修正されるかは出てみないと
わかりません。

2012/1/6 Akemi Yagi <amy...@gmail.com>:

Akemi Yagi

未読、
2012/01/25 11:46:112012/01/25
To: sl-us...@googlegroups.com
矢木です。

kernel update (2.6.32-220.4.1.el6) が RH よりリリースされましたが、
このバグの修正はされていません。:-(

2012/1/6 Akemi Yagi <amy...@gmail.com>:

Kamae Norihiro

未読、
2012/02/14 8:21:262012/02/14
To: sl-us...@googlegroups.com
はじめまして, 釡江です.

RHからの今回のアップデートで, 本件が修正されたようです.
https://rhn.redhat.com/errata/RHBA-2012-0124.html
SLからももうすぐリリースされるでしょう.

--
釡江 典裕

全員に返信
投稿者に返信
転送
新着メール 0 件