Kernel panic due to NULL pointer dereference in sysfs_do_create_link_sd() while loading the [ipmi_si] module

Solution Verified - Updated -

Issue

  • Kernel panic due to NULL pointer dereference at sysfs_do_create_link_sd.isra.2+0x34 while loading the [ipmi_si] module.
[ 3669.296061] IPMI System Interface driver.
[ 3669.296066] ipmi_hardcode: probing via hardcoded address
[ 3669.296068] ipmi_si: Adding hardcoded-specified kcs state machine
[ 3669.296071] ipmi_si: Trying hardcoded-specified kcs state machine at i/o address 0xca2, slave address 0x0, irq 0
[ 3669.346795] BUG: unable to handle kernel NULL pointer dereference at 0000000000000030
[ 3669.354613] IP: [<ffffffff964ccb94>] sysfs_do_create_link_sd.isra.2+0x34/0xc0
[ 3669.361731] PGD 41d109067 PUD 41a7f9067 PMD 0 
[ 3669.366176] Oops: 0000 [#1] SMP 
[ 3669.369400] Modules linked in: ipmi_si(+) ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack 8021q garp mrp ip_set nfnetlink ebtable_nat ebtable_broute bridge stp llc ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ngrstio(POE) ipmi_watchdog amd64_edac_mod edac_mce_amd kvm_amd kvm irqbypass sg pcspkr k10temp i2c_piix4 ipmi_poweroff ipmi_devintf ipmi_msghandler i2c_dev ip_tables xfs libcrc32c sd_mod crc_t10dif crct10dif_generic crct10dif_common mptsas scsi_transport_sas mptscsih mptbase serio_raw ata_generic e1000e pata_acpi sata_svw
[ 3669.440484]  pata_serverworks ptp libata pps_core dm_mirror dm_region_hash dm_log dm_mod
[ 3669.447459] CPU: 7 PID: 23286 Comm: modprobe Kdump: loaded Tainted: POE  ------------  3.10.0-957.10.1.el7.x86_64 #1
[ 3669.458980] Hardware name: ALCATEL-LUCENT MOLENE/MOLENE, BIOS 080015  12/31/2007
[ 3669.466344] task: ffff8b155de1e180 ti: ffff8b1356604000 task.ti: ffff8b1356604000
[ 3669.473796] RIP: 0010:[<ffffffff964ccb94>]  [<ffffffff964ccb94>] sysfs_do_create_link_sd.isra.2+0x34/0xc0
[ 3669.483333] RSP: 0018:ffff8b1356607b38  EFLAGS: 00010246
[ 3669.488622] RAX: 0000000000000000 RBX: 0000000000000030 RCX: 0000000000000001
[ 3669.495727] RDX: 0000000000000001 RSI: 0000000000000030 RDI: ffffffff97424578
[ 3669.502831] RBP: ffff8b1356607b60 R08: 0000000000000000 R09: 0000000000000000
[ 3669.510110] R10: ffff8b1567d9f380 R11: ffffddbb5077b400 R12: ffffffff96cc153b
[ 3669.517215] R13: ffff8b15586675a0 R14: 0000000000000001 R15: 0000000000000000
[ 3669.524321] FS:  00007fc37f365740(0000) GS:ffff8b1567d80000(0000) knlGS:0000000000000000
[ 3669.532378] CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
[ 3669.538098] CR2: 0000000000000030 CR3: 000000041de5a000 CR4: 00000000000007e0
[ 3669.545204] Call Trace:
[ 3669.547640]  [<ffffffff964ccc45>] sysfs_create_link+0x25/0x50
[ 3669.553363]  [<ffffffff966a8572>] driver_sysfs_add+0x82/0xb0
[ 3669.558999]  [<ffffffff966a8b76>] device_bind_driver+0x16/0x30
[ 3669.564809]  [<ffffffff96966e92>] ? mutex_lock+0x12/0x2f
[ 3669.570096]  [<ffffffff966a8bf0>] device_attach+0x60/0xb0
[ 3669.575672]  [<ffffffff966a7e48>] bus_probe_device+0x98/0xd0
[ 3669.581305]  [<ffffffff966a56ef>] device_add+0x4ef/0x7b0
[ 3669.586596]  [<ffffffff966aac51>] platform_device_add+0xd1/0x2d0
[ 3669.592582]  [<ffffffffc07275a3>] try_smi_init+0x693/0xb80 [ipmi_si]
[ 3669.598912]  [<ffffffffc0728f90>] ? cleanup_ipmi_si+0x90/0x90 [ipmi_si]
[ 3669.605501]  [<ffffffffc07290b5>] init_ipmi_si+0x125/0x1d0 [ipmi_si]
[ 3669.611831]  [<ffffffff9620210a>] do_one_initcall+0xba/0x240
[ 3669.617466]  [<ffffffff963190ac>] load_module+0x272c/0x2bc0
[ 3669.623014]  [<ffffffff965a3700>] ? ddebug_proc_write+0x100/0x100
[ 3669.629082]  [<ffffffff9631962f>] SyS_init_module+0xef/0x140
[ 3669.634904]  [<ffffffff96975ddb>] system_call_fastpath+0x22/0x27
[ 3669.640886]  [<ffffffff96975d21>] ? system_call_after_swapgs+0xae/0x146
[ 3669.647472] Code: 48 89 e5 41 57 41 56 41 55 41 54 49 89 d4 53 74 7d 48 85 ff 49 89 fd 74 75 48 89 f3 48 c7 c7 78 45 42 97 41 89 ce e8 cc e8 49 00 <48> 8b 1b 48 85 db 74 08 48 89 df e8 dc c1 ff ff 48 c7 c7 78 45 
[ 3669.666762] RIP  [<ffffffff964ccb94>] sysfs_do_create_link_sd.isra.2+0x34/0xc0
[ 3669.673962]  RSP <ffff8b1356607b38>
[ 3669.677432] CR2: 0000000000000030

Environment

  • Red Hat Enterprise Linux Server release 7.6 (Maipo)
  • kernel-3.10.0-957.10.1.el7.x86_64
  • ipmi_si

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content