]> git.baikalelectronics.ru Git - kernel.git/commit
iov_iter: fix the uaccess area in copy_compat_iovec_from_user
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Jan 2021 17:19:26 +0000 (18:19 +0100)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 16 Jan 2021 03:51:42 +0000 (22:51 -0500)
commit272a62df41fb3f543fcf2ebc111d92d1f034b8b5
tree99f8eb6dede1e8eaf467e4513e22a837ae673995
parentb9f13c21938027d87bb5ec6f8c0f97936267f3af
iov_iter: fix the uaccess area in copy_compat_iovec_from_user

sizeof needs to be called on the compat pointer, not the native one.

Fixes: 23151c812e85 ("iov_iter: transparently handle compat iovecs in import_iovec")
Reported-by: David Laight <David.Laight@ACULAB.COM>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
lib/iov_iter.c