[Bugs] [Bug 1312200] Handle negative fcntl flock->l_len values

bugzilla at redhat.com bugzilla at redhat.com
Sun Feb 28 20:14:23 UTC 2016


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



--- Comment #3 from Vijay Bellur <vbellur at redhat.com> ---
COMMIT: http://review.gluster.org/13526 committed in release-3.7 by Kaleb
KEITHLEY (kkeithle at redhat.com) 
------
commit 7e65e1b5a9a7bdaa7ca28bc5c1773bc5472f19af
Author: Soumya Koduri <skoduri at redhat.com>
Date:   Fri Jul 10 12:40:24 2015 +0530

    locks: Handle negative values for flock->l_len

    As per 'man 3 fcntl',
    "If l_len is positive, the area affected shall start at
    l_start and end at l_start+l_len−1. If l_len is negative,
    the area affected shall start at l_start+l_len and end at
    l_start−1. Locks may start and extend beyond the current
    end of a file, but shall not extend before the beginning
    of the file."

    Currently we return EINVAL if l_len is found to be negative.
    Fixed the same as mentioned in the man page.

    This is backport of the below patch
        - http://review.gluster.org/11613

    Change-Id: I493ce202c543185fc4ae7266d1aaf9d7e2a66991
    BUG: 1312200
    Signed-off-by: Soumya Koduri <skoduri at redhat.com>
    Reviewed-on: http://review.gluster.org/11613
    Reviewed-by: Kaleb KEITHLEY <kkeithle at redhat.com>
    Reviewed-by: Niels de Vos <ndevos at redhat.com>
    Reviewed-by: Raghavendra G <rgowdapp at redhat.com>
    Reviewed-on: http://review.gluster.org/13526
    Smoke: Gluster Build System <jenkins at build.gluster.com>
    NetBSD-regression: NetBSD Build System <jenkins at build.gluster.org>
    CentOS-regression: Gluster Build System <jenkins at build.gluster.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=nMIeQnBcEt&a=cc_unsubscribe


More information about the Bugs mailing list