Re: [PATCH] net: ipv4: current group_info should be put after using.

From: Mateusz Guzik
Date: Sun May 11 2014 - 17:57:08 EST


On Sun, Apr 13, 2014 at 10:54:07PM -0400, David Miller wrote:
> From: "Wang, Xiaoming" <xiaoming.wang@xxxxxxxxx>
> Date: Mon, 14 Apr 2014 12:30:45 -0400
>
> > Plug a group_info refcount leak in ping_init.
> > group_info is only needed during initialization and
> > the code failed to release the reference on exit.
> > While here move grabbing the reference to a place
> > where it is actually needed.
> >
> > Signed-off-by: Chuansheng Liu <chuansheng.liu@xxxxxxxxx>
> > Signed-off-by: Zhang Dongxing <dongxing.zhang@xxxxxxxxx>
> > Signed-off-by: xiaoming wang <xiaoming.wang@xxxxxxxxx>
>
> Applied and queued up for -stable, thanks.

I see this only made its way to 3.12 kernel, what is holding up inclusion
in other kernels? (or maybe this question should be directed at someone
else?)

The bug was introduced with:
commit c319b4d76b9e583a5d88d6bf190e079c4e43213d
Author: Vasiliy Kulikov <segoon@xxxxxxxxxxxx>
Date: Fri May 13 10:01:00 2011 +0000
net: ipv4: add IPPROTO_ICMP socket kind

starting with 3.0.

Thanks,
--
Mateusz Guzik
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/