Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1358395
| From | "fengwei.yin" <fengwei.yin@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] mmc: block: remove the check for whole block device for ioctl. |
| Date | 2016-03-16 00:50 +0100 |
| Message-ID | <rd6ST-Ip-41@gated-at.bofh.it> (permalink) |
| References | <rcY8W-3eT-11@gated-at.bofh.it> <rcYiC-3jk-23@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On 2016/3/15 22:31, Christoph Hellwig wrote: > On Tue, Mar 15, 2016 at 11:26:07AM -0400, Yin, Fengwei wrote: >> From: Fengwei Yin <fengwei.yin@linaro.org> >> >> a5f5774c55a2e3ed75f4d6c5556b7bfcb726e6f0 introduced the whole block >> device checking for MMC_IOC_CMD while the old code has no such check. >> >> It breaks some ioctl call like BLKROSET from user space. An example >> is "adb remount" cmd. It prints out following error message: >> "remount of /system failed; couldn't make block device XXXX writable: \ >> Operation not permitted." >> while the command worked fine. >> >> This change move the whole block device checking only for MMC_IOC_MULTI_CMD. > > I think mmc_blk_ioctl_cmd will need this as well, as will probably > do any new ioctl. > > So I think the right fix is to simply return -EINVAL instead of > EPERM if on a partition, which will make all the block layer ioctls > works fine. Fair enough. I will wait for one more day for further comments to the patch. And update the patch tomorrow. Thanks a lot for looking into the patch. Regards Yin, Fengwei >
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] mmc: block: remove the check for whole block device for ioctl. "Yin, Fengwei" <fengwei.yin@linaro.org> - 2016-03-15 15:30 +0100
Re: [PATCH] mmc: block: remove the check for whole block device for ioctl. Christoph Hellwig <hch@infradead.org> - 2016-03-15 15:40 +0100
Re: [PATCH] mmc: block: remove the check for whole block device for ioctl. "fengwei.yin" <fengwei.yin@linaro.org> - 2016-03-16 00:50 +0100
Re: [PATCH] mmc: block: remove the check for whole block device for ioctl. "fengwei.yin" <fengwei.yin@linaro.org> - 2016-03-16 14:50 +0100
csiph-web