Andrew Morton: > > There is apparently no security checking here. No way can we allow this > > for any random user that can open the loopback device read-only and then > > just change its size. > > > > It needs to use all the same security checks as "loop_set_status()" and > > friends, afaik. > > > > oops, didn't think of that. I will add some security checks and send a new patch. But it may not be purely same to loop_set_status() since the checks for encrypt_key or something is unnecessary. > This can overflow if sector_t is 32-bit. Fix with: > > sz = (loff_t)sec << 9; I will fix and send it too. J. R. Okajima -- To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html