On Tue, 2024-09-03 at 13:32 -0700, Rick Macklem wrote: > Hi, > > Subject line says it all. As a newbie to the Linux > kernel, I am wondering if an array of 70 pointers > is too big for the kernel stack? > (I assumed it is and kmalloc_array()d it, but thought > I'd check.) > > Thanks for any comments, rick > In the old days, we had 4k stacks and it was quite easy to blow it out putting big stuff there. These days, stacks are 16k (on most arches) so you're probably fine with a 560 byte array there in most cases. Still, with something that large, I usually do a kmalloc, just to be sure. -- Jeff Layton <jlayton@xxxxxxxxxx>