Comments (9)
from esdm.
from esdm.
from esdm.
Hi Stephan,
sure. Thanks a lot. I'll test in the next days.
Markus
from esdm.
May I missed something, but the initialization still fails:
[ 2.769116] BUG: scheduling while atomic: systemd-modules/717/0x00000002
[ 2.769284] Modules linked in: esdm_es(O+) v4l2loopback(O) videodev mc led_class kvm_amd ccp kvm drm irqbypass fuse backlight i2c_core deflate efi_pstore configfs efivarfs tpm rng_core dmi_sysfs ip_tables x_tables autofs4 sd_mod xhci_pci xhci_pci_renesas xhci_hcd ahci libahci libata nvme usbcore scsi_mod nvme_core t10_pi usb_common scsi_common crc64_rocksoft crc64 crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common rtc_cmos dm_mod dax btrfs blake2b_generic xor libcrc32c crc32c_generic crc32c_intel raid6_pq
[ 2.769298] CPU: 6 PID: 717 Comm: systemd-modules Tainted: G O 6.3.5 #1-NixOS
[ 2.769300] Hardware name: Micro-Star International Co., Ltd. MS-7C37/X570-A PRO (MS-7C37), BIOS H.J0 02/28/2023
[ 2.769300] Call Trace:
[ 2.769302] <TASK>
[ 2.769303] dump_stack_lvl+0x47/0x60
[ 2.769307] __schedule_bug+0x56/0x70
[ 2.769311] __schedule+0xfc1/0x1380
[ 2.769313] ? select_task_rq_fair+0x135/0x11f0
[ 2.769315] ? xa_load+0x8c/0xe0
[ 2.769318] schedule+0x5e/0xd0
[ 2.769319] schedule_timeout+0x151/0x160
[ 2.769321] wait_for_completion_state+0x14f/0x220
[ 2.769323] call_usermodehelper_exec+0x14e/0x1a0
[ 2.769325] __request_module+0x1a9/0x420
[ 2.769328] ? memcg_list_lru_alloc+0xaf/0x3d0
[ 2.769331] crypto_alg_mod_lookup+0x165/0x230
[ 2.769334] crypto_alloc_tfm_node+0x42/0xd0
[ 2.769336] esdm_kcapi_hash_name_alloc+0x25/0xc0 [esdm_es]
[ 2.769339] esdm_es_sched_module_init+0x2d/0xb0 [esdm_es]
[ 2.769342] esdm_es_mgr_sched_init+0x13/0x60 [esdm_es]
[ 2.769345] esdm_es_mgr_init+0x56/0x70 [esdm_es]
[ 2.769348] ? __pfx_init_module+0x10/0x10 [esdm_es]
[ 2.769351] do_one_initcall+0x5d/0x240
[ 2.769354] do_init_module+0x4a/0x200
[ 2.769356] __do_sys_init_module+0x17f/0x1b0
[ 2.769357] ? vfs_read+0x240/0x310
[ 2.769359] do_syscall_64+0x3e/0x90
[ 2.769361] entry_SYSCALL_64_after_hwframe+0x72/0xdc
[ 2.769364] RIP: 0033:0x7f764c122b5e
[ 2.769367] Code: 48 8b 0d bd e2 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 8a e2 0c 00 f7 d8 64 89 01 48
[ 2.769368] RSP: 002b:00007ffde601a008 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 2.769369] RAX: ffffffffffffffda RBX: 000055aa92d64260 RCX: 00007f764c122b5e
[ 2.769370] RDX: 00007f764c724b0d RSI: 0000000000106298 RDI: 000055aa92f72be0
[ 2.769371] RBP: 00007f764c724b0d R08: 0000000000000007 R09: 000055aa92d64130
[ 2.769371] R10: 0000000000000005 R11: 0000000000000246 R12: 000055aa92f72be0
[ 2.769372] R13: 0000000000000000 R14: 000055aa92d63b20 R15: 0000000000000000
[ 2.769373] </TASK>
[ 2.771773] esdm_es: Hash sha512 allocated
[ 2.771774] esdm_es: ESDM IRQ ES registered
[ 2.771893] esdm_es: Hash sha512 allocated
[ 2.771894] esdm_es: ESDM Scheduler ES registered
[ 2.771897] ------------[ cut here ]------------
[ 2.771898] initcall esdm_es_mgr_init+0x0/0x70 [esdm_es] returned with preemption imbalance
[ 2.771903] WARNING: CPU: 6 PID: 717 at init/main.c:1323 do_one_initcall+0x1db/0x240
[ 2.771906] Modules linked in: sha512_ssse3 sha512_generic esdm_es(O+) v4l2loopback(O) videodev mc led_class kvm_amd ccp kvm drm irqbypass fuse backlight i2c_core deflate efi_pstore configfs efivarfs tpm rng_core dmi_sysfs ip_tables x_tables autofs4 sd_mod xhci_pci xhci_pci_renesas xhci_hcd ahci libahci libata nvme usbcore scsi_mod nvme_core t10_pi usb_common scsi_common crc64_rocksoft crc64 crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common rtc_cmos dm_mod dax btrfs blake2b_generic xor libcrc32c crc32c_generic crc32c_intel raid6_pq
[ 2.771920] CPU: 6 PID: 717 Comm: systemd-modules Tainted: G W O 6.3.5 #1-NixOS
[ 2.771922] Hardware name: Micro-Star International Co., Ltd. MS-7C37/X570-A PRO (MS-7C37), BIOS H.J0 02/28/2023
[ 2.771922] RIP: 0010:do_one_initcall+0x1db/0x240
[ 2.771924] Code: c6 b8 f9 15 92 4c 89 e7 e8 f2 a1 a8 00 fb 0f 1f 44 00 00 e9 c0 fe ff ff 4c 89 e2 48 89 de 48 c7 c7 90 6e 1a 92 e8 45 04 0a 00 <0f> 0b e9 b1 fe ff ff bd ff ff ff ff e9 b0 fe ff ff e8 0f fe a9 00
[ 2.771925] RSP: 0018:ffffa5ae413bfdd0 EFLAGS: 00010282
[ 2.771926] RAX: 0000000000000000 RBX: ffffffffc0994010 RCX: 0000000000000027
[ 2.771926] RDX: ffff8abbfeba14c8 RSI: 0000000000000001 RDI: ffff8abbfeba14c0
[ 2.771927] RBP: 0000000000000000 R08: 0000000000000000 R09: ffffa5ae413bfc78
[ 2.771928] R10: 0000000000000003 R11: ffffffff92938868 R12: ffffa5ae413bfdd0
[ 2.771928] R13: 0000000000000000 R14: 00007f764c724b0d R15: ffffa5ae413bfe68
[ 2.771929] FS: 00007f764c551800(0000) GS:ffff8abbfeb80000(0000) knlGS:0000000000000000
[ 2.771930] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 2.771930] CR2: 00007f7170368000 CR3: 00000001052e6000 CR4: 0000000000750ee0
[ 2.771931] PKRU: 55555554
[ 2.771932] Call Trace:
[ 2.771932] <TASK>
[ 2.771933] ? do_one_initcall+0x1db/0x240
[ 2.771934] ? __warn+0x81/0x130
[ 2.771936] ? do_one_initcall+0x1db/0x240
[ 2.771938] ? report_bug+0x171/0x1a0
[ 2.771940] ? handle_bug+0x41/0x70
[ 2.771941] ? exc_invalid_op+0x17/0x70
[ 2.771942] ? asm_exc_invalid_op+0x1a/0x20
[ 2.771945] ? __pfx_init_module+0x10/0x10 [esdm_es]
[ 2.771948] ? do_one_initcall+0x1db/0x240
[ 2.771951] do_init_module+0x4a/0x200
[ 2.771952] __do_sys_init_module+0x17f/0x1b0
[ 2.771953] ? vfs_read+0x240/0x310
[ 2.771955] do_syscall_64+0x3e/0x90
[ 2.771957] entry_SYSCALL_64_after_hwframe+0x72/0xdc
[ 2.771958] RIP: 0033:0x7f764c122b5e
[ 2.771960] Code: 48 8b 0d bd e2 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 af 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 8a e2 0c 00 f7 d8 64 89 01 48
[ 2.771961] RSP: 002b:00007ffde601a008 EFLAGS: 00000246 ORIG_RAX: 00000000000000af
[ 2.771962] RAX: ffffffffffffffda RBX: 000055aa92d64260 RCX: 00007f764c122b5e
[ 2.771962] RDX: 00007f764c724b0d RSI: 0000000000106298 RDI: 000055aa92f72be0
[ 2.771963] RBP: 00007f764c724b0d R08: 0000000000000007 R09: 000055aa92d64130
[ 2.771963] R10: 0000000000000005 R11: 0000000000000246 R12: 000055aa92f72be0
[ 2.771964] R13: 0000000000000000 R14: 000055aa92d63b20 R15: 0000000000000000
[ 2.771965] </TASK>
[ 2.771966] ---[ end trace 0000000000000000 ]---
from esdm.
from esdm.
Hi Stephan,
initialization seems to work now.
I currently face the following error, when starting esdm-server:
ESDM (18:33:37) (esdm-server) Error - Entropy Source: Kernel entropy buffer has different size
ESDM (18:33:37) (esdm-server) Error: Initialization of ES Interrupt failed: -14
But that should be dealt with in another issue I guess.
Probably the packed attribute is missing and the kernel and user-space are aligned differently on my system.
BR
Markus
from esdm.
Short update: the issue above resulted from a mismatch in ESDM_SEED_BUFFER_INIT_ADD_BITS when oversample_es is true.
from esdm.
from esdm.
Related Issues (20)
- Including esdm_rpc_client.h from C++ c HOT 4
- Dangerous usage of the min_t macro HOT 8
- aux_src should be initialized first HOT 2
- adapt ESDM_SEED_BUFFER_INIT_ADD_BITS in kernel module for ais2031 and oversample_es flag HOT 4
- long blocking in esdm-proc files HOT 10
- esdm-cuse-random continues to deliver "random" numbers, when esdm-server is stopped HOT 3
- systemd service for esdm-server does not allow debugfs reads HOT 1
- SEGV when using SHA3-512 in esdm_get_cpu_data_compress HOT 3
- Race condition on /dev/esdm_es HOT 14
- First request takes long time with AIS2031 mode enabled HOT 1
- write_wakeup_threshold does not work HOT 7
- Running into fuse limitation HOT 6
- Memory corruption on repeated initialization HOT 16
- ESDM stalls on delivering random bytes to client process HOT 13
- v1.1.1: Behaviour of esdm_aux_timedwait_for_need_entropy for current entropy level 0 HOT 12
- v0.6.0ff: Internal entropy level reported in logs and externally visible entropy level do not match HOT 4
- timeout-based companion for esdm_rpcc_get_random_bytes_full HOT 3
- revisit time comparison operations and change to CLOCK_MONOTONIC HOT 3
- close client rpc connection after first EPIPE HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esdm.