android_kernel_google_msm/drivers/mmc
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
..
card mmc: card: fix arbitrary write via read handler in mmc_block_test 2017-06-26 17:41:36 +03:00
core mmc: core : fix arbitrary read/write to user space 2016-05-18 10:45:44 -07:00
host mmc: add force poweroff notify and sw reset for some card 2015-05-15 22:34:45 +00:00
Kconfig mmc: Add profiling code to measure performance at MMC layers. 2013-02-25 11:40:32 -08:00
Makefile mmc: sdhci-pci: add platform data 2012-01-11 23:58:47 -05:00