• Luca Vizzarro's avatar
    fs: Pass argument to fcntl_setlease as int · ed5f17f6
    Luca Vizzarro authored
    The interface for fcntl expects the argument passed for the command
    F_SETLEASE to be of type int. The current code wrongly treats it as
    a long. In order to avoid access to undefined bits, we should explicitly
    cast the argument to int.
    
    Cc: Alexander Viro <viro@zeniv.linux.org.uk>
    Cc: Christian Brauner <brauner@kernel.org>
    Cc: Jeff Layton <jlayton@kernel.org>
    Cc: Chuck Lever <chuck.lever@oracle.com>
    Cc: Trond Myklebust <trond.myklebust@hammerspace.com>
    Cc: Anna Schumaker <anna@kernel.org>
    Cc: Kevin Brodsky <Kevin.Brodsky@arm.com>
    Cc: Vincenzo Frascino <Vincenzo.Frascino@arm.com>
    Cc: Szabolcs Nagy <Szabolcs.Nagy@arm.com>
    Cc: "Theodore Ts'o" <tytso@mit.edu>
    Cc: David Laight <David.Laight@ACULAB.com>
    Cc: Mark Rutland <Mark.Rutland@arm.com>
    Cc: linux-fsdevel@vger.kernel.org
    Cc: linux-cifs@vger.kernel.org
    Cc: linux-nfs@vger.kernel.org
    Cc: linux-morello@op-lists.linaro.org
    Signed-off-by: default avatarLuca Vizzarro <Luca.Vizzarro@arm.com>
    Message-Id: <20230414152459.816046-3-Luca.Vizzarro@arm.com>
    Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
    ed5f17f6
nfs4file.c 11.1 KB