lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Wed, 22 Jun 2011 20:26:14 +0200 From: Jan Kara <jack@...e.cz> To: Lukas Czerner <lczerner@...hat.com> Cc: linux-ext4@...r.kernel.org, Jan Kara <jack@...e.cz> Subject: Re: [PATCH] ext3: Return -EINVAL when start is beyond the end of fs in ext3_trim_fs() On Wed 22-06-11 10:51:09, Lukas Czerner wrote: > We should return -EINVAL when the FITRIM parameters are not sane, but > currently we are exiting silently if start is beyond the end of the > file system. This commit fixes this so we return -EINVAL as other file > systems do. Thanks. Merged. Honza > > Signed-off-by: Lukas Czerner <lczerner@...hat.com> > CC: Jan Kara <jack@...e.cz> > --- > fs/ext3/balloc.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/fs/ext3/balloc.c b/fs/ext3/balloc.c > index fe52297..790cdf3 100644 > --- a/fs/ext3/balloc.c > +++ b/fs/ext3/balloc.c > @@ -2100,7 +2100,7 @@ int ext3_trim_fs(struct super_block *sb, struct fstrim_range *range) > if (unlikely(minlen > EXT3_BLOCKS_PER_GROUP(sb))) > return -EINVAL; > if (start >= max_blks) > - goto out; > + return -EINVAL; > if (start + len > max_blks) > len = max_blks - start; > > -- > 1.7.4.4 > -- Jan Kara <jack@...e.cz> SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-ext4" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists