Re: [PATCH] xfs: fix acl count validation in xfs_acl_from_disk()

From: Ben Myers
Date: Fri Dec 16 2011 - 16:18:56 EST


On Mon, Dec 12, 2011 at 04:55:52PM -0500, Xi Wang wrote:
> Commit fa8b18ed didn't prevent the integer overflow and possible
> memory corruption. "count" can go negative and bypass the check.
>
> Signed-off-by: Xi Wang <xi.wang@xxxxxxxxx>

Looks good. Nice catch!
Reviewed-by: Ben Myers <bpm@xxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/