Re: 2.1.21 booting problem...

Richard B. Johnson (root@analogic.com)
Thu, 16 Jan 1997 11:51:05 -0500 (EST)


On Thu, 16 Jan 1997, Adam D. Bradley wrote:
> > > It seems that when I try to boot with 2.1.21 it oops's right after init
>
[SNIPPED]
> This is fixed in Alan's patches...or, do it yourself w/ this handy tidbit
> fm Linus (posted just yesterday):
>
> On Tue, 14 Jan 1997, Aaron Tiensivu wrote:
> > Subject: [2.1.21] Instant death
[SNIPPED]
>
> It's due to init/main.c - the "execve(execute_command.." stuff. Add a test
> that execve_command is non-zero before that execve and you should be ok.
>
> Sorry for that, I never saw it on my intel machine due to the way the
> mappings are set up. It was obvious on the alpha, though..
>
> Linus

I didn't save my original init/main.c so I can't make you a diff. Easy
temp fix though, others will find a better way.

A few lines from the end of the file (line 1014) is:

execve(execute_command,argv_init,envp_init);

Just add:
if(execute_command != NULL)
if(*execute_command)
execve(execute_command,argv_init,envp_init);

That'll fix it.

Cheers,
Dick Johnson
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Richard B. Johnson
Project Engineer
Analogic Corporation
Voice : (508) 977-3000 ext. 3754
Fax : (508) 532-6097
Modem : (508) 977-6870
Ftp : ftp@boneserver.analogic.com
Email : rjohnson@analogic.com, johnson@analogic.com
Penguin : Linux version 2.1.21 on an i586 machine (66.15 BogoMips).
Warning : It's hard to remain at the trailing edge of technology.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-