From: Stephen Hemminger Subject: [BUG] RTNL assert fail via addrconf_join_solicit Date: Fri, 14 Mar 2014 18:42:14 -0700 Message-ID: <20140314184214.34ae9bfb@nehalam.linuxnetplumber.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit To: netdev@vger.kernel.org Return-path: Received: from mail-pd0-f182.google.com ([209.85.192.182]:33163 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752107AbaCOBmS (ORCPT ); Fri, 14 Mar 2014 21:42:18 -0400 Received: by mail-pd0-f182.google.com with SMTP id y10so3249447pdj.13 for ; Fri, 14 Mar 2014 18:42:18 -0700 (PDT) Received: from nehalam.linuxnetplumber.net (static-50-53-83-51.bvtn.or.frontiernet.net. [50.53.83.51]) by mx.google.com with ESMTPSA id un5sm33494341pab.3.2014.03.14.18.42.17 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 14 Mar 2014 18:42:17 -0700 (PDT) Sender: netdev-owner@vger.kernel.org List-ID: When doing VRRP which uses macvlan and multicast, we see the following kernel assertion error. This is on 3.10.33 but looks like no changes in this area in recent kernels. [ 541.030090] RTNL: assertion failed at net/core/dev.c (4496) [ 541.031143] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G O 3.10.33-1-amd64-vyatta #1 [ 541.031145] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2007 [ 541.031146] ffffffff8148a9f0 000000000000002f ffffffff813c98c1 ffff88007c4451f8 [ 541.031148] 0000000000000000 0000000000000000 ffffffff813d3540 ffff88007fc03d18 [ 541.031150] 0000880000000006 ffff88007c445000 ffffffffa0194160 0000000000000000 [ 541.031152] Call Trace: [ 541.031153] [] ? dump_stack+0xd/0x17 [ 541.031180] [] ? __dev_set_promiscuity+0x101/0x180 [ 541.031183] [] ? __hw_addr_create_ex+0x60/0xc0 [ 541.031185] [] ? __dev_set_rx_mode+0xaa/0xc0 [ 541.031189] [] ? __dev_mc_add+0x61/0x90 [ 541.031198] [] ? igmp6_group_added+0xfc/0x1a0 [ipv6] [ 541.031208] [] ? kmem_cache_alloc+0xcb/0xd0 [ 541.031212] [] ? ipv6_dev_mc_inc+0x267/0x300 [ipv6] [ 541.031216] [] ? addrconf_join_solict+0x2e/0x40 [ipv6] [ 541.031219] [] ? ipv6_dev_ac_inc+0x159/0x1f0 [ipv6] [ 541.031223] [] ? addrconf_join_anycast+0x92/0xa0 [ipv6] [ 541.031226] [] ? __ipv6_ifa_notify+0x11e/0x1e0 [ipv6] [ 541.031229] [] ? ipv6_ifa_notify+0x33/0x50 [ipv6] [ 541.031233] [] ? addrconf_dad_completed+0x28/0x100 [ipv6] [ 541.031241] [] ? task_cputime+0x2d/0x50 [ 541.031244] [] ? addrconf_dad_timer+0x136/0x150 [ipv6] [ 541.031247] [] ? addrconf_dad_completed+0x100/0x100 [ipv6] [ 541.031255] [] ? call_timer_fn.isra.22+0x2a/0x90 [ 541.031258] [] ? addrconf_dad_completed+0x100/0x100 [ipv6] [ 541.031261] [] ? run_timer_softirq+0x1a1/0x260 [ 541.031267] [] ? kvm_clock_read+0x1f/0x30 [ 541.031272] [] ? sched_clock+0x5/0x10 [ 541.031274] [] ? sched_clock_local+0x15/0x80 [ 541.031276] [] ? __do_softirq+0xd6/0x1b0 [ 541.031282] [] ? call_softirq+0x1c/0x30 [ 541.031284] [] ? do_softirq+0x75/0xb0 [ 541.031286] [] ? irq_exit+0xbd/0xc0 Also it looks like ipv6 anycast has same potential issue of changing unicast filters without holding rtnl_lock. ipv6_ac_inc -> addrconf_join_solict -> ipv6_dev_mc_inc