Re: Kernel stack....

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

 



Can I somehow easily ...

Erase the kernel stack of a process, run awhile, and then see how many bytes of that kernel stack changed?

I'm interested in guessing how close to overflow I commonly am running.

http://marc.theaimsgroup.com/?l=kernelnewbies&s=stack+depth
tells me:
"i386 ... kernel stack is a (per process) area of 8KBytes".

On my wn I discovered that inserting the bonehead newbie declaration { char buf[4 + 65530]; } into cdrom.ko along with some other seemingly innocent code makes the kernel go boom. I do not know if in fact thus I did ask to allot 65534 bytes out of 8192, but I figure I may have.

Pat LaVarre

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux