]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ceph: fix length validation in parse_reply_info()
authorXi Wang <xi.wang@gmail.com>
Sun, 15 Jan 2012 03:20:59 +0000 (22:20 -0500)
committerSage Weil <sage@newdream.net>
Thu, 2 Feb 2012 20:49:11 +0000 (12:49 -0800)
commit32852a81bccd9e3d1953b894966393d1b546576d
tree8c21ce9f1a1e6ecfbeafdcc8552b77b3587bca5b
parentab434b60ab07f8c44246b6fb0cddee436687a09a
ceph: fix length validation in parse_reply_info()

"len" is read from network and thus needs validation.  Otherwise, given
a bogus "len" value, p+len could be an out-of-bounds pointer, which is
used in further parsing.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/mds_client.c