[so2] [Tema 1] Kernel oops la reinregistrare kretprobe

Mikey Gaby mikey_gaby at yahoo.com
Tue Mar 18 14:26:42 EET 2014


Salut, am si eu o problema la tema si nu stiu cum sa o rezolv.

Daca dau insmod, lucrurile merg, dar daca dau rmmod si insmod inca odata, primesc urmatorul output:

[   23.929009] BUG: unable to handle kernel paging request at d881ff00
[   23.929009] IP: [<c1336ea0>] misc_register+0x40/0x130
[   23.929009] *pde = 17433067 *pte = 00000000 
[   23.929009] Oops: 0000 [#1] SMP 
[   23.929009] Modules linked in: tracer(O+) netconsole [last unloaded: tracer]
[   23.929009] CPU: 0 PID: 928 Comm: insmod Tainted: G           O 3.13.0 #15
[   23.929009] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2007
[   23.929009] task: d68bd9f0 ti: d6f68000 task.ti: d6f68000
[   23.929009] EIP: 0060:[<c1336ea0>] EFLAGS: 00000202 CPU: 0
[   23.929009] EIP is at misc_register+0x40/0x130
[   23.929009] EAX: d881ff0c EBX: d8834f00 ECX: 0000002a EDX: d881ff00
[   23.929009] ESI: d8834f0c EDI: 00000001 EBP: d6f69dfc ESP: d6f69dd8
[   23.929009]  DS: 007b ES: 007b FS: 00d8 GS: 0033 SS: 0068
[   23.929009] CR0: 8005003b CR2: d881ff00 CR3: 177b2000 CR4: 00000690
[   23.929009] DR0: 00000000 DR1: 00000000 DR2: 00000000 DR3: 00000000
[   23.929009] DR6: 00000000 DR7: 00000000
[   23.929009] Stack:
[   23.929009]  00000000 d8834ea0 00000014 d8834ef8 d6f69dfc c1747d6e 00000000 d6c82980
[   23.929009]  00000001 d6f69e10 d8837124 0000166c d68d18f0 00000000 d6f69e84 c100045c
[   23.929009]  00000000 d8834f40 00000000 c1a2f6c8 d6f69e38 c10c3f8d c1a2f670 d8837000
[   23.929009] Call Trace:
[   23.929009]  [<c1747d6e>] ? register_kretprobe+0x11e/0x1d0
[   23.929009]  [<d8837124>] tracer_init+0x124/0x180 [tracer]
[   23.929009]  [<c100045c>] do_one_initcall+0xbc/0x180
[   23.929009]  [<c10c3f8d>] ? tracepoint_module_notify+0xcd/0x190
[   23.929009]  [<d8837000>] ? 0xd8836fff
[   23.929009]  [<c1745e75>] ? notifier_call_chain+0x45/0x60
[   23.929009]  [<c105fb9f>] ? __blocking_notifier_call_chain+0x4f/0x70
[   23.929009]  [<c109ef85>] load_module+0x18b5/0x2070
[   23.929009]  [<c12a3115>] ? _copy_from_user+0x35/0x50
[   23.929009]  [<c109f7eb>] SyS_init_module+0xab/0xf0
[   23.929009]  [<c17496da>] sysenter_do_call+0x12/0x22
[   23.929009] Code: 0c 89 70 10 b8 f0 9e a4 c1 e8 ad 9d 40 00 8b 0b 81 f9 ff 00 00 00 0f 84 a7 00 00 00 a1 08 9f a4 c1 3d 08 9f a4 c1 8d 50 f4 74 22 <3b> 48 f4 bf f0 ff ff ff 75 0b eb 6b 8d 74 26 00 3b 48 f4 74 7b
[   23.929009] EIP: [<c1336ea0>] misc_register+0x40/0x130 SS:ESP 0068:d6f69dd8
[   23.929009] CR2: 00000000d881ff00
[   23.929009] ---[ end trace d8a61c3d76e89915 ]---

Eu inteleg ca register_kretprobe apeleaza misc_register, nu ? Si totusi ce treaba are asta cu mine ? Si de ce sa-mi dea oops o functie din kernel ? Trebuia sa-mi returneze eroare si aia era ... Imi scapa ceva ? :-?

Mersi,

Mihai Cosareanu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://cursuri.cs.pub.ro/pipermail/so2/attachments/20140318/37bd06c2/attachment.html>


More information about the so2 mailing list