From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: Re: [PATCH net-next v12 06/11] vxlan: add ipv6 support Date: Sat, 31 Aug 2013 10:27:26 -0700 Message-ID: <20130831102726.21896150@nehalam.linuxnetplumber.net> References: <1377927878-23975-1-git-send-email-amwang@redhat.com> <1377927878-23975-7-git-send-email-amwang@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: netdev@vger.kernel.org, "David S. Miller" , David Stevens To: Cong Wang Return-path: Received: from mail-pa0-f50.google.com ([209.85.220.50]:53775 "EHLO mail-pa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754332Ab3HaR13 (ORCPT ); Sat, 31 Aug 2013 13:27:29 -0400 Received: by mail-pa0-f50.google.com with SMTP id fb10so3525153pad.23 for ; Sat, 31 Aug 2013 10:27:29 -0700 (PDT) In-Reply-To: <1377927878-23975-7-git-send-email-amwang@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On Sat, 31 Aug 2013 13:44:33 +0800 Cong Wang wrote: > +#if IS_ENABLED(CONFIG_IPV6) > + } else { > + ipv6_stub->ipv6_sock_mc_join(sk, ifindex, > + &ip->sin6.sin6_addr); > +#endif This isn't safe against IPv6 module getting unloaded. You either have to figure out a reference count method, or disable IPv6 module unload. Since it can only be forced unload anyway, I still argue it should just be disabled (by removing the module exit hook and code).