[ 10.364448][ T179] netconsole: network logging started [ 10.364466][ T179] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.364468][ T179] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 179, name: modprobe [ 10.364470][ T179] preempt_count: 1, expected: 0 [ 10.364471][ T179] RCU nest depth: 0, expected: 0 [ 10.364472][ T179] locks held by modprobe/179: 4, last CPU#0: [ 10.364474][ T179] #0: ffffffff85f99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.364487][ T179] #1: ffffffff85f99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.364491][ T179] #2: ffffffff85e89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.364494][ T179] #3: ffffffff85e89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.364497][ T179] irq event stamp: 35592 [ 10.364498][ T179] hardirqs last enabled at (35591): [] __down_trylock_console_sem+0x86/0xa0 [ 10.364501][ T179] hardirqs last disabled at (35592): [] console_emit_next_record+0x3f8/0x4f0 [ 10.364503][ T179] softirqs last enabled at (33130): [] handle_softirqs+0x67c/0x900 [ 10.364506][ T179] softirqs last disabled at (31905): [] __irq_exit_rcu+0x145/0x1c0 [ 10.364509][ T179] Preemption disabled at: [ 10.364510][ T179] [] vprintk_emit+0x31b/0x3e0 [ 10.364515][ T179] CPU: 0 UID: 0 PID: 179 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.364519][ T179] Tainted: [W]=WARN [ 10.364520][ T179] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.364521][ T179] Call Trace: [ 10.364523][ T179] [ 10.364525][ T179] dump_stack_lvl+0x6f/0xa0 [ 10.364530][ T179] ? vprintk_emit+0x31b/0x3e0 [ 10.364532][ T179] __might_resched.cold+0x1fe/0x2c1 [ 10.364536][ T179] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.364540][ T179] ? __kmalloc_noprof+0xdb/0x760 [ 10.364546][ T179] __kmalloc_noprof+0x443/0x760 [ 10.364548][ T179] ? alloc_buf.isra.0+0x4b/0x260 [ 10.364555][ T179] ? do_raw_spin_unlock+0x59/0x250 [ 10.364557][ T179] alloc_buf.isra.0+0x4b/0x260 [ 10.364561][ T179] put_chars+0x1e1/0x2f0 [ 10.364564][ T179] ? __send_to_port+0x420/0x420 [ 10.364567][ T179] ? validate_chain+0x38b/0xc20 [ 10.364573][ T179] hvc_console_print+0x292/0x780 [ 10.364581][ T179] ? hvc_write+0x3a0/0x3a0 [ 10.364583][ T179] ? rcu_is_watching+0x16/0xd0 [ 10.364587][ T179] ? lock_acquire+0x13c/0x160 [ 10.364591][ T179] console_emit_next_record+0x252/0x4f0 [ 10.364595][ T179] ? devkmsg_read+0x4e0/0x4e0 [ 10.364599][ T179] ? rcu_is_watching+0x16/0xd0 [ 10.364601][ T179] ? lock_acquire+0x13c/0x160 [ 10.364605][ T179] console_flush_one_record+0x46f/0x710 [ 10.364609][ T179] ? console_emit_next_record+0x4f0/0x4f0 [ 10.364610][ T179] ? __lock_acquire+0x518/0xc20 [ 10.364620][ T179] console_unlock+0xee/0x1f0 [ 10.364623][ T179] ? console_flush_one_record+0x710/0x710 [ 10.364624][ T179] ? rcu_is_watching+0x16/0xd0 [ 10.364626][ T179] ? lock_acquire+0x60/0x160 [ 10.364630][ T179] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.364632][ T179] ? vprintk_emit+0x320/0x3e0 [ 10.364635][ T179] vprintk_emit+0x37c/0x3e0 [ 10.364639][ T179] ? wake_up_klogd_work_func+0x90/0x90 [ 10.364640][ T179] ? find_held_lock+0x2b/0x80 [ 10.364643][ T179] ? __lock_release.isra.0+0x69/0x1a0 [ 10.364645][ T179] ? fast_dput+0x316/0x540 [ 10.364650][ T179] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.364654][ T179] _printk+0xc7/0x100 [ 10.364657][ T179] ? snapshot_read.cold+0x21/0x21 [ 10.364660][ T179] ? __up_write+0x2e5/0x5f0 [ 10.364663][ T179] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.364667][ T179] ? configfs_register_subsystem+0x340/0x570 [ 10.364672][ T179] init_netconsole+0x4a8/0x1000 [netconsole] [ 10.364675][ T179] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.364682][ T179] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.364684][ T179] do_one_initcall+0x124/0x4f0 [ 10.364687][ T179] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.364692][ T179] ? do_init_module+0xae/0x8a0 [ 10.364695][ T179] ? kasan_unpoison+0x44/0x70 [ 10.364700][ T179] do_init_module+0x2ad/0x8a0 [ 10.364703][ T179] ? lockdep_hardirqs_on+0x91/0x130 [ 10.364707][ T179] ? free_module+0x470/0x470 [ 10.364710][ T179] ? kfree+0x123/0x590 [ 10.364715][ T179] load_module+0x1424/0x1bb0 [ 10.364721][ T179] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.364725][ T179] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.364727][ T179] ? ovl_real_file+0x172/0x1e0 [ 10.364731][ T179] ? backing_file_read_iter+0x541/0x790 [ 10.364735][ T179] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.364738][ T179] init_module_from_file+0x11f/0x1a0 [ 10.364741][ T179] ? __do_sys_init_module+0x220/0x220 [ 10.364748][ T179] ? __rwlock_init+0x150/0x150 [ 10.364751][ T179] ? do_raw_spin_unlock+0x59/0x250 [ 10.364754][ T179] idempotent_init_module+0x37b/0x7c0 [ 10.364757][ T179] ? init_module_from_file+0x1a0/0x1a0 [ 10.364763][ T179] ? rcu_is_watching+0x16/0xd0 [ 10.364765][ T179] ? cap_capable+0x1d7/0x3d0 [ 10.364770][ T179] __x64_sys_finit_module+0xdf/0x190 [ 10.364772][ T179] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.364776][ T179] do_syscall_64+0xff/0x530 [ 10.364777][ T179] ? exc_page_fault+0xee/0x100 [ 10.364780][ T179] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.364782][ T179] RIP: 0033:0x7f1dafd9737d [ 10.364785][ T179] 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 [ 10.364787][ T179] RSP: 002b:00007fff97755148 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.364790][ T179] RAX: ffffffffffffffda RBX: 0000564d4a879700 RCX: 00007f1dafd9737d [ 10.364791][ T179] RDX: 0000000000000000 RSI: 0000564d31770ffd RDI: 0000000000000005 [ 10.364792][ T179] RBP: 00007fff977551e0 R08: 0000000000000000 R09: 0000000000000000 [ 10.364793][ T179] R10: 0000000000000000 R11: 0000000000000246 R12: 0000564d31770ffd [ 10.364793][ T179] R13: 0000564d4a879810 R14: 0000000000040000 R15: 0000000000000000 [ 10.364800][ T179] [ 14.711517][ T167] netconsole selftest: netcons_UxdgD [ 14.711544][ T167] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 14.711547][ T167] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 167, name: bash [ 14.711549][ T167] preempt_count: 1, expected: 0 [ 14.711550][ T167] RCU nest depth: 0, expected: 0 [ 14.711551][ T167] locks held by bash/167: 4, last CPU#1: [ 14.711553][ T167] #0: ffffffff85f99cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 14.711566][ T167] #1: ffffffff85f99d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 14.711571][ T167] #2: ffffffff85e89660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 14.711574][ T167] #3: ffffffff85e89560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 14.711579][ T167] irq event stamp: 147112 [ 14.711581][ T167] hardirqs last enabled at (147111): [] __down_trylock_console_sem+0x86/0xa0 [ 14.711584][ T167] hardirqs last disabled at (147112): [] console_emit_next_record+0x3f8/0x4f0 [ 14.711586][ T167] softirqs last enabled at (146916): [] restore_fpregs_from_user+0x1cf/0x490 [ 14.711590][ T167] softirqs last disabled at (146914): [] restore_fpregs_from_user+0xc3/0x490 [ 14.711593][ T167] Preemption disabled at: [ 14.711594][ T167] [] vprintk_emit+0x31b/0x3e0 [ 14.711599][ T167] CPU: 1 UID: 0 PID: 167 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 14.711603][ T167] Tainted: [W]=WARN [ 14.711604][ T167] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 14.711606][ T167] Call Trace: [ 14.711608][ T167] [ 14.711609][ T167] dump_stack_lvl+0x6f/0xa0 [ 14.711614][ T167] ? vprintk_emit+0x31b/0x3e0 [ 14.711616][ T167] __might_resched.cold+0x1fe/0x2c1 [ 14.711621][ T167] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 14.711624][ T167] ? __kmalloc_noprof+0xdb/0x760 [ 14.711639][ T167] __kmalloc_noprof+0x443/0x760 [ 14.711641][ T167] ? alloc_buf.isra.0+0x4b/0x260 [ 14.711648][ T167] ? do_raw_spin_unlock+0x59/0x250 [ 14.711650][ T167] alloc_buf.isra.0+0x4b/0x260 [ 14.711653][ T167] put_chars+0x1e1/0x2f0 [ 14.711657][ T167] ? __send_to_port+0x420/0x420 [ 14.711659][ T167] ? printk_get_next_message+0x2fe/0x7d0 [ 14.711662][ T167] ? rcu_read_lock_any_held+0x3c/0x90 [ 14.711666][ T167] ? validate_chain+0x38b/0xc20 [ 14.711670][ T167] hvc_console_print+0x292/0x780 [ 14.711674][ T167] ? __lock_acquire+0x518/0xc20 [ 14.711676][ T167] ? __lock_acquire+0x518/0xc20 [ 14.711681][ T167] ? hvc_write+0x3a0/0x3a0 [ 14.711685][ T167] ? rcu_is_watching+0x16/0xd0 [ 14.711687][ T167] ? lock_acquire+0x13c/0x160 [ 14.711691][ T167] console_emit_next_record+0x252/0x4f0 [ 14.711695][ T167] ? devkmsg_read+0x4e0/0x4e0 [ 14.711699][ T167] ? rcu_is_watching+0x16/0xd0 [ 14.711701][ T167] ? lock_acquire+0x13c/0x160 [ 14.711705][ T167] console_flush_one_record+0x46f/0x710 [ 14.711708][ T167] ? console_emit_next_record+0x4f0/0x4f0 [ 14.711710][ T167] ? __lock_acquire+0x518/0xc20 [ 14.711715][ T167] console_unlock+0xee/0x1f0 [ 14.711718][ T167] ? console_flush_one_record+0x710/0x710 [ 14.711719][ T167] ? rcu_is_watching+0x16/0xd0 [ 14.711721][ T167] ? lock_acquire+0x60/0x160 [ 14.711725][ T167] ? __down_trylock_console_sem+0x5e/0xa0 [ 14.711727][ T167] ? vprintk_emit+0x320/0x3e0 [ 14.711730][ T167] vprintk_emit+0x37c/0x3e0 [ 14.711733][ T167] ? wake_up_klogd_work_func+0x90/0x90 [ 14.711736][ T167] ? _copy_from_iter+0x1bb/0x1810 [ 14.711741][ T167] devkmsg_emit.constprop.0+0xbc/0xf1 [ 14.711745][ T167] ? vprintk_emit.cold+0x107/0x107 [ 14.711749][ T167] ? __kmalloc_noprof+0x302/0x760 [ 14.711751][ T167] ? idr_get_free+0x830/0x830 [ 14.711755][ T167] ? devkmsg_write+0xd1/0x2c0 [ 14.711757][ T167] ? _copy_from_iter+0x1bb/0x1810 [ 14.711760][ T167] devkmsg_write.cold+0x5a/0x8b [ 14.711763][ T167] ? vprintk_default+0x20/0x20 [ 14.711764][ T167] ? handle_pte_fault+0x448/0x710 [ 14.711769][ T167] ? do_numa_page.isra.0+0xa70/0xa70 [ 14.711771][ T167] ? vprintk_default+0x20/0x20 [ 14.711773][ T167] new_sync_write+0x33e/0x760 [ 14.711778][ T167] ? new_sync_read+0x750/0x750 [ 14.711779][ T167] ? lock_vma_under_rcu+0x159/0x410 [ 14.711788][ T167] vfs_write+0x6a2/0xbd0 [ 14.711792][ T167] ksys_write+0x116/0x250 [ 14.711794][ T167] ? __ia32_sys_read+0xc0/0xc0 [ 14.711796][ T167] ? rcu_is_watching+0x16/0xd0 [ 14.711798][ T167] ? rcu_is_watching+0x16/0xd0 [ 14.711801][ T167] do_syscall_64+0xff/0x530 [ 14.711804][ T167] ? exc_page_fault+0xee/0x100 [ 14.711807][ T167] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 14.711809][ T167] RIP: 0033:0x7f77e196454e [ 14.711813][ T167] Code: 4d 89 d8 e8 b4 bd 00 00 4c 8b 5d f8 41 8b 93 08 03 00 00 59 5e 48 83 f8 fc 74 11 c9 c3 0f 1f 80 00 00 00 00 48 8b 45 10 0f 05 c3 83 e2 39 83 fa 08 75 e7 e8 03 ff ff ff 0f 1f 00 f3 0f 1e fa [ 14.711815][ T167] RSP: 002b:00007ffc0b4d8a40 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 14.711818][ T167] RAX: ffffffffffffffda RBX: 00007f77e1ae5580 RCX: 00007f77e196454e [ 14.711819][ T167] RDX: 0000000000000023 RSI: 00005644c2870120 RDI: 0000000000000001 [ 14.711820][ T167] RBP: 00007ffc0b4d8a50 R08: 0000000000000000 R09: 0000000000000000 [ 14.711821][ T167] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 14.711822][ T167] R13: 0000000000000023 R14: 00005644c2870120 R15: 0000000000000000 [ 14.711829][ T167]