Why does reading the /proc/stat file causes a NULL pointer dereference panic.
Issue
- The system panic’s and you see a message like “BUG: unable to handle kernel NULL pointer dereference at” logged.
- You see that there is a ifconfig task also running.
[5636041.711486] bnx2 0000:05:00.1: eth5: using MSIX
[5636042.546100] alloc kstat_irqs on node 2
[5636042.546126] bnx2 0000:8a:00.1: irq 109 for MSI/MSI-X
[5636042.546131] alloc kstat_irqs on node 2
[5636042.546144] bnx2 0000:8a:00.1: irq 110 for MSI/MSI-X
[5636042.546149] alloc kstat_irqs on node 2
[5636042.546152] BUG: unable to handle kernel NULL pointer dereference at 00000000000000e0
[5636042.546155] IP: [<ffffffff810e6c37>] kstat_irqs+0x57/0xa0
[5636042.546163] PGD 6011d18067 PUD 6012b17067 PMD 0
[5636042.546165] Oops: 0000 [#1] SMP
[5636042.546167] last sysfs file: /sys/devices/pci0000:80/0000:80:01.0/0000:8a:00.1/resource
[5636042.546169] CPU 12
[5636042.546170] Modules linked in: mlx4_en ipmi_devintf mlx4_core nfs lockd fscache auth_rpcgss nfs_acl sunrpc mptctl mptbase autofs4 bonding 8021q garp stp llc ipv6 ext3 jbd power_meter microcode iTCO_wdt iTCO_vendor_support bnx2 netxen_nic serio_raw lpc_ich mfd_core hpilo hpwdt sg i7core_edac edac_core shpchp ext4 jbd2 mbcache sr_mod cdrom sd_mod crc_t10dif pata_acpi ata_generic ata_piix hpsa radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core dm_mirror dm_region_hash dm_log dm_mod [last unloaded: mlx4_en]
[5636042.546193]
[5636042.546195] Pid: 17952, comm: gmond Not tainted 2.6.32-431.20.3.el6.x86_64 #1 HP ProLiant DL580 G7
[5636042.546198] RIP: 0010:[<ffffffff810e6c37>] [<ffffffff810e6c37>] kstat_irqs+0x57/0xa0
[5636042.546201] RSP: 0018:ffff888011b5fc78 EFLAGS: 00010287
[5636042.546202] RAX: 0000000000000038 RBX: 0000000000000000 RCX: 0000000000000038
[5636042.546204] RDX: 0000000000000000 RSI: 0000000000000050 RDI: 0000000000000050
[5636042.546205] RBP: ffff888011b5fc98 R08: ffffffff81c064c0 R09: 0000000000000000
[5636042.546207] R10: 0000000000000000 R11: 00000000000000e6 R12: ffffffff81c064c0
[5636042.546208] R13: ffff881fb6a36180 R14: 0000000021813704 R15: 000000000000005e
[5636042.546210] FS: 00007f052611e700(0000) GS:ffff8820b0c80000(0000) knlGS:0000000000000000
[5636042.546212] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[5636042.546213] CR2: 00000000000000e0 CR3: 0000006012f19000 CR4: 00000000000007e0
[5636042.546215] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[5636042.546216] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[5636042.546218] Process gmond (pid: 17952, threadinfo ffff888011b5e000, task ffff888011b34040)
[5636042.546219] Stack:
[5636042.546220] 0000000000000000 0000000a74b38004 000000000000006f ffff88401246a840
[5636042.546230] <d> ffff888011b5fe18 ffffffff811fd164 0000000021813704 000000000000005e
[5636042.546234] <d> 0000000000000000 0000000000000430 0000000000000000 0000000000000000
[5636042.546239] Call Trace:
[5636042.546248] [<ffffffff811fd164>] show_stat+0x554/0x630
[5636042.546257] [<ffffffff811ae602>] seq_read+0xf2/0x400
[5636042.546260] [<ffffffff811f3b9e>] proc_reg_read+0x7e/0xc0
[5636042.546267] [<ffffffff81189525>] vfs_read+0xb5/0x1a0
[5636042.546269] [<ffffffff81189661>] sys_read+0x51/0x90
[5636042.546277] [<ffffffff8100b072>] system_call_fastpath+0x16/0x1b
[5636042.546278] Code: 4d 85 ed 74 57 8b 35 e9 50 b1 00 4c 8b 25 c2 e4 52 00 31 db b8 ff ff ff ff eb 13 66 0f 1f 84 00 00 00 00 00 49 8b 55 10 48 63 c8 <03> 1c 8a 83 c0 01 48 63 f6 4c 89 e7 48 63 d0 e8 05 c6 19 00 8b
[5636042.546291] RIP [<ffffffff810e6c37>] kstat_irqs+0x57/0xa0
[5636042.546293] RSP <ffff888011b5fc78>
[5636042.546294] CR2: 00000000000000e0
crash>
Environment
- Red Hat Enterprise Linux 6
- bnx2 driver
- Maybe other drivers
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
