in_atomic(): 1, irqs_disabled(): 0, pid: 21, name: kworker/u4:1 2 locks held by kworker/u4:1/21: #0: ("%s""kkcmd"){+.+.}, at: [] __write_once_size include/linux/compiler.h:305 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] atomic64_set arch/x86/include/asm/atomic64_64.h:33 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] atomic_long_set include/asm-generic/atomic-long.h:56 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] set_work_data kernel/workqueue.c:618 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:645 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] process_one_work+0xadf/0x1bc0 kernel/workqueue.c:2083 #1: (((&strp->msg_timer))){+.-.}, at: [] lockdep_copy_map include/linux/lockdep.h:183 [inline] #1: (((&strp->msg_timer))){+.-.}, at: [] call_timer_fn+0x1cd/0x830 kernel/time/timer.c:1271 CPU: 0 PID: 21 Comm: kworker/u4:1 Not tainted 4.14.0-rc5-next-20171017+ #35 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kkcmd kcm_tx_work Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 ___might_sleep+0x2b2/0x470 kernel/sched/core.c:6052 device lo entered promiscuous mode __might_sleep+0x95/0x190 kernel/sched/core.c:6005 lock_sock_nested+0x37/0x110 net/core/sock.c:2758 lock_sock include/net/sock.h:1461 [inline] strp_sock_lock+0x2e/0x40 net/strparser/strparser.c:466 strp_msg_timeout+0x6c/0xf0 net/strparser/strparser.c:459 call_timer_fn+0x233/0x830 kernel/time/timer.c:1281 expire_timers kernel/time/timer.c:1320 [inline] __run_timers+0x7fd/0xb90 kernel/time/timer.c:1620 run_timer_softirq+0x4c/0xb0 kernel/time/timer.c:1646 __do_softirq+0x2d7/0xb85 kernel/softirq.c:284 invoke_softirq kernel/softirq.c:364 [inline] irq_exit+0x1cc/0x200 kernel/softirq.c:405 exiting_irq arch/x86/include/asm/apic.h:540 [inline] smp_apic_timer_interrupt+0x16b/0x700 arch/x86/kernel/apic/apic.c:1052 apic_timer_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:770 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:777 [inline] RIP: 0010:lock_acquire+0x256/0x580 kernel/locking/lockdep.c:3994 RSP: 0018:ffff8801d986f458 EFLAGS: 00000282 ORIG_RAX: ffffffffffffff11 RAX: dffffc0000000000 RBX: ffff8801d985c580 RCX: 0000000000000000 RDX: 1ffffffff0b58f41 RSI: 0000000000000000 RDI: 0000000000000282 RBP: ffff8801d986f550 R08: 0000000000000000 R09: ffff8801d986ec10 R10: ffff8801d986f438 R11: 1ffff1003b30bb0b R12: 1ffff1003b30de91 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000001 process_one_work+0xb64/0x1bc0 kernel/workqueue.c:2087 worker_thread+0x223/0x1990 kernel/workqueue.c:2246 kthread+0x38b/0x470 kernel/kthread.c:242 ret_from_fork+0x2a/0x40 arch/x86/entry/entry_64.S:431 ================================ WARNING: inconsistent lock state 4.14.0-rc5-next-20171017+ #35 Tainted: G W -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. kworker/u4:1/21 [HC0[0]:SC1[3]:HE1:SE0] takes: (sk_lock-AF_INET){+.?.}, at: [] lock_sock include/net/sock.h:1461 [inline] (sk_lock-AF_INET){+.?.}, at: [] strp_sock_lock+0x2e/0x40 net/strparser/strparser.c:466 {SOFTIRQ-ON-W} state was registered at: __trace_hardirqs_on_caller kernel/locking/lockdep.c:2879 [inline] trace_hardirqs_on_caller+0x421/0x5c0 kernel/locking/lockdep.c:2926 trace_hardirqs_on+0xd/0x10 kernel/locking/lockdep.c:2933 __local_bh_enable_ip+0x9d/0x160 kernel/softirq.c:186 local_bh_enable include/linux/bottom_half.h:31 [inline] lock_sock_nested+0xd9/0x110 net/core/sock.c:2768 lock_sock include/net/sock.h:1461 [inline] sock_setsockopt+0x163/0x1ad0 net/core/sock.c:715 SYSC_setsockopt net/socket.c:1847 [inline] SyS_setsockopt+0x2ff/0x360 net/socket.c:1830 entry_SYSCALL_64_fastpath+0x1f/0xbe irq event stamp: 27702 hardirqs last enabled at (27702): [] restore_regs_and_iret+0x0/0x1d hardirqs last disabled at (27701): [] apic_timer_interrupt+0x98/0xb0 arch/x86/entry/entry_64.S:770 softirqs last enabled at (27586): [] spin_unlock_bh include/linux/spinlock.h:359 [inline] softirqs last enabled at (27586): [] release_sock+0x1d4/0x2a0 net/core/sock.c:2787 softirqs last disabled at (27595): [] invoke_softirq kernel/softirq.c:364 [inline] softirqs last disabled at (27595): [] irq_exit+0x1cc/0x200 kernel/softirq.c:405 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(sk_lock-AF_INET); lock(sk_lock-AF_INET); *** DEADLOCK *** 2 locks held by kworker/u4:1/21: #0: ("%s""kkcmd"){+.+.}, at: [] __write_once_size include/linux/compiler.h:305 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] atomic64_set arch/x86/include/asm/atomic64_64.h:33 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] atomic_long_set include/asm-generic/atomic-long.h:56 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] set_work_data kernel/workqueue.c:618 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] set_work_pool_and_clear_pending kernel/workqueue.c:645 [inline] #0: ("%s""kkcmd"){+.+.}, at: [] process_one_work+0xadf/0x1bc0 kernel/workqueue.c:2083 #1: (((&strp->msg_timer))){+.-.}, at: [] lockdep_copy_map include/linux/lockdep.h:183 [inline] #1: (((&strp->msg_timer))){+.-.}, at: [] call_timer_fn+0x1cd/0x830 kernel/time/timer.c:1271 stack backtrace: CPU: 0 PID: 21 Comm: kworker/u4:1 Tainted: G W 4.14.0-rc5-next-20171017+ #35 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: kkcmd kcm_tx_work Call Trace: __dump_stack lib/dump_stack.c:16 [inline] dump_stack+0x194/0x257 lib/dump_stack.c:52 print_usage_bug+0x40e/0x43e kernel/locking/lockdep.c:2585 valid_state kernel/locking/lockdep.c:2598 [inline] mark_lock_irq kernel/locking/lockdep.c:2792 [inline] mark_lock+0xe59/0x13d0 kernel/locking/lockdep.c:3190 mark_irqflags kernel/locking/lockdep.c:3068 [inline] __lock_acquire+0x1770/0x3d50 kernel/locking/lockdep.c:3444 lock_acquire+0x1d5/0x580 kernel/locking/lockdep.c:3991 lock_sock_nested+0xc2/0x110 net/core/sock.c:2767 lock_sock include/net/sock.h:1461 [inline] strp_sock_lock+0x2e/0x40 net/strparser/strparser.c:466 strp_msg_timeout+0x6c/0xf0 net/strparser/strparser.c:459 call_timer_fn+0x233/0x830 kernel/time/timer.c:1281 expire_timers kernel/time/timer.c:1320 [inline] __run_timers+0x7fd/0xb90 kernel/time/timer.c:1620 run_timer_softirq+0x4c/0xb0 kernel/time/timer.c:1646 __do_softirq+0x2d7/0xb85 kernel/softirq.c:284 invoke_softirq kernel/softirq.c:364 [inline] irq_exit+0x1cc/0x200 kernel/softirq.c:405 exiting_irq arch/x86/include/asm/apic.h:540 [inline] smp_apic_timer_interrupt+0x16b/0x700 arch/x86/kernel/apic/apic.c:1052 apic_timer_interrupt+0x9d/0xb0 arch/x86/entry/entry_64.S:770 RIP: 0010:arch_local_irq_restore arch/x86/include/asm/paravirt.h:777 [inline] RIP: 0010:lock_acquire+0x256/0x580 kernel/locking/lockdep.c:3994