mirror of
https://github.com/followmsi/android_kernel_google_msm.git
synced 2024-11-06 23:17:41 +00:00
2f42b64ee7
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> |
||
---|---|---|
.. | ||
card | ||
core | ||
host | ||
Kconfig | ||
Makefile |