Re: [PATCH net v2] af_key: fix leaks in key_pol_get_resp and dump_sp.

2019-05-28 Thread Steffen Klassert
On Sat, May 25, 2019 at 07:09:35PM +0100, Jeremy Sowden wrote: > In both functions, if pfkey_xfrm_policy2msg failed we leaked the newly > allocated sk_buff. Free it on error. > > Fixes: 55569ce256ce ("Fix conversion between IPSEC_MODE_xxx and > XFRM_MODE_xxx.") > Reported-by: syzbot+4f0529365f7f

[PATCH net v2] af_key: fix leaks in key_pol_get_resp and dump_sp.

2019-05-25 Thread Jeremy Sowden
In both functions, if pfkey_xfrm_policy2msg failed we leaked the newly allocated sk_buff. Free it on error. Fixes: 55569ce256ce ("Fix conversion between IPSEC_MODE_xxx and XFRM_MODE_xxx.") Reported-by: syzbot+4f0529365f7f2208d...@syzkaller.appspotmail.com Signed-off-by: Jeremy Sowden --- Since v