summaryrefslogtreecommitdiff
path: root/kernel/audit.h
diff options
context:
space:
mode:
authorChunwei Chen <tuxoko@gmail.com>2014-04-23 08:35:09 +0400
committerIlya Dryomov <ilya.dryomov@inktank.com>2014-05-16 21:29:26 +0400
commit178eda29ca721842f2146378e73d43e0044c4166 (patch)
tree0a4e1518e04a719ca1c798c0c4a90a6bbe0f4bd9 /kernel/audit.h
parentd6d211db37e75de2ddc3a4f979038c40df7cc79c (diff)
downloadlinux-178eda29ca721842f2146378e73d43e0044c4166.tar.xz
libceph: fix corruption when using page_count 0 page in rbd
It has been reported that using ZFSonLinux on rbd will result in memory corruption. The bug report can be found here: https://github.com/zfsonlinux/spl/issues/241 http://tracker.ceph.com/issues/7790 The reason is that ZFS will send pages with page_count 0 into rbd, which in turns send them to tcp_sendpage. However, tcp_sendpage cannot deal with page_count 0, as it will do get_page and put_page, and erroneously free the page. This type of issue has been noted before, and handled in iscsi, drbd, etc. So, rbd should also handle this. This fix address this issue by fall back to slower sendmsg when page_count 0 detected. Cc: Sage Weil <sage@inktank.com> Cc: Yehuda Sadeh <yehuda@inktank.com> Cc: stable@vger.kernel.org Signed-off-by: Chunwei Chen <tuxoko@gmail.com> Reviewed-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Diffstat (limited to 'kernel/audit.h')
0 files changed, 0 insertions, 0 deletions