lkml.org 
[lkml]   [2015]   [May]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 51/79] namei: remove restrictions on nesting depth
    On Tue,  5 May 2015 06:22:25 +0100 Al Viro <viro@ZenIV.linux.org.uk> wrote:

    > From: Al Viro <viro@zeniv.linux.org.uk>
    >
    > The only restriction is that on the total amount of symlinks
    > crossed; how they are nested does not matter
    >
    > Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
    > ---


    > - 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?

    Thanks,
    NeilBrown
    [unhandled content-type:application/pgp-signature]
    \
     
     \ /
      Last update: 2015-05-06 05:01    [W:4.168 / U:0.172 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site