Searched hist:"09 fc68dc" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/lib/ |
H A D | iov_iter.c | 09fc68dc Thu Jun 29 21:25:14 CDT 2017 Al Viro <viro@zeniv.linux.org.uk> iov_iter: saner checks on copyin/copyout
* might_fault() is better checked in caller (and e.g. fault-in + kmap_atomic codepath also needs might_fault() coverage) * we have already done object size checks * we have *NOT* done access_ok() recently enough; we rely upon the iovec array having passed sanity checks back when it had been created and not nothing having buggered it since. However, that's very much non-local, so we'd better recheck that.
So the thing we want does not match anything in uaccess - we need access_ok + kasan checks + raw copy without any zeroing. Just define such helpers and use them here.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> 09fc68dc Thu Jun 29 21:25:14 CDT 2017 Al Viro <viro@zeniv.linux.org.uk> iov_iter: saner checks on copyin/copyout * might_fault() is better checked in caller (and e.g. fault-in + kmap_atomic codepath also needs might_fault() coverage) * we have already done object size checks * we have *NOT* done access_ok() recently enough; we rely upon the iovec array having passed sanity checks back when it had been created and not nothing having buggered it since. However, that's very much non-local, so we'd better recheck that. So the thing we want does not match anything in uaccess - we need access_ok + kasan checks + raw copy without any zeroing. Just define such helpers and use them here. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
|