Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sun, 18 Nov 2018 00:38:09 +0000
From: Paweł Krawczyk <pawel.krawczyk@...h.com>
To: lkrg-users@...ts.openwall.com
Subject: Re: KMOD HASH kzalloc() error

Ha, after rebooting from the frozen insmod I got a new kernel from
Ubuntu updates:

Linux pax 4.18.0-12-generic #13-Ubuntu SMP Wed Nov 14 15:17:05 UTC 2018
x86_64 x86_64 x86_64 GNU/Linux

Recompiled. Noticed the compile-time message about missing libelf-dev.
Installed libelf-dev. Recompiled again, insmod and:

Nov 18 00:35:12 pax kernel: [  726.634452] p_lkrg: loading out-of-tree
module taints kernel.
Nov 18 00:35:12 pax kernel: [  726.634555] p_lkrg: module verification
failed: signature and/or required key missing - tainting kernel
Nov 18 00:35:12 pax kernel: [  726.635364] [p_lkrg] Loading LKRG...
Nov 18 00:35:13 pax kernel: [  727.103395] [p_lkrg] LKRG initialized
successfully!
Nov 18 00:35:28 pax kernel: [  742.380716] [p_lkrg] System is clean!

No idea what helped, but it works now.

> Just tried 0.5 on Ubuntu 18.10:
>
> Linux pax 4.18.0-11-generic #12-Ubuntu SMP Tue Oct 23 19:22:37 UTC 2018
> x86_64 x86_64 x86_64 GNU/Linux
>
> gcc version 8.2.0 (Ubuntu 8.2.0-7ubuntu1)
>
> Got the following (this was with 0.5 from tar.gz, then tried from
> BitBucket and insmod just hanged, unable to kill):
>
> Nov 18 00:04:36 pax kernel: [441202.883159] [p_lkrg] KMOD HASH kzalloc()
> error! Can't allocate memory for module list ;[
> Nov 18 00:04:36 pax kernel: [441202.883161] [p_lkrg] KMOD HASH error!
> Can't allocate memory during dumping modules from module list ;[
> Nov 18 00:04:36 pax kernel: [441202.883244] insmod: page allocation
> failure: order:8, mode:0x48c020(GFP_ATOMIC|__GFP_COMP|__GFP_ZERO),
> nodemask=(null)
> Nov 18 00:04:36 pax kernel: [441202.883245] insmod cpuset=/ mems_allowed=0
> Nov 18 00:04:36 pax kernel: [441202.883248] CPU: 0 PID: 14824 Comm:
> insmod Tainted: G        W  OE     4.18.0-11-generic #12-Ubuntu
> Nov 18 00:04:36 pax kernel: [441202.883249] Hardware name: ASUSTeK
> COMPUTER INC. UX303UA/UX303UA, BIOS UX303UA.300 07/01/2016
> Nov 18 00:04:36 pax kernel: [441202.883250] Call Trace:
> Nov 18 00:04:36 pax kernel: [441202.883252]  dump_stack+0x63/0x83
> Nov 18 00:04:36 pax kernel: [441202.883255]  warn_alloc.cold.115+0x69/0xfc
> Nov 18 00:04:36 pax kernel: [441202.883257] 
> __alloc_pages_slowpath+0xd98/0xde0
> Nov 18 00:04:36 pax kernel: [441202.883260]  ? sprintf+0x56/0x70
> Nov 18 00:04:36 pax kernel: [441202.883262] 
> __alloc_pages_nodemask+0x263/0x280
> Nov 18 00:04:36 pax kernel: [441202.883264]  alloc_pages_current+0x81/0xe0
> Nov 18 00:04:36 pax kernel: [441202.883267]  kmalloc_order+0x18/0x40
> Nov 18 00:04:36 pax kernel: [441202.883269]  kmalloc_order_trace+0x24/0xb0
> Nov 18 00:04:36 pax kernel: [441202.883270]  ? alloc_pages_current+0x81/0xe0
> Nov 18 00:04:36 pax kernel: [441202.883272]  __kmalloc+0x218/0x230
> Nov 18 00:04:36 pax kernel: [441202.883274]  ? kmalloc_order_trace+0x24/0xb0
> Nov 18 00:04:36 pax kernel: [441202.883279] 
> p_list_from_module_list+0x5a/0x350 [p_lkrg]
> Nov 18 00:04:36 pax kernel: [441202.883284]  ?
> p_count_modules_from_sysfs_kobj+0xa0/0x110 [p_lkrg]
> Nov 18 00:04:36 pax kernel: [441202.883289]  p_kmod_hash+0x305/0x440
> [p_lkrg]
> Nov 18 00:04:36 pax kernel: [441202.883294] 
> p_create_database+0x1bd/0x2b0 [p_lkrg]
> Nov 18 00:04:36 pax kernel: [441202.883295]  ? 0xffffffffc1292000
> Nov 18 00:04:36 pax kernel: [441202.883300]  p_lkrg_register+0xee/0x1000
> [p_lkrg]
> Nov 18 00:04:36 pax kernel: [441202.883302]  do_one_initcall+0x4a/0x1c4
> Nov 18 00:04:36 pax kernel: [441202.883305]  ? _cond_resched+0x19/0x30
> Nov 18 00:04:36 pax kernel: [441202.883306]  ?
> kmem_cache_alloc_trace+0x165/0x1d0
> Nov 18 00:04:36 pax kernel: [441202.883308]  ? do_init_module+0x27/0x220
> Nov 18 00:04:36 pax kernel: [441202.883310]  do_init_module+0x60/0x220
> Nov 18 00:04:36 pax kernel: [441202.883311]  load_module+0x151d/0x18c0
> Nov 18 00:04:36 pax kernel: [441202.883314] 
> __do_sys_finit_module+0xc2/0x120
> Nov 18 00:04:36 pax kernel: [441202.883316]  ?
> __do_sys_finit_module+0xc2/0x120
> Nov 18 00:04:36 pax kernel: [441202.883318] 
> __x64_sys_finit_module+0x1a/0x20
> Nov 18 00:04:36 pax kernel: [441202.883320]  do_syscall_64+0x5a/0x110
> Nov 18 00:04:36 pax kernel: [441202.883321] 
> entry_SYSCALL_64_after_hwframe+0x44/0xa9
> Nov 18 00:04:36 pax kernel: [441202.883322] RIP: 0033:0x7f61910fb219
> Nov 18 00:04:36 pax kernel: [441202.883323] Code: 00 c3 66 2e 0f 1f 84
> 00 00 00 00 00 0f 1f 44 00 00 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
> 47 fc 0c 00 f7 d8 64 89 01 48
> Nov 18 00:04:36 pax kernel: [441202.883349] RSP: 002b:00007ffc7814a698
> EFLAGS: 00000246 ORIG_RAX: 0000000000000139
> Nov 18 00:04:36 pax kernel: [441202.883351] RAX: ffffffffffffffda RBX:
> 00005602c98017a0 RCX: 00007f61910fb219
> Nov 18 00:04:36 pax kernel: [441202.883352] RDX: 0000000000000000 RSI:
> 00005602c9801260 RDI: 0000000000000003
> Nov 18 00:04:36 pax kernel: [441202.883352] RBP: 00005602c9801260 R08:
> 0000000000000000 R09: 0000000000000000
> Nov 18 00:04:36 pax kernel: [441202.883353] R10: 0000000000000003 R11:
> 0000000000000246 R12: 0000000000000000
> Nov 18 00:04:36 pax kernel: [441202.883354] R13: 00005602c9803df0 R14:
> 0000000000000000 R15: 00005602c9801260
>

-- 
Paweł Krawczyk
+44 7879 180015


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.