aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorMikulas Patocka <[email protected]>2017-11-07 15:40:40 +0000
committerMike Snitzer <[email protected]>2017-11-10 20:44:59 +0000
commit95b1369a9638cfa322ad1c0cde8efbe524059884 (patch)
tree2a2e8cc8d4add04b7ffefa615e6d9c2ad4b6a2c5 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentdm crypt: allow unaligned bv_offset (diff)
downloadkernel-95b1369a9638cfa322ad1c0cde8efbe524059884.tar.gz
kernel-95b1369a9638cfa322ad1c0cde8efbe524059884.zip
dm integrity: allow unaligned bv_offset
When slub_debug is enabled kmalloc returns unaligned memory. XFS uses this unaligned memory for its buffers (if an unaligned buffer crosses a page, XFS frees it and allocates a full page instead - see the function xfs_buf_allocate_memory). dm-integrity checks if bv_offset is aligned on page size and this check fail with slub_debug and XFS. Fix this bug by removing the bv_offset check, leaving only the check for bv_len. Fixes: 7eada909bfd7 ("dm: add integrity target") Cc: [email protected] # v4.12+ Reported-by: Bruno PrĂ©mont <[email protected]> Reviewed-by: Milan Broz <[email protected]> Signed-off-by: Mikulas Patocka <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions