in_atomic(): 1, irqs_disabled(): 0, pid: 0, name: swapper/1 1 lock held by swapper/1/0: #0: (((&strp->msg_timer))){+.-.}, at: [] lockdep_copy_map include/linux/lockdep.h:183 [inline] #0: (((&strp->msg_timer))){+.-.}, at: [] call_timer_fn+0x1cd/0x830 kernel/time/timer.c:1271 CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.14.0-rc5-mm1+ #18 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 device lo entered promiscuous mode 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:6047 __might_sleep+0x95/0x190 kernel/sched/core.c:6000 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:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:53 RSP: 0018:ffff8801d9f67da8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff11 RAX: dffffc0000000000 RBX: 1ffff1003b3ecfb8 RCX: 0000000000000000 RDX: 1ffffffff0b58f3c RSI: 0000000000000001 RDI: ffffffff85ac79e0 RBP: ffff8801d9f67da8 R08: ffffffff81628ac9 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff85ac79d0 R13: ffff8801d9f67e60 R14: 0000000000000000 R15: ffffffff85ac79c0 arch_safe_halt arch/x86/include/asm/paravirt.h:93 [inline] default_idle+0xbf/0x430 arch/x86/kernel/process.c:341 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:332 default_idle_call+0x36/0x90 kernel/sched/idle.c:98 cpuidle_idle_call kernel/sched/idle.c:156 [inline] do_idle+0x249/0x3a0 kernel/sched/idle.c:245 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:350 start_secondary+0x2dd/0x3e0 arch/x86/kernel/smpboot.c:279 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:238 ================================ WARNING: inconsistent lock state 4.14.0-rc5-mm1+ #18 Tainted: G W -------------------------------- inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage. swapper/1/0 [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: 159100 hardirqs last enabled at (159100): [] restore_regs_and_iret+0x0/0x1d hardirqs last disabled at (159099): [] apic_timer_interrupt+0x98/0xb0 arch/x86/entry/entry_64.S:770 softirqs last enabled at (159022): [] _local_bh_enable+0x1c/0x30 kernel/softirq.c:155 softirqs last disabled at (159023): [] invoke_softirq kernel/softirq.c:364 [inline] softirqs last disabled at (159023): [] 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 *** 1 lock held by swapper/1/0: #0: (((&strp->msg_timer))){+.-.}, at: [] lockdep_copy_map include/linux/lockdep.h:183 [inline] #0: (((&strp->msg_timer))){+.-.}, at: [] call_timer_fn+0x1cd/0x830 kernel/time/timer.c:1271 stack backtrace: CPU: 1 PID: 0 Comm: swapper/1 Tainted: G W 4.14.0-rc5-mm1+ #18 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 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:native_safe_halt+0x6/0x10 arch/x86/include/asm/irqflags.h:53 RSP: 0018:ffff8801d9f67da8 EFLAGS: 00000286 ORIG_RAX: ffffffffffffff11 RAX: dffffc0000000000 RBX: 1ffff1003b3ecfb8 RCX: 0000000000000000 RDX: 1ffffffff0b58f3c RSI: 0000000000000001 RDI: ffffffff85ac79e0 RBP: ffff8801d9f67da8 R08: ffffffff81628ac9 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff85ac79d0 R13: ffff8801d9f67e60 R14: 0000000000000000 R15: ffffffff85ac79c0 arch_safe_halt arch/x86/include/asm/paravirt.h:93 [inline] default_idle+0xbf/0x430 arch/x86/kernel/process.c:341 arch_cpu_idle+0xa/0x10 arch/x86/kernel/process.c:332 default_idle_call+0x36/0x90 kernel/sched/idle.c:98 cpuidle_idle_call kernel/sched/idle.c:156 [inline] do_idle+0x249/0x3a0 kernel/sched/idle.c:245 cpu_startup_entry+0x18/0x20 kernel/sched/idle.c:350 start_secondary+0x2dd/0x3e0 arch/x86/kernel/smpboot.c:279 secondary_startup_64+0xa5/0xb0 arch/x86/kernel/head_64.S:238