aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-integrity.c
diff options
context:
space:
mode:
authorMikulas Patocka <mpatocka@redhat.com>2018-08-22 12:45:51 -0400
committerMike Snitzer <snitzer@redhat.com>2018-09-04 11:25:25 -0400
commite4b069e0945fa14c71cf8b5b89f8b1b2aa68dbc2 (patch)
treec59725182cd0fe512e89d88e6a85d22167957f10 /drivers/md/dm-integrity.c
parentLinux 4.19-rc2 (diff)
downloadlinux-dev-e4b069e0945fa14c71cf8b5b89f8b1b2aa68dbc2.tar.xz
linux-dev-e4b069e0945fa14c71cf8b5b89f8b1b2aa68dbc2.zip
dm verity: fix crash on bufio buffer that was allocated with vmalloc
Since commit d1ac3ff008fb ("dm verity: switch to using asynchronous hash crypto API") dm-verity uses asynchronous crypto calls for verification, so that it can use hardware with asynchronous processing of crypto operations. These asynchronous calls don't support vmalloc memory, but the buffer data can be allocated with vmalloc if dm-bufio is short of memory and uses a reserved buffer that was preallocated in dm_bufio_client_create(). Fix verity_hash_update() so that it deals with vmalloc'd memory correctly. Reported-by: "Xiao, Jin" <jin.xiao@intel.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com> Fixes: d1ac3ff008fb ("dm verity: switch to using asynchronous hash crypto API") Cc: stable@vger.kernel.org # 4.12+ Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md/dm-integrity.c')
0 files changed, 0 insertions, 0 deletions