Skip to content

Instantly share code, notes, and snippets.

@kmanna
Last active August 29, 2015 14:01
Show Gist options
  • Save kmanna/336affe17fee55dd8fc1 to your computer and use it in GitHub Desktop.
Save kmanna/336affe17fee55dd8fc1 to your computer and use it in GitHub Desktop.
Ubuntu 14.04 LTS Kernel panic when using Docker + pipework (+ dnsmasq). Sigh.
[ 2975.325505] ------------[ cut here ]------------
[ 2975.325515] WARNING: CPU: 5 PID: 4604 at /build/buildd/linux-3.13.0/fs/sysfs/dir.c:486 sysfs_warn_dup+0x86/0xa0()
[ 2975.325517] sysfs: cannot create duplicate filename '/devices/virtual/net/em1.30/upper_ph3491eth1'
[ 2975.325519] Modules linked in: macvlan veth xt_nat bridge ip6t_REJECT xt_hl ip6t_rt nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT xt_LOG aufs ipt_MASQUERADE iptable_nat nf_nat_ipv4 xt_limit xt_tcpudp xt_addrtype
nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack iptable_filter ip_tables x_tables snd_hda_cod
ec_realtek radeon ttm snd_hda_intel snd_hda_codec 8021q drm_kms_helper snd_hwdep snd_pcm garp snd_page_alloc drm i2c_algo_bit dcdbas gpio_ich coretemp stp mrp dell_wmi sparse_keymap ppdev llc snd_timer serio_raw s
nd i7core_edac edac_core wmi kvm_intel soundcore kvm lpc_ich mac_hid parport_pc e1000e ptp pps_core lp parport btrfs xor hid_apple usbhid hid raid6_pq libcrc32c psmouse ahci libahci
[ 2975.325579] CPU: 5 PID: 4604 Comm: ip Not tainted 3.13.0-24-generic #47-Ubuntu
[ 2975.325582] Hardware name: Dell Inc. OptiPlex 980 /0C522T, BIOS A13 01/21/2013
[ 2975.325583] 0000000000000009 ffff8801e853d610 ffffffff81715ac4 ffff8801e853d658
[ 2975.325588] ffff8801e853d648 ffffffff810676bd ffff8800bea77000 ffff8800bea77000
[ 2975.325591] ffff88021325f000 0000000000000000 0000000000000001 ffff8801e853d6a8
[ 2975.325594] Call Trace:
[ 2975.325601] [<ffffffff81715ac4>] dump_stack+0x45/0x56
[ 2975.325605] [<ffffffff810676bd>] warn_slowpath_common+0x7d/0xa0
[ 2975.325608] [<ffffffff8106772c>] warn_slowpath_fmt+0x4c/0x50
[ 2975.325612] [<ffffffff81230936>] sysfs_warn_dup+0x86/0xa0
[ 2975.325615] [<ffffffff81230990>] sysfs_add_one+0x40/0x50
[ 2975.325618] [<ffffffff812314ff>] sysfs_do_create_link_sd.isra.2+0xbf/0x210
[ 2975.325621] [<ffffffff81231675>] sysfs_create_link+0x25/0x50
[ 2975.325626] [<ffffffff81618049>] __netdev_adjacent_dev_insert+0x1d9/0x270
[ 2975.325629] [<ffffffff816c0031>] ? addrconf_prefix_rcv+0x191/0xa50
[ 2975.325633] [<ffffffff8161cc4d>] __netdev_adjacent_dev_link_lists+0x2d/0x80
[ 2975.325636] [<ffffffff8161cdc1>] __netdev_adjacent_dev_link_neighbour+0x71/0xa0[ 2975.325639] [<ffffffff8161cf30>] __netdev_upper_dev_link+0xf0/0x460
[ 2975.325644] [<ffffffff8108fb46>] ? raw_notifier_call_chain+0x16/0x20[ 2975.325648] [<ffffffff81619db0>] ? dev_queue_xmit_nit+0x220/0x220
[ 2975.325651] [<ffffffff8161d2b2>] netdev_upper_dev_link+0x12/0x20
[ 2975.325656] [<ffffffffa0661ea7>] macvlan_common_newlink+0x197/0x3a0 [macvlan]
[ 2975.325659] [<ffffffff81619f40>] ? netif_rx+0x190/0x190
[ 2975.325662] [<ffffffffa06620cc>] macvlan_newlink+0x1c/0x20 [macvlan]
[ 2975.325666] [<ffffffff8162cc15>] rtnl_newlink+0x4f5/0x5d0
[ 2975.325669] [<ffffffff8162c85e>] ? rtnl_newlink+0x13e/0x5d0
[ 2975.325673] [<ffffffff81629539>] rtnetlink_rcv_msg+0x99/0x260
[ 2975.325678] [<ffffffff811a2778>] ? __kmalloc_node_track_caller+0x58/0x1e0
[ 2975.325683] [<ffffffff8116c409>] ? zone_statistics+0x89/0xa0
[ 2975.325687] [<ffffffff8160b45e>] ? __alloc_skb+0x7e/0x2b0
[ 2975.325690] [<ffffffff816294a0>] ? rtnetlink_rcv+0x30/0x30
[ 2975.325694] [<ffffffff81647a89>] netlink_rcv_skb+0xa9/0xc0
[ 2975.325697] [<ffffffff81629498>] rtnetlink_rcv+0x28/0x30
[ 2975.325700] [<ffffffff816470b5>] netlink_unicast+0xd5/0x1b0
[ 2975.325703] [<ffffffff8164748f>] netlink_sendmsg+0x2ff/0x740
[ 2975.325707] [<ffffffff8160254b>] sock_sendmsg+0x8b/0xc0
[ 2975.325712] [<ffffffff811af0f6>] ? __mem_cgroup_commit_charge+0x156/0x3d0
[ 2975.325715] [<ffffffff8160223e>] ? move_addr_to_kernel.part.16+0x1e/0x60
[ 2975.325718] [<ffffffff81602df1>] ? move_addr_to_kernel+0x21/0x30
[ 2975.325722] [<ffffffff81602db9>] ___sys_sendmsg+0x3a9/0x3c0
[ 2975.325725] [<ffffffff81721aa4>] ? __do_page_fault+0x204/0x560
[ 2975.325731] [<ffffffff811112fc>] ? acct_account_cputime+0x1c/0x20
[ 2975.325735] [<ffffffff8109d76b>] ? account_user_time+0x8b/0xa0
[ 2975.325738] [<ffffffff816034c2>] __sys_sendmsg+0x42/0x80
[ 2975.325741] [<ffffffff81603512>] SyS_sendmsg+0x12/0x20
[ 2975.325745] [<ffffffff817266bf>] tracesys+0xe1/0xe6
[ 2975.325747] ---[ end trace 0ed65c038331012b ]---
[ 2975.325763] ------------[ cut here ]------------
[ 2975.325794] kernel BUG at /build/buildd/linux-3.13.0/net/core/dev.c:6385!
[ 2975.325829] invalid opcode: 0000 [#1] SMP
[ 2975.325858] Modules linked in: macvlan veth xt_nat bridge ip6t_REJECT xt_hl ip6t_rt nf_conntrack_ipv6 nf_defrag_ipv6 ipt_REJECT xt_LOG aufs ipt_MASQUERADE iptable_nat nf_nat_ipv4 xt_limit xt_tcpudp xt_addrtype nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack ip6table_filter ip6_tables nf_conntrack_netbios_ns nf_conntrack_broadcast nf_nat_ftp nf_nat nf_conntrack_ftp nf_conntrack iptable_filter ip_tables x_tables snd_hda_codec_realtek radeon ttm snd_hda_intel snd_hda_codec 8021q drm_kms_helper snd_hwdep snd_pcm garp snd_page_alloc drm i2c_algo_bit dcdbas gpio_ich coretemp stp mrp dell_wmi sparse_keymap ppdev llc snd_timer serio_raw snd i7core_edac edac_core wmi kvm_intel soundcore kvm lpc_ich mac_hid parport_pc e1000e ptp pps_core lp parport btrfs xor hid_apple usbhid hid raid6_pq libcrc32c psmouse ahci libahci
[ 2975.326458] CPU: 5 PID: 4604 Comm: ip Tainted: G W 3.13.0-24-generic #47-Ubuntu
[ 2975.326499] Hardware name: Dell Inc. OptiPlex 980 /0C522T, BIOS A13 01/21/2013
[ 2975.326543] task: ffff8800d66a2fe0 ti: ffff8801e853c000 task.ti: ffff8801e853c000
[ 2975.326580] RIP: 0010:[<ffffffff8161ea1f>] [<ffffffff8161ea1f>] free_netdev+0xff/0x110
[ 2975.326625] RSP: 0018:ffff8801e853d8d8 EFLAGS: 00010293[ 2975.326653] RAX: 0000000000000001 RBX: ffff8800bea70018 RCX: 00000000000001a1
[ 2975.326689] RDX: 0000000000000001 RSI: 0000000016421640 RDI: 0000000000000282[ 2975.326719] RBP: ffff8801e853d8f0 R08: 0003c168fffffee0 R09: ffffffc0fffffee0
[ 2975.326739] R10: ffffffc0fffffee0 R11: 00000004fffffff8 R12: ffff8800bea70060
[ 2975.326759] R13: ffff8800bea70000 R14: ffff8801e853d900 R15: ffffffffa0664000
[ 2975.326779] FS: 00007f2177c68740(0000) GS:ffff88021fd40000(0000) knlGS:0000000000000000
[ 2975.326802] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2975.326818] CR2: 00007fff1c54e660 CR3: 00000001e8dff000 CR4: 00000000000007e0
[ 2975.326838] Stack:
[ 2975.326845] 00000000ffffffef ffffffff81cd9b00 ffff8801e853d920 ffff8801e853dae8
[ 2975.326874] ffffffff8162cc98 0000000000000000 ffff88020fdcda4c 0000000000000000
[ 2975.326902] ffffffff8162c85e ffffffff81cd9b00 ffff88020fdcda10 ffff8800bea70000
[ 2975.326930] Call Trace:
[ 2975.326940] [<ffffffff8162cc98>] rtnl_newlink+0x578/0x5d0
[ 2975.326956] [<ffffffff8162c85e>] ? rtnl_newlink+0x13e/0x5d0
[ 2975.326974] [<ffffffff81629539>] rtnetlink_rcv_msg+0x99/0x260
[ 2975.326992] [<ffffffff811a2778>] ? __kmalloc_node_track_caller+0x58/0x1e0
[ 2975.327012] [<ffffffff8116c409>] ? zone_statistics+0x89/0xa0
[ 2975.327029] [<ffffffff8160b45e>] ? __alloc_skb+0x7e/0x2b0
[ 2975.327046] [<ffffffff816294a0>] ? rtnetlink_rcv+0x30/0x30
[ 2975.327063] [<ffffffff81647a89>] netlink_rcv_skb+0xa9/0xc0
[ 2975.327079] [<ffffffff81629498>] rtnetlink_rcv+0x28/0x30
[ 2975.327095] [<ffffffff816470b5>] netlink_unicast+0xd5/0x1b0
[ 2975.327112] [<ffffffff8164748f>] netlink_sendmsg+0x2ff/0x740
[ 2975.327130] [<ffffffff8160254b>] sock_sendmsg+0x8b/0xc0
[ 2975.327150] [<ffffffff811af0f6>] ? __mem_cgroup_commit_charge+0x156/0x3d0
[ 2975.327180] [<ffffffff8160223e>] ? move_addr_to_kernel.part.16+0x1e/0x60
[ 2975.327216] [<ffffffff81602df1>] ? move_addr_to_kernel+0x21/0x30
[ 2975.327249] [<ffffffff81602db9>] ___sys_sendmsg+0x3a9/0x3c0
[ 2975.327280] [<ffffffff81721aa4>] ? __do_page_fault+0x204/0x560
[ 2975.327313] [<ffffffff811112fc>] ? acct_account_cputime+0x1c/0x20
[ 2975.327345] [<ffffffff8109d76b>] ? account_user_time+0x8b/0xa0
[ 2975.327378] [<ffffffff816034c2>] __sys_sendmsg+0x42/0x80
[ 2975.327407] [<ffffffff81603512>] SyS_sendmsg+0x12/0x20
[ 2975.327435] [<ffffffff817266bf>] tracesys+0xe1/0xe6
[ 2975.327461] Code: b8 e6 ff 5b 41 5c 41 5d 5d c3 66 90 e8 1b 8d b6 ff e9 53 ff ff ff 66 0f 1f 44 00 00 4c 89 ef e8 b8 fe ff ff 5b 41 5c 41 5d 5d c3 <0f> 0b 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 66 66 66 66
[ 2975.327772] RIP [<ffffffff8161ea1f>] free_netdev+0xff/0x110
[ 2975.327805] RSP <ffff8801e853d8d8>
[ 2975.345783] ---[ end trace 0ed65c038331012c ]---
@SteveDiamond
Copy link

I had the same problem. The issue was renaming the macvlan in the network namespace. If you never change the name, everything gets cleaned up when you delete the interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment