RHEL8: kernel: refcount_t overflow at get_net_ns_by_pid+0x46/0x60 in java[304025], uid/euid: 310/310

Solution Verified - Updated -

Issue

  • Kernel warning with logs:
Sep 10 15:15:29 localhost kernel: ------------[ cut here ]------------
Sep 10 15:15:29 localhost kernel: refcount_t overflow at get_net_ns_by_pid+0x46/0x60 in java[304025], uid/euid: 310/310
Sep 10 15:15:29 localhost kernel: WARNING: CPU: 0 PID: 304025 at kernel/panic.c:704 refcount_error_report+0x94/0x99
Sep 10 15:15:29 localhost kernel: Modules linked in: asm(OE) uas usb_storage d2dctl(OE) oracleacfs(POE) oracleadvm(POE) oracleoks(POE) sha512_ssse3 sha512_generic joydev vxfen(POE) vcsmm(POE) vxodm(POE) vxglm(POE) vxgms(POE) gab(POE) xt_CHECKSUM ipt_MASQUERADE xt_conntrack ipt_REJECT nf_reject_ipv4 nft_compat nft_counter nft_chain_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 nf_tables nfnetlink tun bridge stp llc dmpaa(POE) vxspec(POE) vxio(POE) vxdmp(POE) llt(POE) amf(POE) rdma_cm iw_cm vxcafs(POE) ib_cm vxportal(POE) fdd(POE) vxfs(POE) veki(POE) team_mode_activebackup team dell_rbu tcp_diag inet_diag sunrpc vfat nls_utf8 fat isofs cdrom loop dm_round_robin dm_multipath intel_rapl_msr intel_rapl_common isst_if_common skx_edac nfit libnvdimm x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel dell_smbios iTCO_wdt iTCO_vendor_support dell_wmi_descriptor wmi_bmof dcdbas rapl intel_cstate pcspkr intel_uncore ipmi_ssif i40iw st bnxt_re
Sep 10 15:15:29 localhost kernel:  ib_uverbs ib_core mei_me i2c_i801 lpc_ich mei wmi acpi_ipmi ipmi_si ipmi_devintf ipmi_msghandler acpi_power_meter binfmt_misc ip_tables xfs libcrc32c sd_mod sg lpfc mgag200 drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops nvmet_fc drm nvmet nvme_fc nvme_fabrics i40e nvme_core ahci libahci t10_pi crc32c_intel libata bnxt_en megaraid_sas scsi_transport_fc tg3 i2c_algo_bit dm_mirror dm_region_hash dm_log dm_mod fuse
Sep 10 15:15:29 localhost kernel: CPU: 0 PID: 304025 Comm: java Kdump: loaded Tainted: P          IOE    --------- -  - 4.18.0-305.el8.x86_64 #1
Sep 10 15:15:29 localhost kernel: Hardware name: Dell Inc. PowerEdge R740/0DY2X0, BIOS 2.13.3 12/13/2021
Sep 10 15:15:29 localhost kernel: RIP: 0010:refcount_error_report+0x94/0x99
Sep 10 15:15:29 localhost kernel: Code: 8b 84 24 00 09 00 00 48 8b 95 80 00 00 00 49 8d 8c 24 e0 0a 00 00 41 55 41 89 c1 48 89 de 48 c7 c7 30 98 ab 94 e8 05 00 00 00 <0f> 0b 58 eb 8f 0f 1f 44 00 00 55 48 89 e5 53 48 89 fb 48 c7 c7 90
Sep 10 15:15:29 localhost kernel: RSP: 0018:ffffb776cd97fae0 EFLAGS: 00010282
Sep 10 15:15:29 localhost kernel: RAX: 0000000000000000 RBX: ffffffff94ac99d8 RCX: 0000000000000007
Sep 10 15:15:29 localhost kernel: RDX: 0000000000000007 RSI: 0000000000000096 RDI: ffff9d6cffc167c0
Sep 10 15:15:29 localhost kernel: RBP: ffffb776cd97fb98 R08: 0000000000001f72 R09: 0000000000000004
Sep 10 15:15:29 localhost kernel: R10: 0000000000000000 R11: 0000000000000001 R12: ffff9d62c6f1bd80
Sep 10 15:15:29 localhost kernel: R13: 0000000000000136 R14: 0000000000000000 R15: ffffb776cd97fb98
Sep 10 15:15:29 localhost kernel: FS:  00007f4bf1e7c700(0000) GS:ffff9d6cffc00000(0000) knlGS:0000000000000000
Sep 10 15:15:29 localhost kernel: CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Sep 10 15:15:29 localhost kernel: CR2: 00007fd901c545e0 CR3: 000000120afe2005 CR4: 00000000007706f0
Sep 10 15:15:29 localhost kernel: DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
Sep 10 15:15:29 localhost kernel: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Sep 10 15:15:29 localhost kernel: PKRU: 55555554
Sep 10 15:15:29 localhost kernel: Call Trace:
Sep 10 15:15:29 localhost kernel:  ex_handler_refcount+0x4e/0x80
Sep 10 15:15:29 localhost kernel:  fixup_exception+0x33/0x3e
Sep 10 15:15:29 localhost kernel:  do_trap+0x4c/0x110
Sep 10 15:15:29 localhost kernel:  ? __noinstr_text_end+0x1584/0x2a02
Sep 10 15:15:29 localhost kernel:  do_invalid_op+0x36/0x40
Sep 10 15:15:29 localhost kernel:  ? __noinstr_text_end+0x1584/0x2a02
Sep 10 15:15:29 localhost kernel:  invalid_op+0x14/0x20
Sep 10 15:15:29 localhost kernel: RIP: 0010:get_net_ns_by_pid+0x46/0x60
Sep 10 15:15:29 localhost kernel: Code: a0 b8 0b 00 00 48 89 c3 4c 89 e7 e8 84 18 1c 00 48 8b 83 28 0b 00 00 48 85 c0 74 0e 48 8b 68 28 f0 ff 45 04 0f 88 d7 23 1b 00 <4c> 89 e7 c6 07 00 0f 1f 40 00 48 89 e8 5b 5d 41 5c c3 0f 1f 84 00
Sep 10 15:15:29 localhost kernel: RSP: 0018:ffffb776cd97fc40 EFLAGS: 00010a96
Sep 10 15:15:29 localhost kernel: RAX: ffffffff95058740 RBX: ffff9d62c6f1bd80 RCX: ffffffff951a53c4
Sep 10 15:15:29 localhost kernel: RDX: 0000000000000001 RSI: 000000000004a399 RDI: ffff9d62c6f1c938
Sep 10 15:15:29 localhost kernel: RBP: ffffffff951a53c0 R08: ffff9d61dde026c8 R09: ffff9d61dde027b8
Sep 10 15:15:29 localhost kernel: R10: 0000000000000000 R11: ffffffff95058370 R12: ffff9d62c6f1c938
Sep 10 15:15:29 localhost kernel: R13: 0000000000000001 R14: 0000000000000000 R15: 0000000000000000
Sep 10 15:15:29 localhost kernel:  asm_socket_create+0xfb/0x1b0 [asm]
Sep 10 15:15:29 localhost kernel:  security_socket_create+0x38/0x50
Sep 10 15:15:29 localhost kernel:  __sock_create+0x63/0x1a0
Sep 10 15:15:29 localhost kernel:  __sys_socketpair+0xee/0x240
Sep 10 15:15:29 localhost kernel:  __x64_sys_socketpair+0x1a/0x20
Sep 10 15:15:29 localhost kernel:  do_syscall_64+0x5b/0x1a0
Sep 10 15:15:29 localhost kernel:  entry_SYSCALL_64_after_hwframe+0x65/0xca
Sep 10 15:15:29 localhost kernel: RIP: 0033:0x7f4c8e6a547e
Sep 10 15:15:29 localhost kernel: Code: 48 8b 0d 0d 0a 2c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 49 89 ca b8 35 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d da 09 2c 00 f7 d8 64 89 01 48
Sep 10 15:15:29 localhost kernel: RSP: 002b:00007f4bf1e7a938 EFLAGS: 00000246 ORIG_RAX: 0000000000000035
Sep 10 15:15:29 localhost kernel: RAX: ffffffffffffffda RBX: 00007f4bf1e7ab28 RCX: 00007f4c8e6a547e
Sep 10 15:15:29 localhost kernel: RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
Sep 10 15:15:29 localhost kernel: RBP: 00007f4bf1e7a9b0 R08: 0000000000000000 R09: 0000000000000000
Sep 10 15:15:29 localhost kernel: R10: 00007f4be4077868 R11: 0000000000000246 R12: 00007f4be4013088
Sep 10 15:15:29 localhost kernel: R13: 00007f4be403e5a0 R14: 0000000000000000 R15: 0000000000000fa0
Sep 10 15:15:29 localhost kernel: ---[ end trace 22899099fc1cfcdf ]---

Environment

  • Red Hat Enterprise Linux 8
  • kernel-4.18.305.el8
  • 3rd party module [asm] from AhnLab, Inc. 3.4.3.3

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