Messages in this thread | | | Date | Wed, 6 May 2015 08:24:07 +0100 | From | Al Viro <> | Subject | Re: [PATCH 51/79] namei: remove restrictions on nesting depth |
| |
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...
| |