[XFS updates] XFS development tree branch, master, updated. v3.1-rc1-69-ge49f565

xfs at oss.sgi.com xfs at oss.sgi.com
Tue Sep 27 09:25:55 CDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "XFS development tree".

The branch, master has been updated
  e49f565 xfs: fix possible overflow in xfs_ioc_trim()
      from  ef49624be283c67c40dcdac94ca125e1ddda8ff6 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit e49f565973deb3408c0e1dd83d1f8dac5bcaa374
Author: Lukas Czerner <lczerner at redhat.com>
Date:   Wed Sep 21 09:42:30 2011 +0000

    xfs: fix possible overflow in xfs_ioc_trim()
    
    In xfs_ioc_trim it is possible that computing the last allocation group
    to discard might overflow for big start & len values, because the result
    might be bigger then xfs_agnumber_t which is 32 bit long. Fix this by not
    allowing the start and end block of the range to be beyond the end of the
    file system.
    
    Note that if the start is beyond the end of the file system we have to
    return -EINVAL, but in the "end" case we have to truncate it to the fs
    size.
    
    Also introduce "end" variable, rather than using start+len which which
    might be more confusing to get right as this bug shows.
    
    Signed-off-by: Lukas Czerner <lczerner at redhat.com>
    Reviewed-by: Christoph Hellwig <hch at lst.de>
    Signed-off-by: Alex Elder <aelder at sgi.com>

-----------------------------------------------------------------------

Summary of changes:
 fs/xfs/xfs_discard.c |   20 ++++++++++----------
 1 files changed, 10 insertions(+), 10 deletions(-)


hooks/post-receive
-- 
XFS development tree




More information about the xfs mailing list