====================================== | [ 3.150939] ------------[ cut here ]------------ | [ 3.151013] refcount_t: underflow; use-after-free. | [ 3.151080] WARNING: CPU: 0 PID: 68 at lib/refcount.c:28 refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) | [ 3.151148] Modules linked in: [ 3.151251] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 3.151298] Workqueue: netns cleanup_net [ 3.151334] RIP: 0010:refcount_warn_saturate (lib/refcount.c:28 (discriminator 3)) [ 3.151382] Code: b9 e8 48 df ba ff 90 0f 0b 90 90 c3 80 3d c9 50 ec 00 00 75 89 c6 05 c0 50 ec 00 01 90 48 c7 c7 c8 4a 12 b9 e8 25 df ba ff 90 <0f> 0b 90 90 c3 80 3d a4 50 ec 00 00 0f 85 62 ff ff ff c6 05 97 50 All code ======== 0: b9 e8 48 df ba mov $0xbadf48e8,%ecx 5: ff 90 0f 0b 90 90 call *-0x6f6ff4f1(%rax) b: c3 ret c: 80 3d c9 50 ec 00 00 cmpb $0x0,0xec50c9(%rip) # 0xec50dc 13: 75 89 jne 0xffffffffffffff9e 15: c6 05 c0 50 ec 00 01 movb $0x1,0xec50c0(%rip) # 0xec50dc 1c: 90 nop 1d: 48 c7 c7 c8 4a 12 b9 mov $0xffffffffb9124ac8,%rdi 24: e8 25 df ba ff call 0xffffffffffbadf4e 29: 90 nop 2a:* 0f 0b ud2 <-- trapping instruction 2c: 90 nop 2d: 90 nop 2e: c3 ret 2f: 80 3d a4 50 ec 00 00 cmpb $0x0,0xec50a4(%rip) # 0xec50da 36: 0f 85 62 ff ff ff jne 0xffffffffffffff9e 3c: c6 .byte 0xc6 3d: 05 .byte 0x5 3e: 97 xchg %eax,%edi 3f: 50 push %rax Code starting with the faulting instruction =========================================== 0: 0f 0b ud2 2: 90 nop 3: 90 nop 4: c3 ret 5: 80 3d a4 50 ec 00 00 cmpb $0x0,0xec50a4(%rip) # 0xec50b0 c: 0f 85 62 ff ff ff jne 0xffffffffffffff74 12: c6 .byte 0xc6 13: 05 .byte 0x5 14: 97 xchg %eax,%edi 15: 50 push %rax [ 3.151495] RSP: 0018:ffffb0c88025fd50 EFLAGS: 00010286 [ 3.151544] RAX: 0000000000000000 RBX: ffffb0c88025fd60 RCX: 00000000ffffdfff [ 3.151617] RDX: 0000000000000000 RSI: 00000000ffffffea RDI: 0000000000000001 [ 3.151708] RBP: ffffb0c88025f878 R08: ffffffffb955ca28 R09: 00000000ffffdfff [ 3.151780] R10: ffffffffb947ca40 R11: ffffffffb952ca40 R12: dead000000000122 [ 3.151849] R13: 00000000fffb77ec R14: 0000000000000001 R15: ffff8bbf86505000 [ 3.151933] FS: 0000000000000000(0000) GS:ffff8bc004fc0000(0000) knlGS:0000000000000000 [ 3.152018] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 3.152070] CR2: 00007efd8cd12000 CR3: 000000002ba47001 CR4: 0000000000772ef0 [ 3.152145] PKRU: 55555554 [ 3.152168] Call Trace: [ 3.152199] [ 3.152235] netdev_run_todo (./include/linux/list.h:381 net/core/dev.c:11670) [ 3.152286] ops_undo_list (net/core/net_namespace.c:190 net/core/net_namespace.c:248) [ 3.152328] cleanup_net (net/core/net_namespace.c:698) [ 3.152371] process_one_work (kernel/workqueue.c:3268) [ 3.152419] worker_thread (kernel/workqueue.c:3340 kernel/workqueue.c:3427) [ 3.152459] ? rescuer_thread (kernel/workqueue.c:3373) [ 3.152502] kthread (kernel/kthread.c:463) [ 3.152543] ? kthreads_online_cpu (kernel/kthread.c:412) [ 3.152600] ? kthreads_online_cpu (kernel/kthread.c:412) [ 3.152651] ret_from_fork (arch/x86/kernel/process.c:164) [ 3.152691] ? kthreads_online_cpu (kernel/kthread.c:412) Finger prints: refcount_warn_saturate:netdev_run_todo:ops_undo_list:cleanup_net:process_one_work