rhel7: Kernel panics due to a general protection fault at i40e_config_vf_promiscuous_mode() when using the i40e driver.

Solution Unverified - Updated -

Issue

  • The kernel panic occurred with folowing logs.
[1831559.911792] i40e 0000:af:00.1: Setting MAC be:49:2f:c1:e0:fd on VF 8
[1831559.923583] sd 19:0:0:2683: alua: supports implicit and explicit TPGS
[1831559.923595] sd 19:0:0:2683: alua: device naa.60060160f6504a001ace275f0c5d95e8 port group 1 rel port 3
[1831559.927558] sd 20:0:0:2683: alua: supports implicit and explicit TPGS
[1831559.927565] sd 20:0:0:2683: alua: device naa.60060160f6504a001ace275f0c5d95e8 port group 2 rel port 7
[1831559.928882] sd 19:0:0:2683: alua: port group 01 state A preferred supports tolUsNA
[1831559.932971] sd 20:0:0:2683: alua: port group 02 state N non-preferred supports tolUsNA
[1831560.003068] i40e 0000:af:00.1: Bring down and up the VF interface to make this change effective.
[1831560.004600] BUG: unable to handle kernel paging request at 0000000100000017
[1831560.004754] IP: [<ffffffffc0416f25>] i40e_config_vf_promiscuous_mode+0x165/0x350 [i40e]
[1831560.005041] PGD 0 
[1831560.005178] Oops: 0000 [#1] SMP 
[1831560.005320] Modules linked in: vfio_pci vfio_iommu_type1 vfio binfmt_misc ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter dm_round_robin iavf(OE) i40evf(OE) iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi 8021q garp mrp bonding iTCO_wdt iTCO_vendor_support dell_smbios sparse_keymap dcdbas skx_edac intel_powerclamp coretemp intel_rapl iosf_mbi kvm_intel kvm irqbypass crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd pcspkr joydev i2c_i801 wmi shpchp sg lpc_ich ipmi_si ipmi_devintf ipmi_msghandler nfit mei_me libnvdimm acpi_power_meter mei acpi_pad dm_multipath dm_mod br_netfilter nfsd bridge auth_rpcgss stp nfs_acl llc lockd grace sunrpc ip_tables xfs libcrc32c sr_mod cdrom sd_mod crc_t10dif crct10dif_generic crct10dif_pclmul crct10dif_common
[1831560.010045]  crc32c_intel drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops ttm drm igb ahci i40e(OE) libahci ptp pps_core libata dca megaraid_sas i2c_algo_bit i2c_core
[1831560.010527] CPU: 1 PID: 332009 Comm: libvirtd Kdump: loaded Tainted: G           OE  ------------   3.10.0-862.11.6.el7.x86_64 #1
[1831560.010804] Hardware name: Dell Inc. PowerEdge R740/0F9N89, BIOS 2.3.10 08/15/2019
[1831560.011074] task: ffffa0e59d384f10 ti: ffffa0aa48140000 task.ti: ffffa0aa48140000
[1831560.011344] RIP: 0010:[<ffffffffc0416f25>]  [<ffffffffc0416f25>] i40e_config_vf_promiscuous_mode+0x165/0x350 [i40e]
[1831560.011634] RSP: 0018:ffffa0aa481436d0  EFLAGS: 00010202
[1831560.011774] RAX: 0000000000000000 RBX: ffffa0e5a2b28008 RCX: 0000000000000000
[1831560.012044] RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffa0e5a2b28370
[1831560.012314] RBP: ffffa0aa48143718 R08: 0000000000000000 R09: 0000000000000030
[1831560.012596] R10: 0000000000000000 R11: ffffa0aa176de600 R12: ffffa06a7ee99000
[1831560.012881] R13: 0000000100000001 R14: ffffa0e5a2b28000 R15: 0000000000000000
[1831560.013169] FS:  00007fe9eddcd700(0000) GS:ffffa0e5bbe00000(0000) knlGS:0000000000000000
[1831560.013457] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[1831560.013607] CR2: 0000000100000017 CR3: 0000004173bc4000 CR4: 00000000007627e0
[1831560.013890] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[1831560.014173] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[1831560.014453] PKRU: 55555554
[1831560.014590] Call Trace:
[1831560.014737]  [<ffffffffc041e2e2>] i40e_ndo_set_vf_port_vlan+0x3e2/0x500 [i40e]
[1831560.015013]  [<ffffffff99606c08>] do_setlink+0xaf8/0xe50
[1831560.015160]  [<ffffffff9971878c>] ? __schedule+0x41c/0xa20
[1831560.015301]  [<ffffffff9960703a>] rtnl_setlink+0xda/0x140
[1831560.015444]  [<ffffffff996091c7>] rtnetlink_rcv_msg+0xa7/0x260
[1831560.015587]  [<ffffffff99717b88>] ? __mutex_lock_slowpath+0x1b8/0x1d0
[1831560.015734]  [<ffffffff992d7fa5>] ? sock_has_perm+0x75/0x90
[1831560.015875]  [<ffffffff99609120>] ? rtnl_newlink+0x880/0x880
[1831560.016019]  [<ffffffff9962a06b>] netlink_rcv_skb+0xab/0xc0
[1831560.016160]  [<ffffffff99603668>] rtnetlink_rcv+0x28/0x30
[1831560.016300]  [<ffffffff996299f0>] netlink_unicast+0x170/0x210
[1831560.016444]  [<ffffffff99629d98>] netlink_sendmsg+0x308/0x420
[1831560.016589]  [<ffffffff995d1396>] sock_sendmsg+0xb6/0xf0
[1831560.016732]  [<ffffffff9914cead>] ? call_rcu_sched+0x1d/0x20
[1831560.016874]  [<ffffffff9923705f>] ? d_free+0x4f/0x70
[1831560.017015]  [<ffffffff995d21a9>] ___sys_sendmsg+0x3a9/0x3c0
[1831560.017157]  [<ffffffff9971b46e>] ? _raw_spin_unlock_bh+0x1e/0x20
[1831560.017299]  [<ffffffff995d6790>] ? release_sock+0x120/0x170
[1831560.017446]  [<ffffffff995d37b1>] __sys_sendmsg+0x51/0x90
[1831560.017599]  [<ffffffff995d3802>] SyS_sendmsg+0x12/0x20
[1831560.017752]  [<ffffffff9972579b>] system_call_fastpath+0x22/0x27
[1831560.017902] Code: 45 c8 89 45 c8 90 48 8b 45 d0 4c 8b 28 4d 85 ed 75 19 e9 b7 00 00 00 0f 1f 80 00 00 00 00 4d 8b 6d 00 4d 85 ed 0f 84 a3 00 00 00 <41> 0f b7 4d 16 66 81 f9 ff 0f 77 e7 41 0f b7 b4 24 ea 0c 00 00 
[1831560.018559] RIP  [<ffffffffc0416f25>] i40e_config_vf_promiscuous_mode+0x165/0x350 [i40e]
[1831560.018864]  RSP <ffffa0aa481436d0>
[1831560.019009] CR2: 0000000100000017

Environment

  • Red Hat Enterprise Linux (RHEL) 7, seen at least on 7.4, 7.7 and 7.9
  • Seen with various drivers:
    • 3rd Party i40e driver, i40e-2.10.19.30
    • also with RHEL in-box i40e driver in kernel-3.10.0-1160.2.1.el7 (RHEL7.9), and kernel 3.10.0-862.11.6.el7.x86_64 (RHEL7.4)

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