diff options
author | 2016-03-16 18:15:47 +0800 | |
---|---|---|
committer | 2016-03-17 14:54:42 +0100 | |
commit | 83c742c344c08c2bbe338d45c6ec63110e9d5e3d (patch) | |
tree | 5f491563321cc39266c1d5993085f08ff3620e16 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mmc: atmel-mci: Check pdata for NULL before dereferencing it at DMA config (diff) | |
download | linux-dev-83c742c344c08c2bbe338d45c6ec63110e9d5e3d.tar.xz linux-dev-83c742c344c08c2bbe338d45c6ec63110e9d5e3d.zip |
mmc: block: fix ABI regression of mmc_blk_ioctl
If mmc_blk_ioctl returns -EINVAL, blkdev_ioctl continues to
work without returning err to user-space. But now we check
CAP_SYS_RAWIO firstly, so we return -EPERM to blkdev_ioctl,
which make blkdev_ioctl return -EPERM to user-space directly.
So this will break all the ioctl with BLKROSET. Now we find
Android-adb suffer it for the following log:
remount of /system failed;
couldn't make block device writable: Operation not permitted
openat(AT_FDCWD, "/dev/block/platform/ff420000.dwmmc/by-name/system", O_RDONLY) = 3
ioctl(3, BLKROSET, 0) = -1 EPERM (Operation not permitted)
Fixes: a5f5774c55a2 ("mmc: block: Add new ioctl to send multi commands")
Cc: stable@vger.kernel.org
Signed-off-by: Shawn Lin <shawn.lin@rock-chips.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions