Divide by zero error in intel_pstate_timer_func() [ inline s64 div_s64_rem() ]

Solution Verified - Updated -

Issue

  • Kernel panic due to divide error in intel_pstate_timer_func() function.
[4067605.161646] divide error: 0000 [#1] SMP 
[4067605.161694] Modules linked in: btrfs zlib_deflate raid6_pq xor msdos ext4 mbcache jbd2 binfmt_misc arc4 md4 nls_utf8 cifs dns_resolver tcp_lp bnep bluetooth rfkill fuse dm_service_time iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi nf_conntrack_netbios_ns nf_conntrack_broadcast nf_conntrack_ftp ip6t_rpfilter ip6t_REJECT ipt_REJECT xt_conntrack ebtable_nat ebtable_broute bridge stp llc ebtable_filter ebtables ip6table_nat nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_ipv6 ip6table_mangle ip6table_security ip6table_raw ip6table_filter ip6_tables iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle iptable_security iptable_raw iptable_filter ip_tables intel_powerclamp coretemp vfat fat kvm_intel iTCO_wdt iTCO_vendor_support ipmi_devintf sr_mod kvm crct10dif_pclmul
[4067605.162023]  crc32_pclmul crc32c_intel ghash_clmulni_intel aesni_intel cdc_ether lrw usbnet cdrom mii gf128mul glue_helper ablk_helper cryptd lpc_ich mfd_core pcspkr sb_edac edac_core ipmi_si ipmi_msghandler ioatdma wmi shpchp acpi_pad nfsd auth_rpcgss nfs_acl lockd uinput dm_multipath sunrpc xfs libcrc32c usb_storage sd_mod crc_t10dif crct10dif_common ixgbe mgag200 syscopyarea sysfillrect sysimgblt mdio drm_kms_helper ttm igb drm ptp pps_core dca i2c_algo_bit megaraid_sas i2c_core dm_mirror dm_region_hash dm_log dm_mod
[4067605.162245] CPU: 113 PID: 0 Comm: swapper/113 Tainted: G        W   --------------   3.10.0-229.1.2.el7.x86_64 #1
[4067605.162283] Hardware name: IBM x3950 X6 -[3837AC2]-/00FN827, BIOS -[A8E112BUS-1.00]- 08/27/2014
[4067605.162316] task: ffff880fe8abe660 ti: ffff880fe8ae4000 task.ti: ffff880fe8ae4000
[4067605.162343] RIP: 0010:[<ffffffff814a9279>]  [<ffffffff814a9279>] intel_pstate_timer_func+0x179/0x3d0
[4067605.162387] RSP: 0018:ffff883fff4e3db8  EFLAGS: 00010206
[4067605.162408] RAX: 0000000027100000 RBX: ffff883fe6965100 RCX: 0000000000000000
[4067605.162435] RDX: 0000000000000000 RSI: 0000000000000010 RDI: 000000002e53632d
[4067605.162461] RBP: ffff883fff4e3e20 R08: 000e6f69a5a125c0 R09: ffff883fe84ec001
[4067605.162486] R10: 0000000000000002 R11: 0000000000000005 R12: 00000000000049f5
[4067605.162513] R13: 0000000000271000 R14: 00000000000049f5 R15: 0000000000000246
[4067605.162539] FS:  0000000000000000(0000) GS:ffff883fff4e0000(0000) knlGS:0000000000000000
[4067605.162567] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[4067605.162590] CR2: 00007f7668601000 CR3: 000000000190a000 CR4: 00000000001407e0
[4067605.162616] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[4067605.162642] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
[4067605.162669] Stack:
[4067605.162680]  ffff883fff4e3e58 ffffffff81099dc1 0000000000000086 0000000000000071
[4067605.162729]  ffff883fff4f3680 0000000000000071 fbdc8a965e33afee ffffffff810b69dd
[4067605.162773]  ffff883fe84ec000 ffff883fe6965108 0000000000000100 ffffffff814a9100
[4067605.162817] Call Trace:
[4067605.162832]  <IRQ> 
[4067605.162847] 
[4067605.162867]  [<ffffffff81099dc1>] ? run_posix_cpu_timers+0x51/0x840
[4067605.162890]  [<ffffffff810b69dd>] ? trigger_load_balance+0x5d/0x200
[4067605.162917]  [<ffffffff814a9100>] ? pid_param_set+0x130/0x130
[4067605.162950]  [<ffffffff8107df56>] call_timer_fn+0x36/0x110
[4067605.162974]  [<ffffffff814a9100>] ? pid_param_set+0x130/0x130
[4067605.163000]  [<ffffffff8107fdcf>] run_timer_softirq+0x21f/0x320
[4067605.163028]  [<ffffffff81077b2f>] __do_softirq+0xef/0x280
[4067605.163057]  [<ffffffff816156dc>] call_softirq+0x1c/0x30
[4067605.163088]  [<ffffffff81015d95>] do_softirq+0x65/0xa0
[4067605.163111]  [<ffffffff81077ec5>] irq_exit+0x115/0x120
[4067605.163135]  [<ffffffff81616355>] smp_apic_timer_interrupt+0x45/0x60
[4067605.163163]  [<ffffffff81614a1d>] apic_timer_interrupt+0x6d/0x80
[4067605.163188]  <EOI> 
[4067605.163201] 
[4067605.163215]  [<ffffffff814a9c32>] ? cpuidle_enter_state+0x52/0xc0
[4067605.163232]  [<ffffffff814a9c28>] ? cpuidle_enter_state+0x48/0xc0
[4067605.163258]  [<ffffffff814a9d65>] cpuidle_idle_call+0xc5/0x200
[4067605.163286]  [<ffffffff8101d14e>] arch_cpu_idle+0xe/0x30
[4067605.163314]  [<ffffffff810c67c1>] cpu_startup_entry+0xf1/0x290
[4067605.163345]  [<ffffffff8104228a>] start_secondary+0x1ba/0x230
[4067605.164528] Code: 42 0f 00 45 89 e6 48 01 c2 43 8d 44 6d 00 39 d0 73 26 49 c1 e5 08 89 d2 4d 63 f4 49 63 c5 48 c1 e2 08 48 c1 e0 08 48 63 ca 48 99 <48> f7 f9 48 98 4c 0f af f0 49 c1 ee 08 8b 43 78 c1 e0 08 44 29 
[4067605.166869] RIP  [<ffffffff814a9279>] intel_pstate_timer_func+0x179/0x3d0
[4067605.168060]  RSP <ffff883fff4e3db8>

Environment

  • Red Hat Enterprise Linux - 7.1, observed with the following kernel revisions, though others could be impacted as well:
    • kernel-3.10.0-229.1.2.el7.x86_64
  • Red Hat Enterprise Linux 6, minor version <8

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