[ 9.966848][ T167] TCP: AO key ifindex 200 != sk bound ifindex 2 [ 9.966971][ T167] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 9.966973][ T167] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 167, name: key-management_ [ 9.966974][ T167] preempt_count: 1, expected: 0 [ 9.966975][ T167] RCU nest depth: 0, expected: 0 [ 9.966976][ T167] locks held by key-management_/167: 5, last CPU#2: [ 9.966978][ T167] #0: ff1100000f7d5690 (sk_lock-AF_INET6){+.+.}-{0:0}, at: do_tcp_setsockopt+0xaf1/0x2880 [ 9.966991][ T167] #1: ffffffffaf979cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 9.966997][ T167] #2: ffffffffaf979d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 9.967001][ T167] #3: ffffffffaf899660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 9.967005][ T167] #4: ffffffffaf899560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 9.967009][ T167] irq event stamp: 275428 [ 9.967010][ T167] hardirqs last enabled at (275427): [] __down_trylock_console_sem+0x86/0xa0 [ 9.967013][ T167] hardirqs last disabled at (275428): [] console_emit_next_record+0x3d4/0x4c0 [ 9.967015][ T167] softirqs last enabled at (275420): [] do_tcp_setsockopt+0xaf1/0x2880 [ 9.967017][ T167] softirqs last disabled at (275418): [] lock_sock_nested+0x54/0xf0 [ 9.967021][ T167] Preemption disabled at: [ 9.967021][ T167] [] vprintk_emit+0x31b/0x3e0 [ 9.967028][ T167] CPU: 2 UID: 0 PID: 167 Comm: key-management_ Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 9.967032][ T167] Tainted: [W]=WARN [ 9.967032][ T167] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 9.967034][ T167] Call Trace: [ 9.967036][ T167] [ 9.967038][ T167] dump_stack_lvl+0x6f/0xa0 [ 9.967044][ T167] ? vprintk_emit+0x31b/0x3e0 [ 9.967046][ T167] __might_resched.cold+0x1fe/0x2c1 [ 9.967051][ T167] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 9.967055][ T167] ? __kmalloc_noprof+0xdb/0x760 [ 9.967063][ T167] __kmalloc_noprof+0x443/0x760 [ 9.967066][ T167] ? alloc_buf.isra.0+0x4b/0x260 [ 9.967072][ T167] ? do_raw_spin_unlock+0x59/0x250 [ 9.967074][ T167] alloc_buf.isra.0+0x4b/0x260 [ 9.967078][ T167] put_chars+0x1e1/0x2f0 [ 9.967080][ T167] ? check_prev_add+0x316/0xe90 [ 9.967083][ T167] ? __send_to_port+0x420/0x420 [ 9.967086][ T167] ? validate_chain+0x34a/0xc20 [ 9.967090][ T167] hvc_console_print+0x292/0x780 [ 9.967097][ T167] ? hvc_write+0x3a0/0x3a0 [ 9.967100][ T167] ? rcu_is_watching+0x16/0xd0 [ 9.967104][ T167] ? lock_acquire+0x13c/0x160 [ 9.967108][ T167] console_emit_next_record+0x22f/0x4c0 [ 9.967112][ T167] ? devkmsg_read+0x4b0/0x4b0 [ 9.967114][ T167] ? console_flush_one_record+0x106/0x710 [ 9.967117][ T167] ? rcu_is_watching+0x16/0xd0 [ 9.967119][ T167] ? lock_acquire+0x13c/0x160 [ 9.967123][ T167] console_flush_one_record+0x46f/0x710 [ 9.967127][ T167] ? console_emit_next_record+0x4c0/0x4c0 [ 9.967129][ T167] ? __lock_acquire+0x518/0xc20 [ 9.967135][ T167] console_unlock+0xee/0x1f0 [ 9.967137][ T167] ? console_flush_one_record+0x710/0x710 [ 9.967139][ T167] ? rcu_is_watching+0x16/0xd0 [ 9.967142][ T167] ? lock_acquire+0x60/0x160 [ 9.967145][ T167] ? __down_trylock_console_sem+0x5e/0xa0 [ 9.967147][ T167] ? vprintk_emit+0x320/0x3e0 [ 9.967150][ T167] vprintk_emit+0x37c/0x3e0 [ 9.967154][ T167] ? wake_up_klogd_work_func+0x90/0x90 [ 9.967157][ T167] ? __lock_release.isra.0+0x69/0x1a0 [ 9.967162][ T167] _printk+0xc7/0x100 [ 9.967165][ T167] ? snapshot_read.cold+0x21/0x21 [ 9.967167][ T167] ? ___ratelimit+0x4e7/0xa00 [ 9.967172][ T167] ? idr_get_free+0x830/0x830 [ 9.967177][ T167] tcp_ao_add_cmd.cold+0x82/0xa8 [ 9.967182][ T167] ? tcp_ao_cache_traffic_keys.isra.0+0x800/0x800 [ 9.967185][ T167] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.967188][ T167] ? trace_raw_output_rcu_invoke_kfree_bulk_callback+0x5a/0x130 [ 9.967191][ T167] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.967203][ T167] ? __lock_release.isra.0+0x69/0x1a0 [ 9.967206][ T167] ? mark_held_locks+0x40/0x70 [ 9.967210][ T167] do_tcp_setsockopt+0x163a/0x2880 [ 9.967214][ T167] ? tcp_sock_set_maxseg+0x80/0x80 [ 9.967217][ T167] ? _copy_from_user+0x42/0x90 [ 9.967221][ T167] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 9.967224][ T167] ? rcu_read_lock_any_held+0x30/0x90 [ 9.967227][ T167] ? lockdep_hardirqs_on_prepare.part.0+0x110/0x160 [ 9.967229][ T167] ? mark_usage+0x61/0x170 [ 9.967232][ T167] ? __lock_acquire+0x518/0xc20 [ 9.967238][ T167] do_sock_setsockopt+0x115/0x490 [ 9.967240][ T167] ? __lock_release.isra.0+0x69/0x1a0 [ 9.967243][ T167] ? put_user_ifreq+0x90/0x90 [ 9.967247][ T167] ? __fget_files+0x1e3/0x460 [ 9.967253][ T167] __sys_setsockopt+0xe4/0x150 [ 9.967257][ T167] __x64_sys_setsockopt+0xbd/0x180 [ 9.967260][ T167] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 9.967263][ T167] ? lockdep_hardirqs_on+0x91/0x130 [ 9.967265][ T167] ? do_syscall_64+0xa6/0x530 [ 9.967267][ T167] do_syscall_64+0xff/0x530 [ 9.967269][ T167] ? irq_exit_rcu+0x1a/0x30 [ 9.967273][ T167] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 9.967276][ T167] RIP: 0033:0x7f2ba1aac2de [ 9.967281][ T167] 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.967283][ T167] RSP: 002b:00007ffd23d799f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000036 [ 9.967285][ T167] RAX: ffffffffffffffda RBX: 000000000041285f RCX: 00007f2ba1aac2de [ 9.967287][ T167] RDX: 0000000000000026 RSI: 0000000000000006 RDI: 0000000000000009 [ 9.967288][ T167] RBP: 0000000000000009 R08: 0000000000000120 R09: 0000000000000000 [ 9.967289][ T167] R10: 00007ffd23d79a10 R11: 0000000000000246 R12: 00000000000000c8 [ 9.967290][ T167] R13: 0000000000000038 R14: 00007f2b94000e30 R15: 0000000000000080 [ 9.967297][ T167] [ 9.999518][ T167] TCP: AO key ifindex 200 != sk bound ifindex 2 [ 9.999963][ T167] TCP: AO key ifindex 200 != sk bound ifindex 2 [ 10.000411][ T167] TCP: AO key ifindex 200 != sk bound ifindex 2 [ 10.000798][ T167] TCP: AO key ifindex 200 != sk bound ifindex 2