[ 9.121469][ T166] TCP: AO key ifindex 200 != sk bound ifindex 2 [ 9.121525][ T166] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.121527][ T166] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 166, name: key-management_ [ 9.121528][ T166] preempt_count: 1, expected: 0 [ 9.121529][ T166] RCU nest depth: 0, expected: 0 [ 9.121530][ T166] locks held by key-management_/166: 5, last CPU#1: [ 9.121532][ T166] #0: ff11000010545690 (sk_lock-AF_INET6){+.+.}-{0:0}, at: do_tcp_setsockopt+0xaf1/0x2880 [ 9.121544][ T166] #1: ffffffffb3579cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.121550][ T166] #2: ffffffffb3579d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.121554][ T166] #3: ffffffffb3499660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.121558][ T166] #4: ffffffffb3499560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.121561][ T166] irq event stamp: 275496 [ 9.121562][ T166] hardirqs last enabled at (275495): [] __down_trylock_console_sem+0x86/0xa0 [ 9.121564][ T166] hardirqs last disabled at (275496): [] console_emit_next_record+0x3d4/0x4c0 [ 9.121566][ T166] softirqs last enabled at (275488): [] do_tcp_setsockopt+0xaf1/0x2880 [ 9.121568][ T166] softirqs last disabled at (275486): [] lock_sock_nested+0x54/0xf0 [ 9.121572][ T166] Preemption disabled at: [ 9.121573][ T166] [] vprintk_emit+0x31b/0x3e0 [ 9.121578][ T166] CPU: 1 UID: 0 PID: 166 Comm: key-management_ Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.121582][ T166] Tainted: [W]=WARN [ 9.121583][ T166] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.121589][ T166] Call Trace: [ 9.121591][ T166] [ 9.121592][ T166] dump_stack_lvl+0x6f/0xa0 [ 9.121598][ T166] ? vprintk_emit+0x31b/0x3e0 [ 9.121600][ T166] __might_resched.cold+0x1fe/0x2c1 [ 9.121604][ T166] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.121609][ T166] ? __kmalloc_noprof+0xdb/0x760 [ 9.121614][ T166] __kmalloc_noprof+0x443/0x760 [ 9.121616][ T166] ? alloc_buf.isra.0+0x4b/0x260 [ 9.121621][ T166] ? do_raw_spin_unlock+0x59/0x250 [ 9.121624][ T166] alloc_buf.isra.0+0x4b/0x260 [ 9.121627][ T166] put_chars+0x1e1/0x2f0 [ 9.121630][ T166] ? check_prev_add+0x316/0xe90 [ 9.121632][ T166] ? __send_to_port+0x420/0x420 [ 9.121635][ T166] ? validate_chain+0x34a/0xc20 [ 9.121640][ T166] hvc_console_print+0x292/0x780 [ 9.121646][ T166] ? hvc_write+0x3a0/0x3a0 [ 9.121648][ T166] ? rcu_is_watching+0x16/0xd0 [ 9.121653][ T166] ? lock_acquire+0x13c/0x160 [ 9.121656][ T166] console_emit_next_record+0x22f/0x4c0 [ 9.121660][ T166] ? devkmsg_read+0x4b0/0x4b0 [ 9.121662][ T166] ? console_flush_one_record+0x106/0x710 [ 9.121665][ T166] ? rcu_is_watching+0x16/0xd0 [ 9.121667][ T166] ? lock_acquire+0x13c/0x160 [ 9.121672][ T166] console_flush_one_record+0x46f/0x710 [ 9.121676][ T166] ? console_emit_next_record+0x4c0/0x4c0 [ 9.121678][ T166] ? __lock_acquire+0x518/0xc20 [ 9.121683][ T166] console_unlock+0xee/0x1f0 [ 9.121686][ T166] ? console_flush_one_record+0x710/0x710 [ 9.121688][ T166] ? rcu_is_watching+0x16/0xd0 [ 9.121690][ T166] ? lock_acquire+0x60/0x160 [ 9.121693][ T166] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.121695][ T166] ? vprintk_emit+0x320/0x3e0 [ 9.121698][ T166] vprintk_emit+0x37c/0x3e0 [ 9.121702][ T166] ? wake_up_klogd_work_func+0x90/0x90 [ 9.121704][ T166] ? __lock_release.isra.0+0x69/0x1a0 [ 9.121709][ T166] _printk+0xc7/0x100 [ 9.121712][ T166] ? snapshot_read.cold+0x21/0x21 [ 9.121714][ T166] ? ___ratelimit+0x4e7/0xa00 [ 9.121719][ T166] ? idr_get_free+0x830/0x830 [ 9.121724][ T166] tcp_ao_add_cmd.cold+0x82/0xa8 [ 9.121729][ T166] ? tcp_ao_cache_traffic_keys.isra.0+0x800/0x800 [ 9.121731][ T166] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.121734][ T166] ? trace_raw_output_rcu_invoke_kfree_bulk_callback+0x5a/0x130 [ 9.121737][ T166] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.121749][ T166] ? __lock_release.isra.0+0x69/0x1a0 [ 9.121751][ T166] ? mark_held_locks+0x40/0x70 [ 9.121755][ T166] do_tcp_setsockopt+0x163a/0x2880 [ 9.121759][ T166] ? tcp_sock_set_maxseg+0x80/0x80 [ 9.121762][ T166] ? _copy_from_user+0x42/0x90 [ 9.121766][ T166] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.121769][ T166] ? rcu_read_lock_any_held+0x30/0x90 [ 9.121771][ T166] ? lockdep_hardirqs_on_prepare.part.0+0x110/0x160 [ 9.121774][ T166] ? mark_usage+0x61/0x170 [ 9.121776][ T166] ? _sub_I_65535_1+0x12/0x20 [ 9.121780][ T166] ? __lock_acquire+0x518/0xc20 [ 9.121786][ T166] do_sock_setsockopt+0x115/0x490 [ 9.121789][ T166] ? __lock_release.isra.0+0x69/0x1a0 [ 9.121792][ T166] ? put_user_ifreq+0x90/0x90 [ 9.121795][ T166] ? __fget_files+0x1e3/0x460 [ 9.121801][ T166] __sys_setsockopt+0xe4/0x150 [ 9.121805][ T166] __x64_sys_setsockopt+0xbd/0x180 [ 9.121807][ T166] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.121811][ T166] ? lockdep_hardirqs_on+0x91/0x130 [ 9.121813][ T166] ? do_syscall_64+0xa6/0x530 [ 9.121815][ T166] do_syscall_64+0xff/0x530 [ 9.121817][ T166] ? irq_exit_rcu+0x1a/0x30 [ 9.121821][ T166] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.121823][ T166] RIP: 0033:0x7f07a619b2de [ 9.121827][ T166] Code: 55 48 63 c9 48 63 ff 45 89 c9 48 89 e5 48 83 ec 08 6a 2c e8 94 72 f7 ff c9 c3 66 90 f3 0f 1e fa 49 89 ca b8 36 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 0a c3 66 0f 1f 84 00 00 00 00 00 48 8b 15 e1 [ 9.121828][ T166] RSP: 002b:00007ffcf1283ed8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 9.121831][ T166] RAX: ffffffffffffffda RBX: 0000000000412854 RCX: 00007f07a619b2de [ 9.121832][ T166] RDX: 0000000000000026 RSI: 0000000000000006 RDI: 0000000000000009 [ 9.121833][ T166] RBP: 0000000000000009 R08: 0000000000000120 R09: 0000000000000000 [ 9.121834][ T166] R10: 00007ffcf1283ef0 R11: 0000000000000246 R12: 00000000000000c8 [ 9.121835][ T166] R13: 000000000000004d R14: 00007f0798000e30 R15: 0000000000000080 [ 9.121841][ T166] [ 9.145301][ T166] TCP: AO key ifindex 200 != sk bound ifindex 2 [ 9.145629][ T166] TCP: AO key ifindex 200 != sk bound ifindex 2 [ 9.145895][ T166] TCP: AO key ifindex 200 != sk bound ifindex 2 [ 9.146219][ T166] TCP: AO key ifindex 200 != sk bound ifindex 2