Skip to content

Commit

Permalink
Fix for openzfs#6714
Browse files Browse the repository at this point in the history
This 2 line patch fixes a possible integer overflow reported by grsec.

Signed-off-by: Tom Caputi <[email protected]>
  • Loading branch information
Tom Caputi authored and Nasf-Fan committed Nov 4, 2017
1 parent eace930 commit fa94ada
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/zfs/zio_crypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1251,8 +1251,8 @@ zio_crypt_init_uios_zil(boolean_t encrypt, uint8_t *plainbuf,
boolean_t *no_crypt)
{
int ret;
uint64_t txtype;
uint_t nr_src, nr_dst, lr_len, crypt_len;
uint64_t txtype, lr_len;
uint_t nr_src, nr_dst, crypt_len;
uint_t aad_len = 0, nr_iovecs = 0, total_len = 0;
iovec_t *src_iovecs = NULL, *dst_iovecs = NULL;
uint8_t *src, *dst, *slrp, *dlrp, *blkend, *aadp;
Expand Down

0 comments on commit fa94ada

Please sign in to comment.