Skip to content

Commit

Permalink
Fix uio_prefaultpages for 0 length iovec
Browse files Browse the repository at this point in the history
Userspace can freely pass in whatever iovec it feels like, and it's perfectly
legal to pass an iovec which contains a zero length segment. In the current
implementation, uio_prefaultpages would touch an out of bound byte in the
"last byte" logic. While this probably wouldn't cause any critical error, we
would like uio_prefaultpages to be able to continue gracefully.

Signed-off-by: Chunwei Chen <david.chen@osnexus.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes openzfs#4078
  • Loading branch information
Chunwei Chen authored and goulven riou committed Feb 4, 2016
1 parent 058fa9d commit 0a55a78
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 0a55a78

Please sign in to comment.