Skip to content

Hunting the oops #1

@iocellnetworks

Description

@iocellnetworks

This proto version is surely oopsing when ndas_core connects.

Seems like as the network card is registered it makes a null pointer.
The only thing close that I saw in the past was this bug.
http://ndas4linux.iocellnetworks.com/trac/index.cgi/ticket/1

But I un - did the commented line in that bug, to test it. And there was still the same crash.

I will try to understand a little better tomorrow.
Thanks again.

Here is a basic oops.

4905:Feb 15 16:04:08 rawhide kernel: [  788.536602] Disabling lock debugging due to kernel taint
4906:Feb 15 16:04:17 rawhide dbus-daemon[707]: ** Message: No devices in use, exit
4907:Feb 15 16:04:20 rawhide kernel: [  800.831444] ndas_core: module license 'GPLv2, BSD' taints kernel.
4908:Feb 15 16:04:20 rawhide kernel: [  800.835260] ndas: sal_thread_create: sal_thread
4909:Feb 15 16:04:20 rawhide kernel: [  800.835407] ndas: sal_thread_create: set tid; tsk=-131939335844448
4910:Feb 15 16:04:20 rawhide kernel: [  800.835410] ndas: sal_thread_created: tid=-1605442208
4911:Feb 15 16:04:20 rawhide kernel: [  800.836105] ndas: sal_thread_create: sal_thread
4912:Feb 15 16:04:20 rawhide kernel: [  800.836229] ndas: sal_thread_create: set tid; tsk=-131938686710368
4913:Feb 15 16:04:20 rawhide kernel: [  800.836231] ndas: sal_thread_created: tid=-1605442432
4914:Feb 15 16:04:20 rawhide kernel: [  800.838139] ndas: registering network interface enp6s1
4915:Feb 15 16:04:20 rawhide kernel: [  800.838157] BUG: unable to handle kernel NULL pointer dereference at 0000000000000024
4916:Feb 15 16:04:20 rawhide kernel: [  800.838218] IP: [<ffffffff8135b119>] strncmp+0x9/0x60
4917:Feb 15 16:04:20 rawhide kernel: [  800.838256] PGD 8c078067 PUD 8c009067 PMD 0
4918:Feb 15 16:04:20 rawhide kernel: [  800.838292] Oops: 0000 [#1] SMP
4919:Feb 15 16:04:20 rawhide kernel: [  800.838322] Modules linked in: ndas_core(POF+) ndas_sal(OF) rfcomm ipt_MASQUERADE nf_conntrack_netbios_ns nf_conntrack_broadcast ip6table_mangle ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 iptable_nat nf_nat_ipv4 nf_nat iptable_mangle nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_conntrack ebtable_filter ebtables bnep bluetooth rfkill ip6table_filter ip6_tables ppdev iTCO_wdt iTCO_vendor_support coretemp kvm_intel kvm microcode usblp snd_hda_codec_idt snd_hda_intel parport_pc snd_hda_codec snd_hwdep parport snd_seq snd_seq_device snd_pcm serio_raw snd_page_alloc snd_timer snd soundcore i2c_i801 lpc_ich mei mfd_core uinput ata_generic pata_acpi firewire_ohci r8169 mii firewire_core crc_itu_t i915 sata_sil24 pata_marvell video i2c_algo_bit drm_kms_helper e1000e drm i2c_core sunrpc
4920:Feb 15 16:04:20 rawhide kernel: [  800.838933] CPU 0
4921:Feb 15 16:04:20 rawhide kernel: [  800.838950] Pid: 2382, comm: insmod Tainted: PF          O 3.8.0-0.rc7.git2.1.fc19.x86_64 #1                  /DG965OT
4922:Feb 15 16:04:20 rawhide kernel: [  800.839007] RIP: 0010:[<ffffffff8135b119>]  [<ffffffff8135b119>] strncmp+0x9/0x60
4923:Feb 15 16:04:20 rawhide kernel: [  800.839007] RSP: 0018:ffff8800af903d70  EFLAGS: 00010002
4924:Feb 15 16:04:20 rawhide kernel: [  800.839007] RAX: 0000000000000286 RBX: 0000000000000000 RCX: 0000000000000001
4925:Feb 15 16:04:20 rawhide kernel: [  800.839007] RDX: 0000000000000010 RSI: ffff880035c6a160 RDI: 0000000000000024
4926:Feb 15 16:04:20 rawhide kernel: [  800.839007] RBP: ffff8800af903d70 R08: 0000000000000002 R09: 0000000000000001
4927:Feb 15 16:04:20 rawhide kernel: [  800.839007] R10: ffff880093658000 R11: 0000000000000000 R12: ffff880035c6a160
4928:Feb 15 16:04:20 rawhide kernel: [  800.839007] R13: ffff880035c6a160 R14: 0000000000000286 R15: ffffffffa04edac0
4929:Feb 15 16:04:20 rawhide kernel: [  800.839007] FS:  00007f42cc8a2740(0000) GS:ffff8800bdc00000(0000) knlGS:0000000000000000
4930:Feb 15 16:04:20 rawhide kernel: [  800.839007] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
4931:Feb 15 16:04:20 rawhide kernel: [  800.839007] CR2: 0000000000000024 CR3: 000000008c07b000 CR4: 00000000000007f0
4932:Feb 15 16:04:20 rawhide kernel: [  800.839007] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
4933:Feb 15 16:04:20 rawhide kernel: [  800.839007] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
4934:Feb 15 16:04:20 rawhide kernel: [  800.839007] Process insmod (pid: 2382, threadinfo ffff8800af902000, task ffff880093658000)
4935:Feb 15 16:04:20 rawhide kernel: [  800.839007] Stack:
4936:Feb 15 16:04:20 rawhide kernel: [  800.839007]  ffff8800af903da0 ffffffffa04b7c5d ffff880035c6a160 0000000000000003
4937:Feb 15 16:04:20 rawhide kernel: [  800.839007]  ffffffffa04e8e39 0000000000000000 ffff8800af903dc8 ffffffffa04cf48a
4938:Feb 15 16:04:20 rawhide kernel: [  800.839007]  ffff880035c6a160 0000000000000003 ffffffffa04e8e39 ffff8800af903dd8
4939:Feb 15 16:04:20 rawhide kernel: [  800.839007] Call Trace:
4940:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffffa04b7c5d>] sal_netdev_open+0x8d/0x1f0 [ndas_sal]
4941:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffffa04cf48a>] lpx_register_dev+0xda/0x260 [ndas_core]
4942:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffffa04c50fe>] ndas_register_network_interface+0xe/0x10 [ndas_core]
4943:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffffa04e5c85>] init_module+0x105/0x150 [ndas_core]
4944:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffffa04e5b80>] ? ndas_change_handler_func+0x70/0x70 [ndas_core]
4945:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffff8100210a>] do_one_initcall+0x10a/0x160
4946:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffff810e9e8e>] load_module+0x1a4e/0x2310
4947:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffff81374f30>] ? ddebug_proc_write+0xf0/0xf0
4948:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffff810ea811>] sys_init_module+0xc1/0x110
4949:Feb 15 16:04:20 rawhide kernel: [  800.839007]  [<ffffffff8170eb19>] system_call_fastpath+0x16/0x1b
4950:Feb 15 16:04:20 rawhide kernel: [  800.839007] Code: c6 01 3a 46 ff 74 eb 19 c0 83 c8 01 5d c3 0f 1f 40 00 31 c0 5d c3 66 66 66 2e 0f 1f 84 00 00 00 00 00 55 48 85 d2 48 89 e5 74 3c <0f> b6 0f 44 0f b6 06 44 38 c1 75 3b 84 c9 74 2c 48 83 ea 01 31
4951:Feb 15 16:04:20 rawhide kernel: [  800.839007] RIP  [<ffffffff8135b119>] strncmp+0x9/0x60

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions