summaryrefslogtreecommitdiffstats
path: root/net/ceph/messenger.c
diff options
context:
space:
mode:
authorXi Wang <xi.wang@gmail.com>2012-06-07 02:35:55 +0200
committerAlex Elder <elder@dreamhost.com>2012-06-07 15:28:16 +0200
commita5506049500b30dbc5edb4d07a3577477c1f3643 (patch)
treee0229258f8f389c790f29af687cf5c13911c9bf3 /net/ceph/messenger.c
parentlibceph: fix overflow in osdmap_decode() (diff)
downloadlinux-a5506049500b30dbc5edb4d07a3577477c1f3643.tar.xz
linux-a5506049500b30dbc5edb4d07a3577477c1f3643.zip
libceph: fix overflow in osdmap_apply_incremental()
On 32-bit systems, a large `pglen' would overflow `pglen*sizeof(u32)' and bypass the check ceph_decode_need(p, end, pglen*sizeof(u32), bad). It would also overflow the subsequent kmalloc() size, leading to out-of-bounds write. Signed-off-by: Xi Wang <xi.wang@gmail.com> Reviewed-by: Alex Elder <elder@inktank.com>
Diffstat (limited to 'net/ceph/messenger.c')
0 files changed, 0 insertions, 0 deletions