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

bugzilla at redhat.com bugzilla at redhat.com
Wed Dec 14 07:09:17 UTC 2016


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



--- Comment #3 from Worker Ant <bugzilla-bot at gluster.org> ---
COMMIT: http://review.gluster.org/16085 committed in release-3.8 by Niels de
Vos (ndevos at redhat.com) 
------
commit 79c25deb4f9dda6502968b1fba3fa235f9d87714
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: 1403109
    Signed-off-by: Kotresh HR <khiremat at redhat.com>
    Reviewed-on: http://review.gluster.org/16085
    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: Niels de Vos <ndevos 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=pI5f7QmV9o&a=cc_unsubscribe


More information about the Bugs mailing list