diff options
| author | 2020-09-25 22:06:15 +0800 | |
|---|---|---|
| committer | 2020-10-02 18:02:13 +1000 | |
| commit | d340f62db2f6da7f6f05087a4f6f504af9bb4d97 (patch) | |
| tree | 270b6e754f310c2c14965cd79a72d177c05dd498 /lib/math/git:/ssh:/git@git.zx2c4.com | |
| parent | crypto: hisilicon/zip - fix the uncleared debug registers (diff) | |
| download | linux-dev-d340f62db2f6da7f6f05087a4f6f504af9bb4d97.tar.xz linux-dev-d340f62db2f6da7f6f05087a4f6f504af9bb4d97.zip | |
crypto: hisilicon/zip - fix zero length input in GZIP decompress
The zero length input will cause a call trace when use GZIP
decompress like this:
Unable to handle kernel paging request at virtual address
...
lr : get_gzip_head_size+0x7c/0xd0 [hisi_zip]
Judge the input length and return '-EINVAL' when input is invalid.
Fixes: 62c455ca853e("crypto: hisilicon - add HiSilicon ZIP...")
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Yang Shen <shenyang39@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'lib/math/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
