android_kernel_google_msm/drivers/mmc/card
Maya Erez 2f42b64ee7 mmc: card: fix arbitrary write via read handler in mmc_block_test
In mmc_block_test, the debug_fs based read function handlers write to an
arbitrary buffer which is given by any user. We add an access_ok check
to verify that the address pointed by *buffer is not in kernel space.
Only if the buffer is valid, do we continue the read handler.

Backport reference:
 * Ignore changes from following upstream functions:
   - bkops_test_read
   - long_sequential_read_test_read,
   - long_sequential_write_test_read
   - new_req_notification_test_read

Change-Id: I1413f71be13509a3b4e56b919cfbcbd9fcc9d2bd
Signed-off-by: Lee Susman <lsusman@codeaurora.org>
Signed-off-by: Maya Erez <merez@codeaurora.org>
Signed-off-by: Adrian DC <radian.dc@gmail.com>
2017-06-26 17:41:36 +03:00
..
block.c mmc: block: fix a bug of error handling in MMC driver 2013-10-09 15:55:26 -07:00
Kconfig mmc: add SECURE DISCARD CONFIG 2013-04-18 16:07:51 -07:00
Makefile
mmc_block_test.c mmc: card: fix arbitrary write via read handler in mmc_block_test 2017-06-26 17:41:36 +03:00
mmc_test.c
queue.c mmc: Do not perform blocking BKOPS 2013-03-15 17:08:15 -07:00
queue.h
sdio_uart.c