[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190724.154946.685191807969201132.davem@davemloft.net>
Date: Wed, 24 Jul 2019 15:49:46 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: xiyou.wangcong@...il.com
Cc: netdev@...r.kernel.org,
syzbot+622bdabb128acc33427d@...kaller.appspotmail.com,
syzbot+6eaef7158b19e3fec3a0@...kaller.appspotmail.com,
syzbot+9399c158fcc09b21d0d2@...kaller.appspotmail.com,
syzbot+a34e5f3d0300163f0c87@...kaller.appspotmail.com,
ralf@...ux-mips.org
Subject: Re: [Patch net] netrom: hold sock when setting skb->destructor
From: Cong Wang <xiyou.wangcong@...il.com>
Date: Mon, 22 Jul 2019 20:41:22 -0700
> sock_efree() releases the sock refcnt, if we don't hold this refcnt
> when setting skb->destructor to it, the refcnt would not be balanced.
> This leads to several bug reports from syzbot.
>
> I have checked other users of sock_efree(), all of them hold the
> sock refcnt.
>
> Fixes: c8c8218ec5af ("netrom: fix a memory leak in nr_rx_frame()")
> Reported-and-tested-by: <syzbot+622bdabb128acc33427d@...kaller.appspotmail.com>
> Reported-and-tested-by: <syzbot+6eaef7158b19e3fec3a0@...kaller.appspotmail.com>
> Reported-and-tested-by: <syzbot+9399c158fcc09b21d0d2@...kaller.appspotmail.com>
> Reported-and-tested-by: <syzbot+a34e5f3d0300163f0c87@...kaller.appspotmail.com>
> Cc: Ralf Baechle <ralf@...ux-mips.org>
> Signed-off-by: Cong Wang <xiyou.wangcong@...il.com>
Applied and queued up for -stable.
Powered by blists - more mailing lists