[ 10.754321][ T201] ip (201) used greatest stack depth: 23632 bytes left [ 10.754339][ T201] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.754342][ T201] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 201, name: ip [ 10.754344][ T201] preempt_count: 2, expected: 0 [ 10.754345][ T201] RCU nest depth: 0, expected: 0 [ 10.754347][ T201] locks held by ip/201: 5, last CPU#1: [ 10.754350][ T201] #0: ffffffffb60027b8 (low_water_lock){+.+.}-{3:3}, at: do_exit+0x887/0xdc0 [ 10.754365][ T201] #1: ffffffffb6169cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.754372][ T201] #2: ffffffffb6169d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.754378][ T201] #3: ffffffffb6089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.754384][ T201] #4: ffffffffb6089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 10.754389][ T201] irq event stamp: 43592 [ 10.754391][ T201] hardirqs last enabled at (43591): [] __down_trylock_console_sem+0x86/0xa0 [ 10.754394][ T201] hardirqs last disabled at (43592): [] console_emit_next_record+0x3d4/0x4c0 [ 10.754397][ T201] softirqs last enabled at (43536): [] handle_softirqs+0x67c/0x900 [ 10.754400][ T201] softirqs last disabled at (41701): [] __irq_exit_rcu+0x145/0x1c0 [ 10.754404][ T201] Preemption disabled at: [ 10.754404][ T201] [<0000000000000000>] 0x0 [ 10.754413][ T201] CPU: 1 UID: 0 PID: 201 Comm: ip Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.754417][ T201] Tainted: [W]=WARN [ 10.754419][ T201] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.754421][ T201] Call Trace: [ 10.754423][ T201] [ 10.754425][ T201] dump_stack_lvl+0x6f/0xa0 [ 10.754433][ T201] __might_resched.cold+0x1fe/0x2c1 [ 10.754439][ T201] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.754445][ T201] ? __kmalloc_noprof+0xdb/0x760 [ 10.754452][ T201] __kmalloc_noprof+0x443/0x760 [ 10.754456][ T201] ? alloc_buf.isra.0+0x4b/0x260 [ 10.754465][ T201] ? do_raw_spin_unlock+0x59/0x250 [ 10.754468][ T201] alloc_buf.isra.0+0x4b/0x260 [ 10.754473][ T201] put_chars+0x1e1/0x2f0 [ 10.754478][ T201] ? __send_to_port+0x420/0x420 [ 10.754480][ T201] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.754486][ T201] ? validate_chain+0x38b/0xc20 [ 10.754495][ T201] hvc_console_print+0x292/0x780 [ 10.754506][ T201] ? hvc_write+0x3a0/0x3a0 [ 10.754509][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.754513][ T201] ? lock_acquire+0x13c/0x160 [ 10.754520][ T201] console_emit_next_record+0x22f/0x4c0 [ 10.754526][ T201] ? devkmsg_read+0x4b0/0x4b0 [ 10.754528][ T201] ? console_flush_one_record+0x106/0x710 [ 10.754534][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.754537][ T201] ? lock_acquire+0x13c/0x160 [ 10.754544][ T201] console_flush_one_record+0x46f/0x710 [ 10.754551][ T201] ? console_emit_next_record+0x4c0/0x4c0 [ 10.754554][ T201] ? __lock_acquire+0x518/0xc20 [ 10.754563][ T201] console_unlock+0xee/0x1f0 [ 10.754568][ T201] ? console_flush_one_record+0x710/0x710 [ 10.754570][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.754574][ T201] ? lock_acquire+0x60/0x160 [ 10.754580][ T201] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.754583][ T201] ? vprintk_emit+0x320/0x3e0 [ 10.754588][ T201] vprintk_emit+0x37c/0x3e0 [ 10.754594][ T201] ? wake_up_klogd_work_func+0x90/0x90 [ 10.754600][ T201] ? __lock_acquire+0x518/0xc20 [ 10.754606][ T201] _printk+0xc7/0x100 [ 10.754611][ T201] ? snapshot_read.cold+0x21/0x21 [ 10.754616][ T201] ? do_raw_spin_lock+0x131/0x280 [ 10.754619][ T201] ? __rwlock_init+0x150/0x150 [ 10.754626][ T201] ? do_raw_spin_lock+0x131/0x280 [ 10.754630][ T201] do_exit.cold+0x82/0x9c [ 10.754636][ T201] ? exit_notify+0x890/0x890 [ 10.754639][ T201] ? __lock_release.isra.0+0x69/0x1a0 [ 10.754643][ T201] ? rcu_is_watching+0x16/0xd0 [ 10.754650][ T201] do_group_exit+0xb8/0x370 [ 10.754655][ T201] __x64_sys_exit_group+0x3c/0x50 [ 10.754658][ T201] x64_sys_call+0x1567/0x1570 [ 10.754661][ T201] do_syscall_64+0xff/0x530 [ 10.754665][ T201] ? exc_page_fault+0xee/0x100 [ 10.754670][ T201] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.754673][ T201] RIP: 0033:0x7ff80a4051b8 [ 10.754676][ T201] Code: Unable to access opcode bytes at 0x7ff80a40518e. [ 10.754678][ T201] RSP: 002b:00007fffef6425e8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 10.754681][ T201] RAX: ffffffffffffffda RBX: 00007ff80a535f88 RCX: 00007ff80a4051b8 [ 10.754683][ T201] RDX: 00007ff80a14ffc8 RSI: fffffffffffffeb8 RDI: 0000000000000000 [ 10.754685][ T201] RBP: 00007fffef642640 R08: 0000000000000000 R09: 0000000000008010 [ 10.754686][ T201] R10: 00007fffef642400 R11: 0000000000000246 R12: 0000000000000001 [ 10.754687][ T201] R13: 0000000000000000 R14: 00007ff80a534680 R15: 00007ff80a535fa0 [ 10.754700][ T201] [ 29.384965][ T362] Initializing XFRM netlink socket [ 29.384985][ T362] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 29.384987][ T362] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 362, name: modprobe [ 29.384989][ T362] preempt_count: 1, expected: 0 [ 29.384990][ T362] RCU nest depth: 0, expected: 0 [ 29.384991][ T362] locks held by modprobe/362: 4, last CPU#3: [ 29.384993][ T362] #0: ffffffffb6169cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 29.385006][ T362] #1: ffffffffb6169d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 29.385010][ T362] #2: ffffffffb6089660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 29.385014][ T362] #3: ffffffffb6089560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x1df/0x4c0 [ 29.385018][ T362] irq event stamp: 24576 [ 29.385019][ T362] hardirqs last enabled at (24575): [] __down_trylock_console_sem+0x86/0xa0 [ 29.385021][ T362] hardirqs last disabled at (24576): [] console_emit_next_record+0x3d4/0x4c0 [ 29.385024][ T362] softirqs last enabled at (22790): [] handle_softirqs+0x67c/0x900 [ 29.385026][ T362] softirqs last disabled at (22097): [] __irq_exit_rcu+0x145/0x1c0 [ 29.385029][ T362] Preemption disabled at: [ 29.385029][ T362] [] vprintk_emit+0x31b/0x3e0 [ 29.385035][ T362] CPU: 3 UID: 0 PID: 362 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 29.385039][ T362] Tainted: [W]=WARN [ 29.385040][ T362] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 29.385041][ T362] Call Trace: [ 29.385043][ T362] [ 29.385045][ T362] dump_stack_lvl+0x6f/0xa0 [ 29.385050][ T362] ? vprintk_emit+0x31b/0x3e0 [ 29.385053][ T362] __might_resched.cold+0x1fe/0x2c1 [ 29.385057][ T362] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 29.385061][ T362] ? __kmalloc_noprof+0xdb/0x760 [ 29.385066][ T362] __kmalloc_noprof+0x443/0x760 [ 29.385069][ T362] ? alloc_buf.isra.0+0x4b/0x260 [ 29.385074][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.385077][ T362] alloc_buf.isra.0+0x4b/0x260 [ 29.385085][ T362] put_chars+0x1e1/0x2f0 [ 29.385087][ T362] ? desc_read_finalized_seq+0x79/0x120 [ 29.385089][ T362] ? __send_to_port+0x420/0x420 [ 29.385092][ T362] ? rcu_read_lock_any_held+0x3c/0x90 [ 29.385096][ T362] ? validate_chain+0x38b/0xc20 [ 29.385100][ T362] hvc_console_print+0x292/0x780 [ 29.385102][ T362] ? __lock_acquire+0x518/0xc20 [ 29.385104][ T362] ? __lock_acquire+0x518/0xc20 [ 29.385109][ T362] ? hvc_write+0x3a0/0x3a0 [ 29.385110][ T362] ? console_emit_next_record+0x1df/0x4c0 [ 29.385113][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.385116][ T362] ? lock_acquire+0x13c/0x160 [ 29.385120][ T362] console_emit_next_record+0x22f/0x4c0 [ 29.385124][ T362] ? devkmsg_read+0x4b0/0x4b0 [ 29.385125][ T362] ? console_flush_one_record+0x106/0x710 [ 29.385128][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.385131][ T362] ? lock_acquire+0x13c/0x160 [ 29.385135][ T362] console_flush_one_record+0x46f/0x710 [ 29.385139][ T362] ? console_emit_next_record+0x4c0/0x4c0 [ 29.385140][ T362] ? __lock_acquire+0x518/0xc20 [ 29.385146][ T362] console_unlock+0xee/0x1f0 [ 29.385148][ T362] ? console_flush_one_record+0x710/0x710 [ 29.385150][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.385153][ T362] ? lock_acquire+0x60/0x160 [ 29.385156][ T362] ? __down_trylock_console_sem+0x5e/0xa0 [ 29.385158][ T362] ? vprintk_emit+0x320/0x3e0 [ 29.385161][ T362] vprintk_emit+0x37c/0x3e0 [ 29.385165][ T362] ? wake_up_klogd_work_func+0x90/0x90 [ 29.385171][ T362] ? xfrm_user_exit+0xd90/0xd90 [xfrm_user] [ 29.385175][ T362] _printk+0xc7/0x100 [ 29.385179][ T362] ? snapshot_read.cold+0x21/0x21 [ 29.385185][ T362] ? do_one_initcall+0x113/0x4f0 [ 29.385188][ T362] xfrm_user_init+0x15/0x1000 [xfrm_user] [ 29.385191][ T362] do_one_initcall+0x124/0x4f0 [ 29.385194][ T362] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 29.385198][ T362] ? do_init_module+0xae/0x8a0 [ 29.385202][ T362] ? kasan_unpoison+0x44/0x70 [ 29.385207][ T362] do_init_module+0x2ad/0x8a0 [ 29.385210][ T362] ? lockdep_hardirqs_on+0x91/0x130 [ 29.385214][ T362] ? free_module+0x470/0x470 [ 29.385218][ T362] ? kfree+0x123/0x590 [ 29.385222][ T362] load_module+0x1424/0x1bb0 [ 29.385229][ T362] ? layout_and_allocate.isra.0+0x680/0x680 [ 29.385234][ T362] ? backing_file_read_iter+0x541/0x790 [ 29.385238][ T362] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 29.385242][ T362] init_module_from_file+0x11f/0x1a0 [ 29.385245][ T362] ? __do_sys_init_module+0x220/0x220 [ 29.385254][ T362] ? __rwlock_init+0x150/0x150 [ 29.385257][ T362] ? do_raw_spin_unlock+0x59/0x250 [ 29.385260][ T362] idempotent_init_module+0x37b/0x7c0 [ 29.385264][ T362] ? init_module_from_file+0x1a0/0x1a0 [ 29.385270][ T362] ? rcu_is_watching+0x16/0xd0 [ 29.385272][ T362] ? cap_capable+0x1d7/0x3d0 [ 29.385278][ T362] __x64_sys_finit_module+0xdf/0x190 [ 29.385280][ T362] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 29.385284][ T362] do_syscall_64+0xff/0x530 [ 29.385286][ T362] ? exc_page_fault+0xee/0x100 [ 29.385289][ T362] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 29.385291][ T362] RIP: 0033:0x7f6fec42137d [ 29.385295][ T362] Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 4b aa 0f 00 f7 d8 64 89 01 48 [ 29.385297][ T362] RSP: 002b:00007ffd51d78498 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 29.385300][ T362] RAX: ffffffffffffffda RBX: 000055e453693810 RCX: 00007f6fec42137d [ 29.385301][ T362] RDX: 0000000000000000 RSI: 000055e43198cffd RDI: 0000000000000000 [ 29.385302][ T362] RBP: 00007ffd51d78530 R08: 0000000000000000 R09: 0000000000000000 [ 29.385303][ T362] R10: 0000000000000000 R11: 0000000000000246 R12: 000055e43198cffd [ 29.385303][ T362] R13: 000055e453693960 R14: 0000000000040000 R15: 0000000000000000 [ 29.385310][ T362]