svn commit: r292777 - in head: lib/libc/sys sys/kern

Slawa Olhovchenkov slw at zxy.spb.ru
Mon Dec 28 13:44:32 UTC 2015


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.


More information about the svn-src-head mailing list