Rebuilding the grub with the CPU flag 'avx' disabled (clearcpuid=156) triggers kernel panic in xor_avx_2()
Issue
- Rebuilding the grub with the CPU flag 'avx' disabled (clearcpuid=156) triggers kernel panic in
xor_avx_2() - Loading the filesystem module
[btrfs]with the CPU flagavxdisabled (i.e. clearcpuid=156) triggers a kernel panic. - Loading the
xormodule with the CPU flagavxdisabled (i.e. clearcpuid=156) triggers a kernel panic.
crash> log
[..]
[ 1065.114655] xor: automatically using best checksumming function:
[ 1065.115162] invalid opcode: 0000 [#1] SMP
[ 1065.115181] Modules linked in: xor(+) vfat msdos fat ext4 mbcache jbd2 socwatch2_12(OE) vtsspp(OE) sep5(OE) socperf3(OE) pax(OE) nfsv3 nfs_acl rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache ip6t_rpfilter ipt_REJECT nf_reject_ipv4 ip6t_REJECT nf_reject_ipv6 xt_conntrack 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 bonding 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 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
[ 1065.115406] pcspkr sg joydev lpc_ich mei_me mei wmi rpcrdma sunrpc ib_isert iscsi_target_mod ib_iser libiscsi scsi_transport_iscsi ipmi_ssif ib_srpt target_core_mod ipmi_si ipmi_devintf ipmi_msghandler ib_srp scsi_transport_srp ib_ipoib acpi_power_meter acpi_pad rdma_ucm ib_ucm ib_uverbs ib_umad rdma_cm ib_cm iw_cm ib_core binfmt_misc CyProtectDrv(OE) ip_tables xfs libcrc32c dm_service_time sd_mod crc_t10dif crct10dif_generic dm_multipath crct10dif_pclmul crct10dif_common crc32c_intel mgag200 i2c_algo_bit drm_kms_helper fnic(OE) syscopyarea nvme_fc sysfillrect sysimgblt fb_sys_fops nvme_fabrics ttm nvme_core ahci scsi_transport_fc drm libahci enic(OE) scsi_tgt libata drm_panel_orientation_quirks nfit libnvdimm dm_mirror dm_region_hash dm_log dm_mod
[ 1065.115627] CPU: 49 PID: 137533 Comm: modprobe Kdump: loaded Tainted: GOE ------------ 3.10.0-957.27.2.el7.x86_64 #1
[ 1065.115652] Hardware name: Cisco Systems Inc UCSB-B480-M5/UCSB-B480-M5, BIOS B480M5.4.0.4m.0.0305202307 03/05/2020
[ 1065.115674] task: ffff964371096180 ti: ffff94c40ee64000 task.ti: ffff94c40ee64000
[ 1065.115691] RIP: 0010:[<ffffffffc0c52c80>] [<ffffffffc0c52c80>] xor_avx_2+0x40/0x210 [xor]
[ 1065.115713] RSP: 0018:ffff94c40ee67cb8 EFLAGS: 00010202
[ 1065.115726] RAX: 0000000000000007 RBX: ffff94043e040000 RCX: ffff964371096180
[ 1065.115741] RDX: 00000000ffffffff RSI: ffff94043e040000 RDI: ffff94043ae28000
[ 1065.115757] RBP: ffff94c40ee67cd0 R08: 000000000000000a R09: 0000000000000000
[ 1065.115773] R10: 0000000000003232 R11: ffff94c40ee67a1e R12: ffff94043e043000
[ 1065.115789] R13: 0000000000000008 R14: 00000001000bab2d R15: ffffffffc0c55000
[ 1065.115804] FS: 00007f361cb9c740(0000) GS:ffff94043f940000(0000) knlGS:0000000000000000
[ 1065.115822] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 1065.115836] CR2: 0000000001e9f5f8 CR3: 000000bd2e706000 CR4: 00000000007607e0
[ 1065.115851] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 1065.116495] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 1065.117067] PKRU: 55555554
[ 1065.117625] Call Trace:
[ 1065.118175] [<ffffffffc0c5f075>] do_xor_speed+0x75/0xc4 [xor]
[ 1065.118732] [<ffffffffc0c5f0c4>] ? do_xor_speed+0xc4/0xc4 [xor]
[ 1065.119296] [<ffffffffc0c5f13d>] calibrate_xor_blocks+0x79/0xf3c [xor]
[ 1065.119863] [<ffffffff9580210a>] do_one_initcall+0xba/0x240
[ 1065.120428] [<ffffffff9591a3bc>] load_module+0x272c/0x2bc0
[ 1065.120992] [<ffffffff95ba4f60>] ? ddebug_proc_write+0x100/0x100
[ 1065.121559] [<ffffffff9591a93f>] SyS_init_module+0xef/0x140
[ 1065.122131] [<ffffffff95f76ddb>] system_call_fastpath+0x22/0x27
[ 1065.122700] Code: 89 d4 53 48 89 f3 e8 10 3d be d4 84 c0 0f 84 b9 01 00 00 e8 13 3e be d4 4d 85 ed 49 8d 45 ff 0f 84 9b 01 00 00 66 0f 1f 44 00 00 <c4> c1 7d 6f 04 24 c5 fc 57 03 c5 fd 7f 03 c4 c1 7d 6f 4c 24 20
[ 1065.123950] RIP [<ffffffffc0c52c80>] xor_avx_2+0x40/0x210 [xor]
[ 1065.124553] RSP <ffff94c40ee67cb8>
[..]
Environment
- Red Hat Enterprise Linux 7.5
- kernel-3.10.0-862.el7.x86_64 or above
- clearcpuid=156
- avx
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.