[ 10.046787][ T170] netconsole: network logging started [ 10.046804][ T170] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 10.046806][ T170] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 170, name: modprobe [ 10.046808][ T170] preempt_count: 1, expected: 0 [ 10.046809][ T170] RCU nest depth: 0, expected: 0 [ 10.046810][ T170] locks held by modprobe/170: 4, last CPU#3: [ 10.046813][ T170] #0: ffffffffae999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 10.046827][ T170] #1: ffffffffae999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 10.046831][ T170] #2: ffffffffae889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 10.046835][ T170] #3: ffffffffae889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 10.046838][ T170] irq event stamp: 34044 [ 10.046839][ T170] hardirqs last enabled at (34043): [] __down_trylock_console_sem+0x86/0xa0 [ 10.046842][ T170] hardirqs last disabled at (34044): [] console_emit_next_record+0x3f8/0x4f0 [ 10.046843][ T170] softirqs last enabled at (32468): [] handle_softirqs+0x67c/0x900 [ 10.046847][ T170] softirqs last disabled at (32463): [] __irq_exit_rcu+0x145/0x1c0 [ 10.046850][ T170] Preemption disabled at: [ 10.046851][ T170] [] vprintk_emit+0x31b/0x3e0 [ 10.046856][ T170] CPU: 3 UID: 0 PID: 170 Comm: modprobe Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 10.046861][ T170] Tainted: [W]=WARN [ 10.046862][ T170] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 10.046863][ T170] Call Trace: [ 10.046865][ T170] [ 10.046867][ T170] dump_stack_lvl+0x6f/0xa0 [ 10.046872][ T170] ? vprintk_emit+0x31b/0x3e0 [ 10.046874][ T170] __might_resched.cold+0x1fe/0x2c1 [ 10.046879][ T170] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 10.046882][ T170] ? __kmalloc_noprof+0xdb/0x760 [ 10.046887][ T170] __kmalloc_noprof+0x443/0x760 [ 10.046889][ T170] ? alloc_buf.isra.0+0x4b/0x260 [ 10.046895][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.046897][ T170] alloc_buf.isra.0+0x4b/0x260 [ 10.046900][ T170] put_chars+0x1e1/0x2f0 [ 10.046903][ T170] ? __send_to_port+0x420/0x420 [ 10.046906][ T170] ? validate_chain+0x38b/0xc20 [ 10.046911][ T170] hvc_console_print+0x292/0x780 [ 10.046917][ T170] ? hvc_write+0x3a0/0x3a0 [ 10.046919][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.046923][ T170] ? lock_acquire+0x13c/0x160 [ 10.046927][ T170] console_emit_next_record+0x252/0x4f0 [ 10.046930][ T170] ? devkmsg_read+0x4e0/0x4e0 [ 10.046934][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.046936][ T170] ? lock_acquire+0x13c/0x160 [ 10.046940][ T170] console_flush_one_record+0x46f/0x710 [ 10.046944][ T170] ? console_emit_next_record+0x4f0/0x4f0 [ 10.046945][ T170] ? __lock_acquire+0x518/0xc20 [ 10.046950][ T170] console_unlock+0xee/0x1f0 [ 10.046953][ T170] ? console_flush_one_record+0x710/0x710 [ 10.046954][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.046956][ T170] ? lock_acquire+0x60/0x160 [ 10.046960][ T170] ? __down_trylock_console_sem+0x5e/0xa0 [ 10.046961][ T170] ? vprintk_emit+0x320/0x3e0 [ 10.046964][ T170] vprintk_emit+0x37c/0x3e0 [ 10.046968][ T170] ? wake_up_klogd_work_func+0x90/0x90 [ 10.046969][ T170] ? find_held_lock+0x2b/0x80 [ 10.046973][ T170] ? __lock_release.isra.0+0x69/0x1a0 [ 10.046975][ T170] ? fast_dput+0x316/0x540 [ 10.046984][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.046988][ T170] _printk+0xc7/0x100 [ 10.046992][ T170] ? snapshot_read.cold+0x21/0x21 [ 10.046995][ T170] ? __up_write+0x2e5/0x5f0 [ 10.046998][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.047002][ T170] ? configfs_register_subsystem+0x340/0x570 [ 10.047007][ T170] init_netconsole+0x4a8/0x1000 [netconsole] [ 10.047010][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.047017][ T170] ? cleanup_netconsole+0x1140/0x1140 [netconsole] [ 10.047020][ T170] do_one_initcall+0x124/0x4f0 [ 10.047024][ T170] ? trace_event_raw_event_initcall_level+0x280/0x280 [ 10.047029][ T170] ? do_init_module+0xae/0x8a0 [ 10.047031][ T170] ? kasan_unpoison+0x44/0x70 [ 10.047037][ T170] do_init_module+0x2ad/0x8a0 [ 10.047040][ T170] ? lockdep_hardirqs_on+0x91/0x130 [ 10.047044][ T170] ? free_module+0x470/0x470 [ 10.047047][ T170] ? kfree+0x123/0x590 [ 10.047051][ T170] load_module+0x1424/0x1bb0 [ 10.047058][ T170] ? layout_and_allocate.isra.0+0x680/0x680 [ 10.047061][ T170] ? __ia32_sys_fsconfig+0x180/0x180 [ 10.047065][ T170] ? find_held_lock+0x2b/0x80 [ 10.047068][ T170] ? rcu_lockdep_current_cpu_online+0x3f/0x1b0 [ 10.047072][ T170] init_module_from_file+0x11f/0x1a0 [ 10.047075][ T170] ? __do_sys_init_module+0x220/0x220 [ 10.047083][ T170] ? __rwlock_init+0x150/0x150 [ 10.047086][ T170] ? do_raw_spin_unlock+0x59/0x250 [ 10.047089][ T170] idempotent_init_module+0x37b/0x7c0 [ 10.047092][ T170] ? init_module_from_file+0x1a0/0x1a0 [ 10.047098][ T170] ? rcu_is_watching+0x16/0xd0 [ 10.047100][ T170] ? cap_capable+0x1d7/0x3d0 [ 10.047106][ T170] __x64_sys_finit_module+0xdf/0x190 [ 10.047108][ T170] ? trace_irq_enable.constprop.0+0x9b/0x160 [ 10.047113][ T170] do_syscall_64+0xff/0x530 [ 10.047115][ T170] ? exc_page_fault+0xee/0x100 [ 10.047117][ T170] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 10.047120][ T170] RIP: 0033:0x7f177680837d [ 10.047123][ T170] 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.047125][ T170] RSP: 002b:00007ffe69efa788 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 [ 10.047127][ T170] RAX: ffffffffffffffda RBX: 000055cb366c5700 RCX: 00007f177680837d [ 10.047129][ T170] RDX: 0000000000000000 RSI: 000055caf8660ffd RDI: 0000000000000005 [ 10.047129][ T170] RBP: 00007ffe69efa820 R08: 0000000000000000 R09: 0000000000000000 [ 10.047130][ T170] R10: 0000000000000000 R11: 0000000000000246 R12: 000055caf8660ffd [ 10.047131][ T170] R13: 000055cb366c5810 R14: 0000000000040000 R15: 0000000000000000 [ 10.047138][ T170] [ 13.253147][ T158] netconsole selftest: netcons_LlFb6 [ 13.253175][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 13.253178][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 13.253180][ T158] preempt_count: 1, expected: 0 [ 13.253180][ T158] RCU nest depth: 0, expected: 0 [ 13.253182][ T158] locks held by bash/158: 4, last CPU#2: [ 13.253184][ T158] #0: ffffffffae999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 13.253197][ T158] #1: ffffffffae999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 13.253201][ T158] #2: ffffffffae889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 13.253205][ T158] #3: ffffffffae889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 13.253210][ T158] irq event stamp: 136940 [ 13.253211][ T158] hardirqs last enabled at (136939): [] __down_trylock_console_sem+0x86/0xa0 [ 13.253214][ T158] hardirqs last disabled at (136940): [] console_emit_next_record+0x3f8/0x4f0 [ 13.253216][ T158] softirqs last enabled at (136680): [] restore_fpregs_from_user+0x1cf/0x490 [ 13.253219][ T158] softirqs last disabled at (136678): [] restore_fpregs_from_user+0xc3/0x490 [ 13.253222][ T158] Preemption disabled at: [ 13.253223][ T158] [] vprintk_emit+0x31b/0x3e0 [ 13.253229][ T158] CPU: 2 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 13.253232][ T158] Tainted: [W]=WARN [ 13.253233][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 13.253235][ T158] Call Trace: [ 13.253237][ T158] [ 13.253239][ T158] dump_stack_lvl+0x6f/0xa0 [ 13.253244][ T158] ? vprintk_emit+0x31b/0x3e0 [ 13.253246][ T158] __might_resched.cold+0x1fe/0x2c1 [ 13.253251][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 13.253255][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 13.253259][ T158] __kmalloc_noprof+0x443/0x760 [ 13.253261][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 13.253267][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.253270][ T158] alloc_buf.isra.0+0x4b/0x260 [ 13.253273][ T158] put_chars+0x1e1/0x2f0 [ 13.253276][ T158] ? __send_to_port+0x420/0x420 [ 13.253277][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 13.253280][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.253283][ T158] ? validate_chain+0x38b/0xc20 [ 13.253287][ T158] hvc_console_print+0x292/0x780 [ 13.253290][ T158] ? __lock_acquire+0x518/0xc20 [ 13.253292][ T158] ? __lock_acquire+0x518/0xc20 [ 13.253296][ T158] ? hvc_write+0x3a0/0x3a0 [ 13.253299][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.253302][ T158] ? lock_acquire+0x13c/0x160 [ 13.253306][ T158] console_emit_next_record+0x252/0x4f0 [ 13.253309][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 13.253314][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.253316][ T158] ? lock_acquire+0x13c/0x160 [ 13.253319][ T158] console_flush_one_record+0x46f/0x710 [ 13.253323][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 13.253325][ T158] ? __lock_acquire+0x518/0xc20 [ 13.253330][ T158] console_unlock+0xee/0x1f0 [ 13.253332][ T158] ? console_flush_one_record+0x710/0x710 [ 13.253334][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.253336][ T158] ? lock_acquire+0x60/0x160 [ 13.253340][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 13.253341][ T158] ? vprintk_emit+0x320/0x3e0 [ 13.253344][ T158] vprintk_emit+0x37c/0x3e0 [ 13.253348][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 13.253351][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.253357][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 13.253360][ T158] ? vprintk_emit.cold+0x107/0x107 [ 13.253364][ T158] ? __kmalloc_noprof+0x302/0x760 [ 13.253366][ T158] ? idr_get_free+0x830/0x830 [ 13.253370][ T158] ? devkmsg_write+0xd1/0x2c0 [ 13.253373][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 13.253376][ T158] devkmsg_write.cold+0x5a/0x8b [ 13.253378][ T158] ? vprintk_default+0x20/0x20 [ 13.253380][ T158] ? __lock_acquire+0x518/0xc20 [ 13.253382][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 13.253387][ T158] ? vprintk_default+0x20/0x20 [ 13.253389][ T158] new_sync_write+0x33e/0x760 [ 13.253394][ T158] ? new_sync_read+0x750/0x750 [ 13.253395][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 13.253403][ T158] vfs_write+0x6a2/0xbd0 [ 13.253407][ T158] ksys_write+0x116/0x250 [ 13.253410][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 13.253412][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 13.253415][ T158] ? rcu_is_watching+0x16/0xd0 [ 13.253418][ T158] do_syscall_64+0xff/0x530 [ 13.253420][ T158] ? exc_page_fault+0xee/0x100 [ 13.253423][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 13.253426][ T158] RIP: 0033:0x7f097b07554e [ 13.253430][ T158] 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 [ 13.253432][ T158] RSP: 002b:00007ffc09a46cf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 13.253435][ T158] RAX: ffffffffffffffda RBX: 00007f097b1f6580 RCX: 00007f097b07554e [ 13.253436][ T158] RDX: 0000000000000023 RSI: 00005611d6d42ab0 RDI: 0000000000000001 [ 13.253437][ T158] RBP: 00007ffc09a46d00 R08: 0000000000000000 R09: 0000000000000000 [ 13.253438][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 13.253439][ T158] R13: 0000000000000023 R14: 00005611d6d42ab0 R15: 0000000000000000 [ 13.253446][ T158] [ 17.011073][ T158] netconsole selftest: netcons_LlFb6 [ 17.011110][ T158] BUG: sleeping function called from invalid context at ./include/linux/sched/mm.h:322 [ 17.011113][ T158] in_atomic(): 1, irqs_disabled(): 1, non_block: 0, pid: 158, name: bash [ 17.011116][ T158] preempt_count: 1, expected: 0 [ 17.011118][ T158] RCU nest depth: 0, expected: 0 [ 17.011119][ T158] locks held by bash/158: 4, last CPU#3: [ 17.011123][ T158] #0: ffffffffae999cc0 (console_lock){+.+.}-{0:0}, at: vprintk_emit+0x320/0x3e0 [ 17.011139][ T158] #1: ffffffffae999d38 (console_srcu){....}-{0:0}, at: console_flush_one_record+0x106/0x710 [ 17.011147][ T158] #2: ffffffffae889660 (console_owner){....}-{0:0}, at: console_lock_spinning_enable+0x40/0x60 [ 17.011153][ T158] #3: ffffffffae889560 (printk_legacy_map-wait-type-override){....}-{3:3}, at: console_emit_next_record+0x202/0x4f0 [ 17.011160][ T158] irq event stamp: 272780 [ 17.011163][ T158] hardirqs last enabled at (272779): [] __down_trylock_console_sem+0x86/0xa0 [ 17.011166][ T158] hardirqs last disabled at (272780): [] console_emit_next_record+0x3f8/0x4f0 [ 17.011169][ T158] softirqs last enabled at (272676): [] handle_softirqs+0x67c/0x900 [ 17.011174][ T158] softirqs last disabled at (272671): [] __irq_exit_rcu+0x145/0x1c0 [ 17.011179][ T158] Preemption disabled at: [ 17.011180][ T158] [] vprintk_emit+0x31b/0x3e0 [ 17.011188][ T158] CPU: 3 UID: 0 PID: 158 Comm: bash Tainted: G W 7.2.0-virtme #1 PREEMPT(full) [ 17.011193][ T158] Tainted: [W]=WARN [ 17.011195][ T158] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 17.011197][ T158] Call Trace: [ 17.011199][ T158] [ 17.011202][ T158] dump_stack_lvl+0x6f/0xa0 [ 17.011209][ T158] ? vprintk_emit+0x31b/0x3e0 [ 17.011212][ T158] __might_resched.cold+0x1fe/0x2c1 [ 17.011218][ T158] ? perf_trace_sched_switch+0x7c0/0x7c0 [ 17.011223][ T158] ? __kmalloc_noprof+0xdb/0x760 [ 17.011231][ T158] __kmalloc_noprof+0x443/0x760 [ 17.011234][ T158] ? alloc_buf.isra.0+0x4b/0x260 [ 17.011243][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.011247][ T158] alloc_buf.isra.0+0x4b/0x260 [ 17.011252][ T158] put_chars+0x1e1/0x2f0 [ 17.011257][ T158] ? __send_to_port+0x420/0x420 [ 17.011259][ T158] ? printk_get_next_message+0x2fe/0x7d0 [ 17.011265][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.011269][ T158] ? validate_chain+0x38b/0xc20 [ 17.011277][ T158] hvc_console_print+0x292/0x780 [ 17.011281][ T158] ? __lock_acquire+0x518/0xc20 [ 17.011283][ T158] ? __lock_acquire+0x518/0xc20 [ 17.011291][ T158] ? hvc_write+0x3a0/0x3a0 [ 17.011297][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.011301][ T158] ? lock_acquire+0x13c/0x160 [ 17.011308][ T158] console_emit_next_record+0x252/0x4f0 [ 17.011314][ T158] ? devkmsg_read+0x4e0/0x4e0 [ 17.011322][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.011325][ T158] ? lock_acquire+0x13c/0x160 [ 17.011332][ T158] console_flush_one_record+0x46f/0x710 [ 17.011339][ T158] ? console_emit_next_record+0x4f0/0x4f0 [ 17.011342][ T158] ? __lock_acquire+0x518/0xc20 [ 17.011351][ T158] console_unlock+0xee/0x1f0 [ 17.011356][ T158] ? console_flush_one_record+0x710/0x710 [ 17.011358][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.011362][ T158] ? lock_acquire+0x60/0x160 [ 17.011368][ T158] ? __down_trylock_console_sem+0x5e/0xa0 [ 17.011371][ T158] ? vprintk_emit+0x320/0x3e0 [ 17.011376][ T158] vprintk_emit+0x37c/0x3e0 [ 17.011382][ T158] ? wake_up_klogd_work_func+0x90/0x90 [ 17.011387][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.011396][ T158] devkmsg_emit.constprop.0+0xbc/0xf1 [ 17.011401][ T158] ? vprintk_emit.cold+0x107/0x107 [ 17.011408][ T158] ? __kmalloc_noprof+0x302/0x760 [ 17.011411][ T158] ? idr_get_free+0x830/0x830 [ 17.011416][ T158] ? devkmsg_write+0xd1/0x2c0 [ 17.011421][ T158] ? _copy_from_iter+0x1bb/0x1810 [ 17.011425][ T158] devkmsg_write.cold+0x5a/0x8b [ 17.011430][ T158] ? vprintk_default+0x20/0x20 [ 17.011432][ T158] ? __lock_acquire+0x518/0xc20 [ 17.011436][ T158] ? vfs_lock_file+0x1b0/0x1b0 [ 17.011442][ T158] ? vprintk_default+0x20/0x20 [ 17.011446][ T158] new_sync_write+0x33e/0x760 [ 17.011454][ T158] ? new_sync_read+0x750/0x750 [ 17.011457][ T158] ? rcu_read_lock_any_held+0x3c/0x90 [ 17.011471][ T158] vfs_write+0x6a2/0xbd0 [ 17.011479][ T158] ksys_write+0x116/0x250 [ 17.011483][ T158] ? __ia32_sys_read+0xc0/0xc0 [ 17.011486][ T158] ? do_raw_spin_unlock+0x59/0x250 [ 17.011491][ T158] ? rcu_is_watching+0x16/0xd0 [ 17.011497][ T158] do_syscall_64+0xff/0x530 [ 17.011500][ T158] ? exc_page_fault+0xee/0x100 [ 17.011505][ T158] entry_SYSCALL_64_after_hwframe+0x4b/0x53 [ 17.011509][ T158] RIP: 0033:0x7f097b07554e [ 17.011514][ T158] 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 [ 17.011517][ T158] RSP: 002b:00007ffc09a46cf0 EFLAGS: 00000202 ORIG_RAX: 0000000000000001 [ 17.011521][ T158] RAX: ffffffffffffffda RBX: 00007f097b1f6580 RCX: 00007f097b07554e [ 17.011524][ T158] RDX: 0000000000000023 RSI: 00005611d6d42ab0 RDI: 0000000000000001 [ 17.011525][ T158] RBP: 00007ffc09a46d00 R08: 0000000000000000 R09: 0000000000000000 [ 17.011527][ T158] R10: 0000000000000000 R11: 0000000000000202 R12: 0000000000000023 [ 17.011529][ T158] R13: 0000000000000023 R14: 00005611d6d42ab0 R15: 0000000000000000 [ 17.011542][ T158]