Yes. A PAGE_SIZE is the maximum size of any path (and that includes the
ending '\0'). This shows in many places, like "get_name()" and
"sys_getcwd()", and it is acceptable to consider this a real limit.
> Also, my understanding is that the kernel can be preempted when it blocks
> for a disk read, correct? So we still need a hard limit *somewhere* to
> prevent a denial-of-service attack: the attacker creates a long loop of
> symlinks, and then breaks the loop in the middle, isolating the two
> tarjan-algorithm pointers and preventing the lookup from every
> terminating.
We need the limit anyway, to make our stack size limited.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu