diff options
| author | Petar Penkov <[email protected]> | 2017-08-29 18:20:32 +0000 |
|---|---|---|
| committer | Al Viro <[email protected]> | 2017-09-21 03:27:48 +0000 |
| commit | a90bcb86ae700c12432446c4aa1819e7b8e172ec (patch) | |
| tree | f172eb5b81e958457422d74e66587bf0071ddebe /net/unix/af_unix.c | |
| parent | Linux 4.14-rc1 (diff) | |
| download | kernel-a90bcb86ae700c12432446c4aa1819e7b8e172ec.tar.gz kernel-a90bcb86ae700c12432446c4aa1819e7b8e172ec.zip | |
iov_iter: fix page_copy_sane for compound pages
Issue is that if the data crosses a page boundary inside a compound
page, this check will incorrectly trigger a WARN_ON.
To fix this, compute the order using the head of the compound page and
adjust the offset to be relative to that head.
Fixes: 72e809ed81ed ("iov_iter: sanity checks for copy to/from page
primitives")
Signed-off-by: Petar Penkov <[email protected]>
CC: Al Viro <[email protected]>
CC: Eric Dumazet <[email protected]>
Signed-off-by: Al Viro <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
