Closed bxatnarf closed 4 years ago
When I insmod the msg_layer with the following configuration file (note: this file ends with \n\n)
\n\n
10.4.4.100 10.4.4.101
insmod doe not return and instead shows the following:
insmod
popcorn@x86:~$ sudo insmod msg_socket.ko insmod: ERROR: could not insert module msg_socket.ko: Invalid parameters
Meanwhile the following errors are printed to the kernel log
x86 login: [ 227.122661] Loading Popcorn messaging layer over TCP/IP... [ 227.126050] invalid IP address in config file (10.4.4.200) [ 227.183525] BUG: unable to handle page fault for address: ffff888139bf6000 [ 227.183847] #PF: supervisor write access in kernel mode [ 227.184084] #PF: error_code(0x000b) - reserved bit violation [ 227.184280] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 139a5e063 PTE 800ffffec6409063 [ 227.184280] Oops: 000b [#1] SMP NOPTI [ 227.184280] CPU: 0 PID: 648 Comm: insmod Not tainted 5.2.0-rc4-popcorn+ #1 [ 227.184280] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 227.184280] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 227.184280] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 227.184280] RSP: 0018:ffffc900006b7c70 EFLAGS: 00000202 [ 227.184280] RAX: ffff888139bf6000 RBX: ffffc900006b7da0 RCX: 000001fe00000000 [ 227.184280] RDX: ffff888000000000 RSI: 00000000ffffffff RDI: 0000000000000246 [ 227.184280] RBP: ffffea000441d7e0 R08: 0000000000000000 R09: 0000000000000001 [ 227.184280] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 227.184280] R13: 000055555555c000 R14: ffffc900006b7da0 R15: ffff888139efa228 [ 227.184280] FS: 0000000000000000(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 227.184280] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 227.184280] CR2: ffff888139bf6000 CR3: 0000000139f5a000 CR4: 00000000000006f0 [ 227.184280] Call Trace: [ 227.184280] unmap_page_range+0x4c0/0x800 [ 227.184280] unmap_vmas+0x32/0x50 [ 227.184280] exit_mmap+0x8e/0x160 [ 227.184280] mmput+0x41/0xf0 [ 227.184280] do_exit+0x2bb/0xba0 [ 227.184280] ? _raw_spin_unlock_irq+0x29/0x40 [ 227.184280] ? task_work_run+0x7b/0xd0 [ 227.184280] do_group_exit+0x39/0xb0 [ 227.184280] __x64_sys_exit_group+0x14/0x20 [ 227.184280] do_syscall_64+0x69/0x440 [ 227.184280] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 227.184280] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 227.184280] RIP: 0033:0x7ffff7aeb2e9 [ 227.184280] Code: 00 41 b8 3c 00 00 00 eb 19 0f 1f 84 00 00 00 00 00 48 89 d7 44 89 c0e [ 227.184280] RSP: 002b:00007fffffffe618 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7 [ 227.184280] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ffff7aeb2e9 [ 227.184280] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000001 [ 227.184280] RBP: 00007ffff7dd2860 R08: 000000000000003c R09: 00000000000000e7 [ 227.184280] R10: ffffffffffffff90 R11: 0000000000000246 R12: 00007ffff7dd2860 [ 227.184280] R13: 00007ffff7dd7c60 R14: 0000000000000000 R15: 0000000000000000 [ 227.184280] Modules linked in: [ 227.184280] CR2: ffff888139bf6000 [ 227.184280] ---[ end trace 298a690aa9cbf32e ]--- [ 227.184280] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 227.184280] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 227.184280] RSP: 0018:ffffc900006b7c70 EFLAGS: 00000202 [ 227.184280] RAX: ffff888139bf6000 RBX: ffffc900006b7da0 RCX: 000001fe00000000 [ 227.184280] RDX: ffff888000000000 RSI: 00000000ffffffff RDI: 0000000000000246 [ 227.184280] RBP: ffffea000441d7e0 R08: 0000000000000000 R09: 0000000000000001 [ 227.184280] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 227.184280] R13: 000055555555c000 R14: ffffc900006b7da0 R15: ffff888139efa228 [ 227.184280] FS: 0000000000000000(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 227.184280] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 227.184280] CR2: ffff888139bf6000 CR3: 0000000139f5a000 CR4: 00000000000006f0 [ 227.184280] Fixing recursive fault but reboot is needed! [ 227.184280] BUG: scheduling while atomic: insmod/648/0x00000002 [ 227.184280] INFO: lockdep is turned off. [ 227.184280] Modules linked in: [ 227.184280] irq event stamp: 4538 [ 227.184280] hardirqs last enabled at (4537): [<ffffffff811d4dec>] get_page_from_freel0 [ 227.184280] hardirqs last disabled at (4538): [<ffffffff81001a1c>] trace_hardirqs_off_c [ 227.184280] softirqs last enabled at (4390): [<ffffffff8180032e>] __do_softirq+0x32e/9 [ 227.184280] softirqs last disabled at (4377): [<ffffffff81068377>] irq_exit+0x97/0xd0 [ 227.184280] CPU: 0 PID: 648 Comm: insmod Tainted: G D 5.2.0-rc4-popcorn1 [ 227.184280] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 227.184280] Call Trace: [ 227.184280] dump_stack+0x67/0x90 [ 227.184280] __schedule_bug.cold+0x1a/0x27 [ 227.184280] __schedule+0x5a2/0x830 [ 227.184280] ? printk+0x58/0x6f [ 227.184280] schedule+0x3a/0xb0 [ 227.184280] do_exit.cold+0x62/0x91 [ 227.184280] rewind_stack_do_exit+0x17/0x20 [ 227.920748] BUG: unable to handle page fault for address: ffff888139bf5000 [ 227.921139] #PF: supervisor write access in kernel mode [ 227.921438] #PF: error_code(0x000b) - reserved bit violation [ 227.921799] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 139a5e063 PTE 800ffffec640a063 [ 227.922242] Oops: 000b [#2] SMP NOPTI [ 227.922467] CPU: 0 PID: 50 Comm: kworker/0:1H Tainted: G D W 5.2.0-rc4-po1 [ 227.922951] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 227.923767] Workqueue: kblockd blk_mq_run_work_fn [ 227.924099] RIP: 0010:clear_page_orig+0x12/0x40 [ 227.924326] Code: 00 b8 01 00 00 00 5b c3 b9 00 02 00 00 31 c0 f3 48 ab c3 0f 1f 44 007 [ 227.924326] RSP: 0018:ffffc90000207c90 EFLAGS: 00000216 [ 227.924326] RAX: 0000000000000000 RBX: 0000000000000008 RCX: 000000000000003f [ 227.924326] RDX: ffff88813a21c3c0 RSI: 0000000000000000 RDI: ffff888139bf5000 [ 227.924326] RBP: 000000000049af20 R08: 00000000ffffbe64 R09: 0000000000000000 [ 227.924326] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001 [ 227.924326] R13: ffff88813a0c0110 R14: ffff88813a0c0000 R15: 0000000000000200 [ 227.924326] FS: 0000000000000000(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 227.924326] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 227.924326] CR2: ffff888139bf5000 CR3: 00000001399a0000 CR4: 00000000000006f0 [ 227.924326] Call Trace: [ 227.924326] sd_setup_write_same16_cmnd+0xae/0x180 [ 227.924326] scsi_queue_rq+0x2d2/0xa20 [ 227.924326] blk_mq_dispatch_rq_list+0x8c/0x520 [ 227.924326] ? _raw_spin_unlock+0x24/0x30 [ 227.924326] ? deadline_fifo_request+0x61/0x90 [ 227.924326] blk_mq_do_dispatch_sched+0x5f/0xf0 [ 227.924326] blk_mq_sched_dispatch_requests+0x119/0x170 [ 227.924326] __blk_mq_run_hw_queue+0x6c/0xf0 [ 227.924326] process_one_work+0x271/0x5e0 [ 227.924326] worker_thread+0x4d/0x3e0 [ 227.924326] kthread+0x108/0x140 [ 227.924326] ? process_one_work+0x5e0/0x5e0 [ 227.924326] ? kthread_park+0x90/0x90 [ 227.924326] ret_from_fork+0x3a/0x50 [ 227.924326] Modules linked in: [ 227.924326] CR2: ffff888139bf5000 [ 227.924326] ---[ end trace 298a690aa9cbf32f ]--- [ 227.924326] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 227.924326] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 227.924326] RSP: 0018:ffffc900006b7c70 EFLAGS: 00000202 [ 227.924326] RAX: ffff888139bf6000 RBX: ffffc900006b7da0 RCX: 000001fe00000000 [ 227.924326] RDX: ffff888000000000 RSI: 00000000ffffffff RDI: 0000000000000246 [ 227.924326] RBP: ffffea000441d7e0 R08: 0000000000000000 R09: 0000000000000001 [ 227.924326] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 227.924326] R13: 000055555555c000 R14: ffffc900006b7da0 R15: ffff888139efa228 [ 227.924326] FS: 0000000000000000(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 227.924326] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 227.924326] CR2: ffff888139bf5000 CR3: 00000001399a0000 CR4: 00000000000006f0 [ 227.924326] BUG: sleeping function called from invalid context at include/linux/percpu4 [ 227.924326] in_atomic(): 1, irqs_disabled(): 1, pid: 50, name: kworker/0:1H [ 227.924326] INFO: lockdep is turned off. [ 227.924326] irq event stamp: 18814 [ 227.924326] hardirqs last enabled at (18813): [<ffffffff8154d189>] _raw_spin_unlock_i0 [ 227.924326] hardirqs last disabled at (18814): [<ffffffff81546757>] __schedule+0xb7/0x0 [ 227.924326] softirqs last enabled at (18214): [<ffffffff8180032e>] __do_softirq+0x32e9 [ 227.924326] softirqs last disabled at (18195): [<ffffffff81068377>] irq_exit+0x97/0xd0 [ 227.924326] CPU: 0 PID: 50 Comm: kworker/0:1H Tainted: G D W 5.2.0-rc4-po1 [ 227.924326] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 227.924326] Workqueue: kblockd blk_mq_run_work_fn [ 227.924326] Call Trace: [ 227.924326] dump_stack+0x67/0x90 [ 227.924326] ___might_sleep.cold+0x9f/0xaf [ 227.924326] exit_signals+0x1c/0x200 [ 227.924326] do_exit+0xb0/0xba0 [ 227.924326] ? kthread+0x108/0x140 [ 227.924326] rewind_stack_do_exit+0x17/0x20 [ 227.924412] note: kworker/0:1H[50] exited with preempt_count 2 [ 393.020545] BUG: unable to handle page fault for address: ffff888139bf4000 [ 393.020930] #PF: supervisor write access in kernel mode [ 393.021193] #PF: error_code(0x000b) - reserved bit violation [ 393.021482] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 139a5e063 PTE 800ffffec640b063 [ 393.021889] Oops: 000b [#3] SMP NOPTI [ 393.022093] CPU: 0 PID: 338 Comm: cron Tainted: G D W 5.2.0-rc4-popcorn+ 1 [ 393.022539] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 393.022644] RIP: 0010:clear_page_orig+0x12/0x40 [ 393.022644] Code: 00 b8 01 00 00 00 5b c3 b9 00 02 00 00 31 c0 f3 48 ab c3 0f 1f 44 007 [ 393.022644] RSP: 0018:ffffc9000035b980 EFLAGS: 00000216 [ 393.022644] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 000000000000003f [ 393.022644] RDX: ffff888139afc280 RSI: ffffea00044a1d60 RDI: ffff888139bf4000 [ 393.022644] RBP: 0000000000000000 R08: ffff888000000000 R09: 6db6db6db6db6db7 [ 393.022644] R10: 0000160000000000 R11: ffffea00044a1d98 R12: ffffffff81cda440 [ 393.022644] R13: ffffffff81cda440 R14: ffffea00044a1d60 R15: ffffea00044a1d60 [ 393.022644] FS: 00007ffff7feb800(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 393.022644] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 393.022644] CR2: ffff888139bf4000 CR3: 0000000139998000 CR4: 00000000000006f0 [ 393.022644] Call Trace: [ 393.022644] get_page_from_freelist+0x751/0x1310 [ 393.022644] __alloc_pages_nodemask+0x199/0x1030 [ 393.022644] ? __alloc_pages_nodemask+0x2d9/0x1030 [ 393.022644] ? copy_page_range+0x496/0x880 [ 393.022644] pte_alloc_one+0x18/0x80 [ 393.022644] __pte_alloc+0x16/0x110 [ 393.022644] copy_page_range+0x6e4/0x880 [ 393.022644] dup_mm.isra.0+0x37b/0x4c0 [ 393.022644] copy_process.part.0+0x1826/0x1c40 [ 393.022644] _do_fork+0xe1/0x6b0 [ 393.022644] do_syscall_64+0x69/0x440 [ 393.022644] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 393.022644] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 393.022644] RIP: 0033:0x7ffff76b6014 [ 393.022644] Code: f7 d8 64 89 04 25 d4 02 00 00 64 4c 8b 0c 25 10 00 00 00 31 d2 4d 8d0 [ 393.022644] RSP: 002b:00007fffffffec00 EFLAGS: 00000246 ORIG_RAX: 0000000000000038 [ 393.022644] RAX: ffffffffffffffda RBX: 0000000000000152 RCX: 00007ffff76b6014 [ 393.022644] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000001200011 [ 393.022644] RBP: 00007fffffffec60 R08: 0000000000000152 R09: 00007ffff7feb800 [ 393.022644] R10: 00007ffff7febad0 R11: 0000000000000246 R12: 00007fffffffec00 [ 393.022644] R13: 00007fffffffec20 R14: 0000000000000000 R15: 0000000000000000 [ 393.022644] Modules linked in: [ 393.022644] CR2: ffff888139bf4000 [ 393.022644] ---[ end trace 298a690aa9cbf330 ]--- [ 393.022644] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 393.022644] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 393.022644] RSP: 0018:ffffc900006b7c70 EFLAGS: 00000202 [ 393.022644] RAX: ffff888139bf6000 RBX: ffffc900006b7da0 RCX: 000001fe00000000 [ 393.022644] RDX: ffff888000000000 RSI: 00000000ffffffff RDI: 0000000000000246 [ 393.022644] RBP: ffffea000441d7e0 R08: 0000000000000000 R09: 0000000000000001 [ 393.022644] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 393.022644] R13: 000055555555c000 R14: ffffc900006b7da0 R15: ffff888139efa228 [ 393.022644] FS: 00007ffff7feb800(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 393.022644] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 393.022644] CR2: ffff888139bf4000 CR3: 0000000139998000 CR4: 00000000000006f0 [ 393.022644] BUG: sleeping function called from invalid context at include/linux/percpu4 [ 393.022644] in_atomic(): 1, irqs_disabled(): 1, pid: 338, name: cron [ 393.022644] INFO: lockdep is turned off. [ 393.022644] irq event stamp: 8830 [ 393.022644] hardirqs last enabled at (8829): [<ffffffff8154d153>] _raw_spin_unlock_ir0 [ 393.022644] hardirqs last disabled at (8830): [<ffffffff81546757>] __schedule+0xb7/0x80 [ 393.022644] softirqs last enabled at (8496): [<ffffffff8180032e>] __do_softirq+0x32e/9 [ 393.022644] softirqs last disabled at (8467): [<ffffffff81068377>] irq_exit+0x97/0xd0 [ 393.022644] CPU: 0 PID: 338 Comm: cron Tainted: G D W 5.2.0-rc4-popcorn+ 1 [ 393.022644] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 393.022644] Call Trace: [ 393.022644] dump_stack+0x67/0x90 [ 393.022644] ___might_sleep.cold+0x9f/0xaf [ 393.022644] exit_signals+0x1c/0x200 [ 393.022644] do_exit+0xb0/0xba0 [ 393.022644] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 393.022644] rewind_stack_do_exit+0x17/0x20 [ 393.022697] note: cron[338] exited with preempt_count 1 [ 409.536140] BUG: unable to handle page fault for address: ffff888137933000 [ 409.536574] #PF: supervisor write access in kernel mode [ 409.536874] #PF: error_code(0x000b) - reserved bit violation [ 409.537182] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 139991063 PTE 800ffffec86cc063 [ 409.537741] Oops: 000b [#4] SMP NOPTI [ 409.538031] CPU: 0 PID: 340 Comm: systemd-logind Tainted: G D W 5.2.0-rc41 [ 409.538566] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 409.539135] RIP: 0010:cache_alloc_refill+0x3db/0x6b0 [ 409.539431] Code: 8b 57 24 31 db 85 d2 74 2d 49 8b 47 50 48 85 c0 74 11 89 df 41 0f afb [ 409.539676] RSP: 0018:ffffc90000683b18 EFLAGS: 00000246 [ 409.539676] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888000000000 [ 409.539676] RDX: ffff888137933000 RSI: 0000000000000006 RDI: 0000000040042000 [ 409.539676] RBP: 0000000000000400 R08: 00000000001fc1cf R09: 0000000000000000 [ 409.539676] R10: 0000000000000001 R11: 00000000001fc1c8 R12: ffffea0004428328 [ 409.539676] R13: 0000000000000cc0 R14: 000000000000000c R15: ffff88813b029480 [ 409.539676] FS: 00007ffff7fea8c0(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 409.539676] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.539676] CR2: ffff888137933000 CR3: 0000000139952000 CR4: 00000000000006f0 [ 409.539676] Call Trace: [ 409.539676] kmem_cache_alloc+0x1fd/0x240 [ 409.539676] getname_kernel+0x25/0x110 [ 409.539676] kern_path+0x14/0x30 [ 409.539676] unix_find_other.isra.0+0x45/0x210 [ 409.539676] unix_dgram_sendmsg+0x438/0x750 [ 409.539676] sock_sendmsg+0x2b/0x40 [ 409.539676] ___sys_sendmsg+0x259/0x290 [ 409.539676] ? _raw_spin_unlock+0x24/0x30 [ 409.539676] ? cache_alloc_refill+0x1ba/0x6b0 [ 409.539676] ? lockdep_init_map+0x43/0x1d0 [ 409.539676] ? debug_mutex_init+0x28/0x40 [ 409.539676] ? __alloc_file+0x96/0x100 [ 409.539676] ? __fd_install+0x5/0x260 [ 409.539676] __sys_sendmsg+0x51/0x90 [ 409.539676] do_syscall_64+0x69/0x440 [ 409.539676] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 409.539676] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 409.539676] RIP: 0033:0x7ffff7bcdf50 [ 409.539676] Code: c3 48 8b 05 7a 90 20 00 f7 db 64 89 18 48 83 cb ff eb dd 0f 1f 80 004 [ 409.539676] RSP: 002b:00007fffffffe8f8 EFLAGS: 00000246 ORIG_RAX: 000000000000002e [ 409.539676] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ffff7bcdf50 [ 409.539676] RDX: 0000000000004000 RSI: 00007fffffffe910 RDI: 000000000000000e [ 409.539676] RBP: 00007fffffffe910 R08: 0000000000000000 R09: 0000000000000017 [ 409.539676] R10: ffffffffffffffad R11: 0000000000000246 R12: 00007fffffffefa0 [ 409.539676] R13: 00005555555ad227 R14: 000000000000000e R15: 00005555557d1240 [ 409.539676] Modules linked in: [ 409.539676] CR2: ffff888137933000 [ 409.539676] ---[ end trace 298a690aa9cbf331 ]--- [ 409.539676] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 409.539676] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 409.539676] RSP: 0018:ffffc900006b7c70 EFLAGS: 00000202 [ 409.539676] RAX: ffff888139bf6000 RBX: ffffc900006b7da0 RCX: 000001fe00000000 [ 409.539676] RDX: ffff888000000000 RSI: 00000000ffffffff RDI: 0000000000000246 [ 409.539676] RBP: ffffea000441d7e0 R08: 0000000000000000 R09: 0000000000000001 [ 409.539676] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 409.539676] R13: 000055555555c000 R14: ffffc900006b7da0 R15: ffff888139efa228 [ 409.539676] FS: 00007ffff7fea8c0(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 409.539676] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.539676] CR2: ffff888137933000 CR3: 0000000139952000 CR4: 00000000000006f0 [ 409.539676] BUG: sleeping function called from invalid context at include/linux/percpu4 [ 409.539676] in_atomic(): 0, irqs_disabled(): 1, pid: 340, name: systemd-logind [ 409.539676] INFO: lockdep is turned off. [ 409.539676] irq event stamp: 13662 [ 409.539676] hardirqs last enabled at (13661): [<ffffffff8154d189>] _raw_spin_unlock_i0 [ 409.539676] hardirqs last disabled at (13662): [<ffffffff81546757>] __schedule+0xb7/0x0 [ 409.539676] softirqs last enabled at (13626): [<ffffffff814f3929>] unix_release_sock+0 [ 409.539676] softirqs last disabled at (13624): [<ffffffff814f38f4>] unix_release_sock+0 [ 409.539676] CPU: 0 PID: 340 Comm: systemd-logind Tainted: G D W 5.2.0-rc41 [ 409.539676] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 409.539676] Call Trace: [ 409.539676] dump_stack+0x67/0x90 [ 409.539676] ___might_sleep.cold+0x9f/0xaf [ 409.539676] exit_signals+0x1c/0x200 [ 409.539676] do_exit+0xb0/0xba0 [ 409.539676] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 409.539676] rewind_stack_do_exit+0x17/0x20 [ 409.541480] BUG: unable to handle page fault for address: ffff888137932000 [ 409.541932] #PF: supervisor write access in kernel mode [ 409.542301] #PF: error_code(0x000b) - reserved bit violation [ 409.542616] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 139991063 PTE 800ffffec86cd063 [ 409.543080] Oops: 000b [#5] SMP NOPTI [ 409.543303] CPU: 0 PID: 340 Comm: systemd-logind Tainted: G D W 5.2.0-rc41 [ 409.543677] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 409.543677] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 409.543677] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 409.543677] RSP: 0018:ffffc90000683d10 EFLAGS: 00000202 [ 409.543677] RAX: ffff888137932000 RBX: ffffc90000683e40 RCX: 000001fe00000000 [ 409.543677] RDX: ffff888000000000 RSI: 0000000000000000 RDI: ffffffff811d4dec [ 409.543677] RBP: ffffea000444bb40 R08: 00000000001fc1c8 R09: 0000000000000000 [ 409.543677] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 [ 409.543677] R13: 000055555555c000 R14: ffffc90000683e40 R15: ffff888139f29398 [ 409.543677] FS: 0000000000000000(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 409.543677] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.543677] CR2: ffff888137932000 CR3: 0000000139952000 CR4: 00000000000006f0 [ 409.543677] Call Trace: [ 409.543677] unmap_page_range+0x4c0/0x800 [ 409.543677] unmap_vmas+0x32/0x50 [ 409.543677] exit_mmap+0x8e/0x160 [ 409.543677] mmput+0x41/0xf0 [ 409.543677] do_exit+0x2bb/0xba0 [ 409.543677] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 409.543677] rewind_stack_do_exit+0x17/0x20 [ 409.543677] Modules linked in: [ 409.543677] CR2: ffff888137932000 [ 409.543677] ---[ end trace 298a690aa9cbf332 ]--- [ 409.543677] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 409.543677] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 409.543677] RSP: 0018:ffffc900006b7c70 EFLAGS: 00000202 [ 409.543677] RAX: ffff888139bf6000 RBX: ffffc900006b7da0 RCX: 000001fe00000000 [ 409.543677] RDX: ffff888000000000 RSI: 00000000ffffffff RDI: 0000000000000246 [ 409.543677] RBP: ffffea000441d7e0 R08: 0000000000000000 R09: 0000000000000001 [ 409.543677] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 409.543677] R13: 000055555555c000 R14: ffffc900006b7da0 R15: ffff888139efa228 [ 409.543677] FS: 0000000000000000(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 409.543677] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.543677] CR2: ffff888137932000 CR3: 0000000139952000 CR4: 00000000000006f0 [ 409.543677] Fixing recursive fault but reboot is needed! [ 409.543677] BUG: scheduling while atomic: systemd-logind/340/0x00000002 [ 409.543677] INFO: lockdep is turned off. [ 409.543677] Modules linked in: [ 409.543677] irq event stamp: 13662 [ 409.543677] hardirqs last enabled at (13661): [<ffffffff8154d189>] _raw_spin_unlock_i0 [ 409.543677] hardirqs last disabled at (13662): [<ffffffff81546757>] __schedule+0xb7/0x0 [ 409.543677] softirqs last enabled at (13626): [<ffffffff814f3929>] unix_release_sock+0 [ 409.543677] softirqs last disabled at (13624): [<ffffffff814f38f4>] unix_release_sock+0 [ 409.543677] CPU: 0 PID: 340 Comm: systemd-logind Tainted: G D W 5.2.0-rc41 [ 409.543677] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 409.543677] Call Trace: [ 409.543677] dump_stack+0x67/0x90 [ 409.543677] __schedule_bug.cold+0x1a/0x27 [ 409.543677] __schedule+0x5a2/0x830 [ 409.543677] ? printk+0x58/0x6f [ 409.543677] schedule+0x3a/0xb0 [ 409.543677] do_exit.cold+0x62/0x91 [ 409.543677] rewind_stack_do_exit+0x17/0x20 [ 409.544103] BUG: unable to handle page fault for address: ffff888137931000 [ 409.544488] #PF: supervisor write access in kernel mode [ 409.544776] #PF: error_code(0x000b) - reserved bit violation [ 409.545149] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 139991063 PTE 800ffffec86ce063 [ 409.545654] Oops: 000b [#6] SMP NOPTI [ 409.545872] CPU: 0 PID: 1 Comm: systemd Tainted: G D W 5.2.0-rc4-popcorn+1 [ 409.546322] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 409.547136] RIP: 0010:cache_alloc_refill+0x3db/0x6b0 [ 409.547415] Code: 8b 57 24 31 db 85 d2 74 2d 49 8b 47 50 48 85 c0 74 11 89 df 41 0f afb [ 409.547677] RSP: 0018:ffffc9000005bdb8 EFLAGS: 00000246 [ 409.547677] RAX: 0000000000000000 RBX: 0000000000000000 RCX: ffff888000000000 [ 409.547677] RDX: ffff888137931000 RSI: 0000000000000006 RDI: 0000000040042000 [ 409.547677] RBP: 0000000000000400 R08: 00000000001fc1cf R09: 0000000000000001 [ 409.547677] R10: 0000000000000002 R11: 00000000001fc1c8 R12: ffffea00044282b8 [ 409.547677] R13: 0000000000000cc0 R14: 000000000000000c R15: ffff88813b029480 [ 409.547677] FS: 00007fdcf3d21880(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 409.547677] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.547677] CR2: ffff888137931000 CR3: 000000013a32a000 CR4: 00000000000006f0 [ 409.547677] Call Trace: [ 409.547677] kmem_cache_alloc+0x1fd/0x240 [ 409.547677] getname_flags+0x4b/0x1f0 [ 409.547677] ? __sys_recvmsg+0x4e/0x90 [ 409.547677] do_sys_open+0x109/0x240 [ 409.547677] do_syscall_64+0x69/0x440 [ 409.547677] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 409.547677] entry_SYSCALL_64_after_hwframe+0x49/0xbe [ 409.547677] RIP: 0033:0x7fdcf3623960 [ 409.547677] Code: 48 8b 15 2b 95 2c 00 f7 d8 64 89 02 48 83 c8 ff c3 66 0f 1f 84 00 004 [ 409.547677] RSP: 002b:00007ffc8757e228 EFLAGS: 00000246 ORIG_RAX: 0000000000000002 [ 409.547677] RAX: ffffffffffffffda RBX: 0000556ee8cef6b0 RCX: 00007fdcf3623960 [ 409.547677] RDX: 00000000000001b6 RSI: 0000000000080000 RDI: 00007ffc8757e2f0 [ 409.547677] RBP: 00007ffc8757e2b0 R08: 0000000000000008 R09: 0000000000000001 [ 409.547677] R10: 0000556ee702aae0 R11: 0000000000000246 R12: 0000000000000008 [ 409.547677] R13: 0000000000000001 R14: 00007ffc8757ec00 R15: 00007ffc8757ebf0 [ 409.547677] Modules linked in: [ 409.547677] CR2: ffff888137931000 [ 409.547677] ---[ end trace 298a690aa9cbf333 ]--- [ 409.547677] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 409.547677] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 409.547677] RSP: 0018:ffffc900006b7c70 EFLAGS: 00000202 [ 409.547677] RAX: ffff888139bf6000 RBX: ffffc900006b7da0 RCX: 000001fe00000000 [ 409.547677] RDX: ffff888000000000 RSI: 00000000ffffffff RDI: 0000000000000246 [ 409.547677] RBP: ffffea000441d7e0 R08: 0000000000000000 R09: 0000000000000001 [ 409.547677] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 409.547677] R13: 000055555555c000 R14: ffffc900006b7da0 R15: ffff888139efa228 [ 409.547677] FS: 00007fdcf3d21880(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 409.547677] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.547677] CR2: ffff888137931000 CR3: 000000013a32a000 CR4: 00000000000006f0 [ 409.549843] BUG: unable to handle page fault for address: ffff888137930000 [ 409.550643] #PF: supervisor write access in kernel mode [ 409.550880] #PF: error_code(0x000b) - reserved bit violation [ 409.551176] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 139991063 PTE 800ffffec86cf063 [ 409.551677] Oops: 000b [#7] SMP NOPTI [ 409.551677] CPU: 0 PID: 1 Comm: systemd Tainted: G D W 5.2.0-rc4-popcorn+1 [ 409.551677] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 409.551677] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 409.551677] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 409.551677] RSP: 0018:ffffc9000005bd10 EFLAGS: 00000202 [ 409.551677] RAX: ffff888137930000 RBX: ffffc9000005be40 RCX: 000001fe00000000 [ 409.551677] RDX: ffff888000000000 RSI: 0000000000000000 RDI: ffffffff811d4dec [ 409.551677] RBP: ffffea00045e7138 R08: 00000000001fc1c8 R09: 0000000000000000 [ 409.551677] R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000 [ 409.551677] R13: 0000556ee6f34000 R14: ffffc9000005be40 R15: ffff88813a213f18 [ 409.551677] FS: 0000000000000000(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 409.551677] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.551677] CR2: ffff888137930000 CR3: 000000013a32a000 CR4: 00000000000006f0 [ 409.551677] Call Trace: [ 409.551677] unmap_page_range+0x4c0/0x800 [ 409.551677] unmap_vmas+0x32/0x50 [ 409.551677] exit_mmap+0x8e/0x160 [ 409.551677] mmput+0x41/0xf0 [ 409.551677] do_exit+0x2bb/0xba0 [ 409.551677] ? trace_hardirqs_off_thunk+0x1a/0x1c [ 409.551677] rewind_stack_do_exit+0x17/0x20 [ 409.551677] Modules linked in: [ 409.551677] CR2: ffff888137930000 [ 409.551677] ---[ end trace 298a690aa9cbf334 ]--- [ 409.551677] RIP: 0010:__tlb_remove_page_size+0x68/0x90 [ 409.551677] Code: e0 5b 41 5c c3 83 7f 1c 13 74 33 31 f6 bf 00 28 00 00 e8 bb f7 00 00c [ 409.551677] RSP: 0018:ffffc900006b7c70 EFLAGS: 00000202 [ 409.551677] RAX: ffff888139bf6000 RBX: ffffc900006b7da0 RCX: 000001fe00000000 [ 409.551677] RDX: ffff888000000000 RSI: 00000000ffffffff RDI: 0000000000000246 [ 409.551677] RBP: ffffea000441d7e0 R08: 0000000000000000 R09: 0000000000000001 [ 409.551677] R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 [ 409.551677] R13: 000055555555c000 R14: ffffc900006b7da0 R15: ffff888139efa228 [ 409.551677] FS: 0000000000000000(0000) GS:ffff88813b600000(0000) knlGS:000000000000000 [ 409.551677] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 [ 409.551677] CR2: ffff888137930000 CR3: 000000013a32a000 CR4: 00000000000006f0 [ 409.551677] Fixing recursive fault but reboot is needed! [ 409.551677] BUG: scheduling while atomic: systemd/1/0x00000002 [ 409.551677] INFO: lockdep is turned off. [ 409.551677] Modules linked in: [ 409.551677] irq event stamp: 479250 [ 409.551677] hardirqs last enabled at (479249): [<ffffffff8154d189>] _raw_spin_unlock_0 [ 409.551677] hardirqs last disabled at (479250): [<ffffffff81546757>] __schedule+0xb7/00 [ 409.551677] softirqs last enabled at (479104): [<ffffffff814f37db>] unix_sock_destruc0 [ 409.551677] softirqs last disabled at (479102): [<ffffffff814f37db>] unix_sock_destruc0 [ 409.551677] CPU: 0 PID: 1 Comm: systemd Tainted: G D W 5.2.0-rc4-popcorn+1 [ 409.551677] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-20181124 [ 409.551677] Call Trace: [ 409.551677] dump_stack+0x67/0x90 [ 409.551677] __schedule_bug.cold+0x1a/0x27 [ 409.551677] __schedule+0x5a2/0x830 [ 409.551677] ? printk+0x58/0x6f [ 409.551677] schedule+0x3a/0xb0 [ 409.551677] do_exit.cold+0x62/0x91 [ 409.551677] rewind_stack_do_exit+0x17/0x20
I believe this should be fixed with 27bae76. Should also support arbitrary newlines in the config file.
When I insmod the msg_layer with the following configuration file (note: this file ends with
\n\n
)insmod
doe not return and instead shows the following:Meanwhile the following errors are printed to the kernel log