Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1582662
| From | Ben Hutchings <ben@decadent.org.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH 3.2 086/126] igmp: do not remove igmp souce list info when set link down |
| Date | 2017-02-16 17:10 +0100 |
| Message-ID | <tbwN3-fF-1@gated-at.bofh.it> (permalink) |
| References | <tbgIi-5XZ-3@gated-at.bofh.it> <tbgIj-5XZ-45@gated-at.bofh.it> <tbjmN-7Jy-1@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Thu, 2017-02-16 at 09:42 +0800, Hangbin Liu wrote:
> > 2017-02-16 6:41 GMT+08:00 Ben Hutchings <ben@decadent.org.uk>:
> > 3.2.85-rc1 review patch. If anyone has any objections, please let me know.
> >
> > ------------------
> >
> > From: Hangbin Liu <liuhangbin@gmail.com>
> >
> > commit 24803f38a5c0b6c57ed800b47e695f9ce474bc3a upstream.
> >
> > In commit 24cf3af3fed5 ("igmp: call ip_mc_clear_src..."), we forgot to remove
> > igmpv3_clear_delrec() in ip_mc_down(), which also called ip_mc_clear_src().
> > This make us clear all IGMPv3 source filter info after NETDEV_DOWN.
> > Move igmpv3_clear_delrec() to ip_mc_destroy_dev() and then no need
> > ip_mc_clear_src() in ip_mc_destroy_dev().
> >
> > On the other hand, we should restore back instead of free all source filter
> > info in igmpv3_del_delrec(). Or we will not able to restore IGMPv3 source
> > filter info after NETDEV_UP and NETDEV_POST_TYPE_CHANGE.
> >
> > Fixes: 24cf3af3fed5 ("igmp: call ip_mc_clear_src() only when ...")
> > Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
> > Signed-off-by: David S. Miller <davem@davemloft.net>
> > [bwh: Backported to 3.2:
> > - Use IGMP_Unsolicited_Report_Count instead of sysctl_igmp_qrv
> > - Adjust context]
> > Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
>
> Hi Ben,
>
> There is a bug fix for this patch, please consider drop this patch or
> include the fix.
>
> commit 9c8bb163ae784be4f79ae504e78c862806087c54
> Author: Hangbin Liu <liuhangbin@gmail.com>
> Date: Wed Feb 8 21:16:45 2017 +0800
>
> igmp, mld: Fix memory leak in igmpv3/mld_del_delrec()
[...]
Thanks. As the second fix is quite recent, I'm going to drop this
patch for now (from both 3.2 and 3.16) and consider applying both of
them in later updates.
Ben.
--
Ben Hutchings
The most exhausting thing in life is being insincere. - Anne Morrow
Lindberg
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH 3.2 086/126] igmp: do not remove igmp souce list info when set link down Ben Hutchings <ben@decadent.org.uk> - 2017-02-16 00:00 +0100
Re: [PATCH 3.2 086/126] igmp: do not remove igmp souce list info when set link down Hangbin Liu <liuhangbin@gmail.com> - 2017-02-16 02:50 +0100
Re: [PATCH 3.2 086/126] igmp: do not remove igmp souce list info when set link down Ben Hutchings <ben@decadent.org.uk> - 2017-02-16 17:10 +0100
csiph-web