RHEL8/9: kernel panic with "kernel BUG at lib/assoc_array.c:652!"

Solution Verified - Updated -

Issue

  • Kernel panic with log:
[13178.021358] ------------[ cut here ]------------
[13178.022538] kernel BUG at lib/assoc_array.c:652!
[13178.023704] invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
[13178.024827] CPU: 26 PID: 13 Comm: kworker/u64:1 Kdump: loaded Tainted: G          I      --------  ---  5.14.0-284.25.1.el9_2.x86_64 #1
[13178.025992] Hardware name: Dell Inc. PowerEdge MX740c/00Y7XY, BIOS 2.18.1 03/06/2023
[13178.027164] Workqueue: cifs-dfscache refresh_cache_worker [cifs]
[13178.028474] RIP: 0010:assoc_array_insert_into_terminal_node.isra.0+0x459/0x740
[13178.029684] Code: 38 48 83 c4 60 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc 4c 8b 2c 24 48 63 c5 83 c5 01 49 8d 44 c5 10 e9 0d ff ff ff 0f 0b <0f> 0b 4c 89 5c 24 30 49 8d 4a 10 49 8d 82 90 00 00 00 be ff ff ff
[13178.030952] RSP: 0018:ffffc366006ef6d8 EFLAGS: 00010282
[13178.032251] RAX: 000000000000000f RBX: 000000000000000f RCX: 0000000000000000
[13178.033560] RDX: 0000000000000011 RSI: 000000000000000e RDI: 000000000000000f
[13178.034860] RBP: 0000000000000006 R08: 00000000000000c0 R09: 0000000000000000
[13178.036116] R10: ffffa05b49309080 R11: ffffa074652bf600 R12: 00000000ffffffff
[13178.037286] R13: ffffa055c6004540 R14: 0000000000000001 R15: 0000000000000090
[13178.038388] FS:  0000000000000000(0000) GS:ffffa065a1140000(0000) knlGS:0000000000000000
[13178.039544] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[13178.040766] CR2: 00007faf472bf528 CR3: 000000102091e003 CR4: 00000000007706e0
[13178.041996] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[13178.043278] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[13178.044579] PKRU: 55555554
[13178.045902] Call Trace:
[13178.047172]  <TASK>
[13178.048477]  ? kmem_cache_alloc_trace+0x174/0x2f0
[13178.049746]  ? assoc_array_walk+0x2d/0x170
[13178.050995]  assoc_array_insert+0xeb/0x170
[13178.052212]  ? key_alloc+0x31c/0x590
[13178.053461]  __key_link_begin+0x47/0xa0
[13178.054691]  construct_alloc_key+0xdc/0x290
[13178.055940]  request_key_and_link+0x1f3/0x2f0
[13178.057167]  ? dns_resolver_read+0x20/0x20 [dns_resolver]
[13178.058414]  ? key_default_cmp+0x20/0x20
[13178.059633]  request_key_tag+0x44/0xa0
[13178.060835]  dns_query+0x12d/0x22e [dns_resolver]
[13178.062073]  dns_resolve_server_name_to_ip+0xb3/0x310 [cifs]
[13178.063387]  ? scnprintf+0x52/0x90
[13178.064543]  target_share_equal+0x117/0x240 [cifs]
[13178.065825]  __refresh_tcon.isra.0+0x381/0x650 [cifs]
[13178.067058]  refresh_mounts+0x194/0x2a0 [cifs]
[13178.068366]  refresh_cache_worker+0x14a/0x2e0 [cifs]
[13178.069681]  process_one_work+0x1e2/0x3b0
[13178.070935]  ? rescuer_thread+0x390/0x390
[13178.072147]  worker_thread+0x50/0x3a0
[13178.073345]  ? rescuer_thread+0x390/0x390
[13178.074497]  kthread+0xd6/0x100
[13178.075712]  ? kthread_complete_and_exit+0x20/0x20
[13178.076919]  ret_from_fork+0x1f/0x30
[13178.078154]  </TASK>
[13178.079419] Modules linked in: nfsv3 nfs_acl nfs_layout_nfsv41_files rpcsec_gss_krb5 auth_rpcgss nfsv4 nfs lockd grace fscache netfs nls_utf8 cifs cifs_arc4 rdma_cm iw_cm ib_cm ib_core cifs_md4 dns_resolver tls veth vxlan ip6_udp_tunnel udp_tunnel nf_conntrack_netlink xt_addrtype xt_statistic xt_nat ipt_REJECT nf_reject_ipv4 ip_set ip_vs_sh ip_vs_wrr ip_vs_rr ip_vs xt_MASQUERADE nft_chain_nat nf_nat xt_conntrack nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 xt_comment nft_counter xt_mark nft_compat nf_tables nfnetlink sunrpc team_mode_activebackup team rfkill binfmt_misc ext4 mbcache jbd2 ipmi_ssif intel_rapl_msr intel_rapl_common isst_if_common skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass rapl mgag200 iTCO_wdt intel_cstate iTCO_vendor_support dcdbas i2c_algo_bit dell_smbios drm_shmem_helper acpi_ipmi intel_uncore drm_kms_helper ipmi_si dell_wmi_descriptor wmi_bmof mei_me pcspkr syscopyarea sysfillrect ipmi_devintf sysimgblt mei i2c_i801
[13178.079493]  fb_sys_fops lpc_ich i2c_smbus intel_pch_thermal ipmi_msghandler acpi_power_meter drm xfs libcrc32c sd_mod t10_pi sg qedf qede libfcoe ahci libahci qed crct10dif_pclmul crc32_pclmul libfc crc32c_intel libata megaraid_sas ghash_clmulni_intel scsi_transport_fc crc8 wmi dm_mirror dm_region_hash dm_log dm_mod fuse br_netfilter bridge stp llc overlay

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • [cifs]

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