Messages in this thread | | | Subject | Re: Update to binfmt_misc to use new dcache pre-[PATCH] | Date | Wed, 25 Jun 97 20:36:24 PDT | From | Craig Milo Rogers <> |
| |
>> Shouldn't the length of the full filename path be PATH_MAX >> (currently 1024 in <linux/limits.h>)? On the other hand, will a >> length 1024 cause a kernel stack overflow? >I hope not ;-) (will try to create such a beast today...) > >An other question: Is it good (nice) to alloc 1024 bytes on Stack for a >temporary buffer, or should I use kmalloc/get_free_page for this?
I think kmalloc() is probably the right choice. The kernel stack is quite limited, and there's been several problems reported in the last few months in which particular combinations of events would lead to stack overflows and failure.
Craig Milo Rogers
| |