lkml.org 
[lkml]   [2018]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] libceph: fix use after free
On Tue, Nov 27, 2018 at 11:47:56AM +0300, Sergei Shtylyov wrote:
> Hello!
>
> On 27.11.2018 10:02, Pan Bian wrote:
>
> >The function ceph_monc_handle_map calls kfree(old) to free the old
> >monitor map, old points to monc->monmap. However, after that, it reads
> >monc->monmap->epoch and passes it to __ceph_monc_got_map. This result in
> >a use-after-free bug. The patch moves the free operation after the call
> >to __ceph_monc_got_map.
> >
> >Fixes: 82dcabad750("libceph: revamp subs code, switch to SUBSCRIBE2
>
> Space needed before (.
>
> >protocol")
>
> Never break up the commit summary in this tag.

Thanks for the guidance, I will correct it.

>
> >Signed-off-by: Pan Bian <bianpan2016@163.com>
> [...]
>
> MBR, Sergei

\
 
 \ /
  Last update: 2018-11-27 10:10    [W:0.038 / U:0.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site