Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Dec 2015 16:44:25 +0300
From:      Slawa Olhovchenkov <slw@zxy.spb.ru>
To:        Bruce Evans <brde@optusnet.com.au>
Cc:        Konstantin Belousov <kostikbel@gmail.com>, src-committers@freebsd.org, Ian Lepore <ian@freebsd.org>, svn-src-all@freebsd.org, Dmitry Chagin <dchagin@freebsd.org>, svn-src-head@freebsd.org
Subject:   Re: svn commit: r292777 - in head: lib/libc/sys sys/kern
Message-ID:  <20151228134425.GH70867@zxy.spb.ru>
In-Reply-To: <20151228200006.Q2819@besplex.bde.org>
References:  <201512271537.tBRFb7nN095297@repo.freebsd.org> <1451236237.1369.9.camel@freebsd.org> <20151228083418.B1014@besplex.bde.org> <20151228081313.GM3625@kib.kiev.ua> <20151228200006.Q2819@besplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 28, 2015 at 09:17:50PM +1100, Bruce Evans wrote:

> On Mon, 28 Dec 2015, Konstantin Belousov wrote:
> 
> > On Mon, Dec 28, 2015 at 09:35:11AM +1100, Bruce Evans wrote:
> >> If this causes a panic, then it is from a sanity check detecting the
> >> invalid conversion later.  A negative value in days breaks the loop
> >> logic but seems to give premature exit from the loops instead of many
> >> iterations.
> > It causes the panic due to out of bound accesses to bin2bcd_data[] array.
> > The issue affects around twenty rtc drivers, according to the quick grep
> > for clock_ts_to_ct() usage.  It probably also affects geom raid modules,
> > but I did not looked there at all.
> >
> > As I understand, people prefer to have ability to test practically
> > useless values for the current time, by the cost the unplugged easy
> > kernel panic, in the production systems ? Am I right ?
> 
> It is not unreasonable to panic when such tests fail, just like for other
> settings of unreasonable values.  Only the superuser can make them, and
> the superuser should know better than to run them on production systems.

Only one valid reasson for panic may be exist: fatal destruction of
internal structures (impossibility to recovery).
All other reaason must not be caused panic.
Disconnecting USB flash.
Removing floppy discs.
Lost root FS.
All above must not be cused panic.

VAX/VMS don't panic after break half of RAM druing intesive work.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151228134425.GH70867>