lkml.org 
[lkml]   [1997]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: Update to binfmt_misc to use new dcache pre-[PATCH]
Date
From
>> 	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


\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.030 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site