aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorErez Shitrit <erezsh@mellanox.com>2016-08-28 10:58:30 +0300
committerMister Oyster <oysterized@gmail.com>2017-04-11 10:58:29 +0200
commit7d12e7e056b4d63de5a6aa0348e2484ff11a8ff2 (patch)
treec80218d3eb18e5baae4374eeb2a443779eace065 /include
parent18d4854eed7b4883045681ea660f2e3871c7b991 (diff)
IB/core: Fix use after free in send_leave function
commit 68c6bcdd8bd00394c234b915ab9b97c74104130c upstream. The function send_leave sets the member: group->query_id (group->query_id = ret) after calling the sa_query, but leave_handler can be executed before the setting and it might delete the group object, and will get a memory corruption. Additionally, this patch gets rid of group->query_id variable which is not used. Fixes: faec2f7b96b5 ('IB/sa: Track multicast join/leave requests') Signed-off-by: Erez Shitrit <erezsh@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com> Signed-off-by: Willy Tarreau <w@1wt.eu>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions