Re: [PATCH 51/79] namei: remove restrictions on nesting depth
From: Al Viro
Date: Wed May 06 2015 - 03:24:14 EST
On Wed, May 06, 2015 at 12:55:28PM +1000, NeilBrown wrote:
> > - if (unlikely(current->total_link_count >= 40)) {
> > + if (unlikely(current->total_link_count >= MAXSYMLINKS)) {
>
> There is still a literal '40' in follow_automount.
>
> current->total_link_count++;
> if (current->total_link_count >= 40)
> return -ELOOP;
>
>
> should that become MAXSYMLINKS too?
Yes, assuming we want to keep it at all...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/