diff options
author | Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com> | 2014-01-15 16:56:02 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2014-01-15 16:56:02 +1100 |
commit | 0fc6f4e2e3d58ccf7439a0bdda8f6fb9cecc2d5d (patch) | |
tree | fe3a4d3cbcd3c953c4efd3ae7a6e3544c6d30d0a /drivers/bus/omap_l3_smx.c | |
parent | f3bb86477a28be5c2cec7ae8a3fd2139e5fc97fe (diff) |
splice: fix unexpected size truncation
@splice_desc.total_len is 32 bit(unsigned int) which is used to store the
size passed from userspace which is 64 bit(size_t) so that the size is
unexpectedly truncated
That means vmsplice can not work if the size passed from userspace is >=
4G, for example, we noticed in vmsplice, splice-reader does not do
anything and splice-writer is waiting for available buffer forever if the
size is 4G
Fix it by extending @splice_desc.total_len to 64 bits as well
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Cc: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/bus/omap_l3_smx.c')
0 files changed, 0 insertions, 0 deletions