[Bugs] [Bug 1403108] Crash of glusterd when using long username with geo-replication

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 14 15:27:55 UTC 2016


https://bugzilla.redhat.com/show_bug.cgi?id=1403108



--- Comment #2 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: http://review.gluster.org/16084 committed in release-3.9 by Atin
Mukherjee (amukherj at redhat.com) 
------
commit d6527c7194a7d3db7b8270ed5e24c76cb0a91ad4
Author: Kotresh HR <khiremat at redhat.com>
Date:   Wed Dec 7 07:36:19 2016 -0500

    glusterd/geo-rep: Fix glusterd crash

    Problem:
    glusterd crashes when geo-rep mountbroker setup is
    created if the slave user length is more than
    8 characters.

    Cause:
    _POSIX_LOGIN_NAME_MAX is used which is 9 including
    NULL byte.

    Analysis:
    While the man page says it sufficient for portability, but
    acutally it's not. Linux allows the creation of username
    upto 32 characters by default where the max length is 256.
    And NetBSD's max is 17.

    Linux:
      #getconf LOGIN_NAME_MAX
       256
    NetBSD:
      #getconf LOGIN_NAME_MAX
       17

    Fix:
    Use LOGIN_NAME_MAX instead of _POSIX_LOGIN_NAME_MAX

    >Reviewed-on: http://review.gluster.org/16053
    >Smoke: Gluster Build System <jenkins at build.gluster.org>
    >NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    >CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    >Reviewed-by: Aravinda VK <avishwan at redhat.com>
    >Reviewed-by: Atin Mukherjee <amukherj at redhat.com>

    Change-Id: I26b7230433ecbbed6e6914ed39221a478c0266a8
    BUG: 1403108
    Signed-off-by: Kotresh HR <khiremat at redhat.com>
    Reviewed-on: http://review.gluster.org/16084
    Tested-by: Atin Mukherjee <amukherj at redhat.com>
    Smoke: Gluster Build System <jenkins at build.gluster.org>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.org>
    Reviewed-by: Atin Mukherjee <amukherj at redhat.com>

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug https://bugzilla.redhat.com/token.cgi?t=OfzkOyYzxW&a=cc_unsubscribe


More information about the Bugs mailing list