summaryrefslogtreecommitdiffstats
path: root/fs/ceph
diff options
context:
space:
mode:
authorLi RongQing <roy.qing.li@gmail.com>2014-09-07 12:10:51 +0200
committerIlya Dryomov <idryomov@redhat.com>2014-10-14 19:03:21 +0200
commit589506f1e7f135943bcd34903bcdcf1fdaf00549 (patch)
treee592366a1c1d59e8ca1085fd13a06ebc506420d1 /fs/ceph
parentlibceph: select CRYPTO_CBC in addition to CRYPTO_AES (diff)
downloadlinux-589506f1e7f135943bcd34903bcdcf1fdaf00549.tar.xz
linux-589506f1e7f135943bcd34903bcdcf1fdaf00549.zip
libceph: fix a use after free issue in osdmap_set_max_osd
If the state variable is krealloced successfully, map->osd_state will be freed, once following two reallocation failed, and exit the function without resetting map->osd_state, map->osd_state become a wild pointer. fix it by resetting them after krealloc successfully. Signed-off-by: Li RongQing <roy.qing.li@gmail.com> Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Diffstat (limited to 'fs/ceph')
0 files changed, 0 insertions, 0 deletions