Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
block: blk_rq_map_kern uses the bounce buffers for stack buffers
blk_rq_map_kern is used for kernel internal I/Os. Some callers use this function with stack buffers but DMA to/from the stack buffers leads to memory corruption on a non-coherent platform. This patch make blk_rq_map_kern uses the bounce buffers if a caller passes a stack buffer (on the all platforms for simplicity). Signed-off-by: FUJITA Tomonori <[email protected]> Cc: Bartlomiej Zolnierkiewicz <[email protected]> Cc: Thomas Bogendoerfer <[email protected]> Cc: Tejun Heo <[email protected]> Cc: James Bottomley <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
- Loading branch information