Re: Kernel 2.6.5 - Compaq Fibre Channel 64-bit/66Mhz HBA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bolke de Bruin wrote:
>So the basic question is. Does this controller work on kernel 2.6.5?

The problem is that the default stack size was reduced to 4kB. The local 
arrays allocated by the driver eat 2kB each, so a stack overflow is very 
likely. Even with 8kB stack it is still not impossible. Using the version 
from 2.6.5 will not be a very good idea I think, it's likely to crash your 
machine one day.

The right solution would be fixing the driver to use kmalloc()/kfree() when he 
really needs the memory. There was a patch only a few days ago that tried to 
do that, but it was not really well done and would have crashed. If you are 
really interested in I can do such a patch. The code of this driver sucks 
universes through nanotubes, but one day someone _will_ have to start 
cleaning this up.

Eike

Attachment: pgpDX9tRvsu0N.pgp
Description: PGP signature


[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux