diff options
| author | Gao Xiang <gaoxiang25@huawei.com> | 2018-08-24 10:02:40 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-08-27 19:46:39 +0200 |
| commit | 1257bf8052bd70dbb4ad70bc23e31f19a8db3f26 (patch) | |
| tree | 8ab1238b8b66d5e160fe1099a9ea339affe37318 /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 89fcd8360e7b3eafe6fe58102fa3cef8bde00b60 (diff) | |
| download | kernel-1257bf8052bd70dbb4ad70bc23e31f19a8db3f26.tar.gz | |
staging: erofs: fix potential overflow in z_erofs_vle_normalaccess_readpage{,s}
As Dan reported in the LKP mailing list:
https://lists.01.org/pipermail/kbuild-all/2018-August/051558.html
New smatch warnings:
drivers/staging/erofs/unzip_vle.c:1359 z_erofs_vle_normalaccess_readpages() warn: should '()->index << 12' be a 64 bit type?
Old smatch warnings:
drivers/staging/erofs/unzip_vle.c:1322 z_erofs_vle_normalaccess_readpage() warn: should 'page->index << 12' be a 64 bit type?
It needs to cast variable's type to erofs_off_t before left shifting.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
