Florian Lehner wrote: > John Fastabend wrote: > > I think this is OK, but just curious is there a real use-case > > that has keys bigger than stack size or is this just an > > in-theory observation. > > The use-case for this patch originates to implement allow/disallow > lists for files and file paths. The maximum length of file paths is > defined by PATH_MAX with 4096 chars including nul. > This limit exceeds MAX_BPF_STACK. > > Thanks, > Florian OK the check appears unnecessary. It seems a bit excessive to have such large keys though. Daniel, Alexei I couldn't find this patch in patchworks, not sure where it went. Acked-by: John Fastabend <john.fastabend@xxxxxxxxx>