Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[merge branch] Invalid IP address in config file causes page fault #89

Closed
AHatnarf opened this issue Oct 23, 2019 · 1 comment
Closed
Assignees
Labels

Comments

@AHatnarf
Copy link
Collaborator

Having an invalid entry in /etc/popcorn/nodes causes the kernel to page fault and not be inserted. It does successfully hit the print statement saying invalid IP address in config file.

An example of an IP "address" that causes this to happen:
192.168.122.a

The kernel log:

[  458.784004][  T629] Loading Popcorn messaging layer over TCP/IP...
[  458.947310][  T629] invalid IP address in config file
insmod: ERROR: could not insert module msg_socket.ko: Invalid parameters
[  459.057427][  T629] BUG: unable to handle page fault for address: ffff88805893d000
[  459.057927][  T629] #PF: supervisor write access in kernel mode
[  459.058186][  T629] #PF: error_code(0x000b) - reserved bit violation
[  459.060130][  T629] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 58880063 PTE 800fffffa76c2063
[  459.060130][  T629] Oops: 000b [#1] SMP NOPTI
[  459.060130][  T629] CPU: 1 PID: 629 Comm: insmod Tainted: G           O      5.2.0-rc4-popcorn+ #8
[  459.060130][  T629] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu1 04/01/2014
[  459.060130][  T629] RIP: 0010:__tlb_remove_page_size+0x62/0x90
[  459.060130][  T629] Code: 5d c3 83 7f 1c 13 74 3a 31 f6 48 89 fb bf 00 28 00 00 e8 a1 f9 00 00 48 85 c0 74 26 48 b9 00 00 00 00 fe 01 00 00 83 43 1c 01 <48> c7 00 00 00 00 00 48 89 48 08 48 8b 53 20 48 89 02 48 89 43 20
[  459.060130][  T629] RSP: 0018:ffffc900006b7c90 EFLAGS: 00000202
[  459.060130][  T629] RAX: ffff88805893d000 RBX: ffffc900006b7da0 RCX: 000001fe00000000
[  459.060130][  T629] RDX: 000000005893d000 RSI: 0000000000000000 RDI: 0000000000000246
[  459.060130][  T629] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
[  459.060130][  T629] R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900006b7da0
[  459.060130][  T629] R13: 000055555555b000 R14: ffff8880589a9ad8 R15: ffff888058898678
[  459.060130][  T629] FS:  0000000000000000(0000) GS:ffff88805be00000(0000) knlGS:0000000000000000
[  459.060130][  T629] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  459.060130][  T629] CR2: ffff88805893d000 CR3: 000000005b5ba000 CR4: 00000000000006e0
[  459.060130][  T629] Call Trace:
[  459.060130][  T629]  unmap_page_range+0x4e3/0x820
[  459.060130][  T629]  unmap_vmas+0x3c/0x50
[  459.060130][  T629]  exit_mmap+0x8b/0x150
[  459.060130][  T629]  mmput+0x41/0xf0
[  459.060130][  T629]  do_exit+0x2cc/0xc30
[  459.060130][  T629]  do_group_exit+0x39/0xb0
[  459.060130][  T629]  __x64_sys_exit_group+0x14/0x20
[  459.060130][  T629]  do_syscall_64+0x69/0x440
[  459.060130][  T629]  ? trace_hardirqs_off_thunk+0x1a/0x1c
[  459.060130][  T629]  entry_SYSCALL_64_after_hwframe+0x49/0xbe
[  459.060130][  T629] RIP: 0033:0x7ffff7aeb2e9
[  459.060130][  T629] Code: 00 41 b8 3c 00 00 00 eb 19 0f 1f 84 00 00 00 00 00 48 89 d7 44 89 c0 0f 05 48 3d 00 f0 ff ff 77 1b f4 48 89 d7 44 89 c8 0f 05 <48> 3d 00 f0 ff ff 76 df 89 c6 f7 de 64 41 89 32 eb d5 89 c6 f7 de
[  459.060130][  T629] RSP: 002b:00007fffffffebb8 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
[  459.060130][  T629] RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007ffff7aeb2e9
[  459.060130][  T629] RDX: 0000000000000001 RSI: 0000000000000000 RDI: 0000000000000001
[  459.060130][  T629] RBP: 00007ffff7dd2860 R08: 000000000000003c R09: 00000000000000e7
[  459.060130][  T629] R10: ffffffffffffff90 R11: 0000000000000246 R12: 00007ffff7dd2860
[  459.060130][  T629] R13: 00007ffff7dd7c60 R14: 0000000000000000 R15: 0000000000000000
[  459.060130][  T629] Modules linked in:
[  459.060130][  T629] CR2: ffff88805893d000
[  459.060130][  T629] ---[ end trace 550b2ee4a4672416 ]---
[  459.060130][  T629] RIP: 0010:__tlb_remove_page_size+0x62/0x90
[  459.060130][  T629] Code: 5d c3 83 7f 1c 13 74 3a 31 f6 48 89 fb bf 00 28 00 00 e8 a1 f9 00 00 48 85 c0 74 26 48 b9 00 00 00 00 fe 01 00 00 83 43 1c 01 <48> c7 00 00 00 00 00 48 89 48 08 48 8b 53 20 48 89 02 48 89 43 20
[  459.060130][  T629] RSP: 0018:ffffc900006b7c90 EFLAGS: 00000202
[  459.060130][  T629] RAX: ffff88805893d000 RBX: ffffc900006b7da0 RCX: 000001fe00000000
[  459.060130][  T629] RDX: 000000005893d000 RSI: 0000000000000000 RDI: 0000000000000246
[  459.060130][  T629] RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000001
[  459.060130][  T629] R10: 0000000000000000 R11: 0000000000000000 R12: ffffc900006b7da0
[  459.060130][  T629] R13: 000055555555b000 R14: ffff8880589a9ad8 R15: ffff888058898678
[  459.060130][  T629] FS:  0000000000000000(0000) GS:ffff88805be00000(0000) knlGS:0000000000000000
[  459.060130][  T629] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[  459.060130][  T629] CR2: ffff88805893d000 CR3: 000000005b5ba000 CR4: 00000000000006e0
[  459.060130][  T629] Fixing recursive fault but reboot is needed!
[  459.060130][  T629] BUG: scheduling while atomic: insmod/629/0x00000002
[  459.060130][  T629] INFO: lockdep is turned off.
[  459.060130][  T629] Modules linked in:
[  459.060130][  T629] irq event stamp: 4918
[  459.060130][  T629] hardirqs last  enabled at (4917): [<ffffffff811d7054>] get_page_from_freelist+0xf4/0x13d0
[  459.060130][  T629] hardirqs last disabled at (4918): [<ffffffff8100196a>] trace_hardirqs_off_thunk+0x1a/0x1c
[  459.060130][  T629] softirqs last  enabled at (4912): [<ffffffff818002ec>] __do_softirq+0x2ec/0x475
[  459.060130][  T629] softirqs last disabled at (4905): [<ffffffff8106856e>] irq_exit+0xbe/0xd0
[  459.060130][  T629] CPU: 1 PID: 629 Comm: insmod Tainted: G      D    O      5.2.0-rc4-popcorn+ #8
[  459.060130][  T629] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.10.2-1ubuntu1 04/01/2014
[  459.060130][  T629] Call Trace:
[  459.060130][  T629]  dump_stack+0x67/0x9b
[  459.060130][  T629]  __schedule_bug+0x5d/0x80
[  459.060130][  T629]  __schedule+0x593/0x810
[  459.060130][  T629]  ? printk+0x52/0x6e
[  459.060130][  T629]  schedule+0x30/0xb0
[  459.060130][  T629]  do_exit+0x9e1/0xc30
[  459.060130][  T629]  rewind_stack_do_exit+0x17/0x20
[  462.040318][  T630] BUG: unable to handle page fault for address: ffff888058a08000
[  462.040318][  T630] #PF: supervisor write access in kernel mode
[  462.040318][  T630] #PF: error_code(0x000b) - reserved bit violation
[  462.040318][  T630] PGD 2e01067 P4D 2e01067 PUD 2e04067 PMD 588ab063 PTE 800fffffa75f7063
[  462.040318][  T630] Oops: 000b [#2] SMP NOPTI
@AHatnarf
Copy link
Collaborator Author

Closing for now in relation to the referenced message in #91.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants