Kernel panic with message "kernel BUG at net/netfilter/nf_nat_core.c:399!"

Solution Verified - Updated -

Issue

  • Kernel panics with following messages:
[366264.283372] kernel BUG at net/netfilter/nf_nat_core.c:399!
[366264.285303] invalid opcode: 0000 [#1] SMP 
[366264.287351] Modules linked in: nfsv3 nfs_acl rpcsec_gss_krb5 auth_rpcgss nfsv4 dns_resolver nfs lockd grace fscache binfmt_misc veth nf_conntrack_netlink xt_statistic xt_nat xt_recent xt_addrtype vxlan ip6_u
dp_tunnel udp_tunnel nfnetlink_cttimeout ipt_REJECT nf_reject_ipv4 xt_CT iptable_raw ip6table_mangle ip6t_MASQUERADE nf_nat_masquerade_ipv6 ip6table_filter iptable_mangle ipt_MASQUERADE nf_nat_masquerade_ipv4 xt
_conntrack xt_comment iptable_filter xt_mark ip6table_nat ip6_tables iptable_nat bmhook(OE) tmhook(OE) dsa_filter(POE) dsa_filter_hook(OE) sch_ingress bonding openvswitch nf_conntrack_ipv6 nf_nat_ipv6 nf_conntra
ck_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_defrag_ipv6 nf_nat nf_conntrack overlay(T) sunrpc iTCO_wdt mxm_wmi iTCO_vendor_support dcdbas sb_edac intel_powerclamp coretemp intel_rapl iosf_mbi
[366264.297262]  kvm_intel kvm irqbypass crc32_pclmul ghash_clmulni_intel aesni_intel lrw gf128mul glue_helper ablk_helper cryptd pcspkr ipmi_ssif sg ipmi_si ipmi_devintf ipmi_msghandler mei_me mei wmi lpc_ich a
cpi_power_meter tpm_crb ip_tables xfs sd_mod crc_t10dif crct10dif_generic qla2xxx mgag200 i2c_algo_bit drm_kms_helper uas syscopyarea sysfillrect sysimgblt fb_sys_fops ttm ahci bnx2x libahci drm usb_storage liba
ta crct10dif_pclmul nvme_fc crct10dif_common crc32c_intel nvme_fabrics megaraid_sas nvme_core scsi_transport_fc mdio ptp drm_panel_orientation_quirks scsi_tgt pps_core libcrc32c dm_mirror dm_region_hash dm_log d
m_mod
[366264.308791] CPU: 12 PID: 951555 Comm: java Kdump: loaded Tainted: P           OE  ------------ T 3.10.0-1160.31.1.el7.x86_64 #1
[366264.310849] Hardware name: Dell Inc. PowerEdge FC630/0R10KJ, BIOS 2.13.0 05/24/2021
[366264.312863] task: ffff9ca3a42ac200 ti: ffff9ca28be78000 task.ti: ffff9ca28be78000
[366264.315049] RIP: 0010:[<ffffffffc0493409>]  [<ffffffffc0493409>] nf_nat_setup_info+0x319/0x320 [nf_nat]
[366264.317214] RSP: 0018:ffff9cb7ff583bd0  EFLAGS: 00010206
[366264.319446] RAX: 0000000000000100 RBX: ffff9c915cbde440 RCX: 0000000000000088
[366264.321580] RDX: 0000000000000100 RSI: ffff9cb7ff583c80 RDI: ffff9c915cbde440
[366264.323766] RBP: ffff9cb7ff583c70 R08: 00000000ac282e01 R09: 0000000000000002
[366264.325785] R10: ffffb953339a6608 R11: ffffffffc03975f8 R12: 0000000000000001
[366264.327780] R13: ffff9cb7ff583c80 R14: ffffffff87515e40 R15: ffff9cb7ff583dc8
[366264.329757] FS:  00007f797eff5700(0000) GS:ffff9cb7ff580000(0000) knlGS:0000000000000000
[366264.331763] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[366264.333719] CR2: 00007f7918047130 CR3: 0000004a7d7b2000 CR4: 00000000003607e0
[366264.335578] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[366264.337413] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[366264.339177] Call Trace:
[366264.341002]  <IRQ> 
[366264.341016]  [<ffffffff868a4047>] ? local_bh_enable+0x17/0x20
[366264.344605]  [<ffffffffc0392719>] ? ipt_do_table+0x359/0x740 [ip_tables]
[366264.346478]  [<ffffffffc0493467>] __nf_nat_alloc_null_binding+0x57/0x80 [nf_nat]
[366264.348254]  [<ffffffffc04934b1>] nf_nat_alloc_null_binding+0x21/0x30 [nf_nat]
[366264.349987]  [<ffffffffc04a678e>] nf_nat_ipv4_fn+0x1be/0x230 [nf_nat_ipv4]
[366264.351668]  [<ffffffffc0876020>] ? iptable_nat_ipv4_fn+0x20/0x20 [iptable_nat]
[366264.353353]  [<ffffffffc04a682e>] nf_nat_ipv4_in+0x2e/0x90 [nf_nat_ipv4]
[366264.355043]  [<ffffffffc08760a8>] iptable_nat_ipv4_in+0x18/0x20 [iptable_nat]
[366264.356719]  [<ffffffff86e96ab8>] nf_iterate+0x98/0xe0
[366264.358380]  [<ffffffff86e96ba8>] nf_hook_slow+0xa8/0x110
[366264.359999]  [<ffffffff86ea21b9>] ip_rcv+0x339/0x420
[366264.361700]  [<ffffffff86ea16e0>] ? inet_del_offload+0x40/0x40
[366264.363275]  [<ffffffff86e56829>] __netif_receive_skb_core+0x729/0xa10
[366264.364835]  [<ffffffff868ea200>] ? update_max_interval+0x30/0x40
[366264.366397]  [<ffffffff86e56b28>] __netif_receive_skb+0x18/0x60
[366264.367880]  [<ffffffff86e57afe>] process_backlog+0xae/0x180
[366264.369346]  [<ffffffff86e571cf>] net_rx_action+0x26f/0x390
[366264.370814]  [<ffffffff868a4bc5>] __do_softirq+0xf5/0x280
[366264.372330]  [<ffffffff86f994ec>] call_softirq+0x1c/0x30
[366264.373858]  <EOI> 
[366264.373870]  [<ffffffff8682f715>] do_softirq+0x65/0xa0
[366264.376698]  [<ffffffff868a401b>] __local_bh_enable_ip+0x9b/0xb0
[366264.378056]  [<ffffffff868a4047>] local_bh_enable+0x17/0x20
[366264.379384]  [<ffffffff86ea78e4>] ip_finish_output+0x284/0x8d0
[366264.380760]  [<ffffffff86ea825b>] ip_output+0x7b/0xf0
[366264.382172]  [<ffffffff86ea7660>] ? __ip_append_data.isra.50+0xa60/0xa60
[366264.383452]  [<ffffffff86ea5c87>] ip_local_out_sk+0x37/0x40
[366264.384790]  [<ffffffff86ea8cc6>] ip_send_skb+0x16/0x50
[366264.386028]  [<ffffffff86ed112c>] udp_send_skb+0xac/0x2b0
[366264.387281]  [<ffffffff86ea59c0>] ? ip_copy_metadata+0x170/0x170
[366264.388516]  [<ffffffff86ed2691>] udp_sendmsg+0x5e1/0xa70
[366264.389769]  [<ffffffffc074add0>] ? xfs_alert_fsblock_zero.isra.7+0x40/0x40 [xfs]
[366264.390961]  [<ffffffff86f3ac50>] udpv6_sendmsg+0x160/0xc30
[366264.392108]  [<ffffffff869c75f6>] ? free_hot_cold_page_list+0x46/0xa0
[366264.393235]  [<ffffffff869cd27e>] ? release_pages+0x24e/0x430
[366264.394393]  [<ffffffff86b0c2d5>] ? sock_has_perm+0x75/0x90
[366264.395546]  [<ffffffff869cd7e4>] ? __lru_cache_add+0x64/0x90
[366264.396748]  [<ffffffff86edfe79>] inet_sendmsg+0x69/0xb0
[366264.397844]  [<ffffffff86b0c403>] ? selinux_socket_sendmsg+0x23/0x30
[366264.398903]  [<ffffffff86e363a6>] sock_sendmsg+0xb6/0xf0
[366264.399955]  [<ffffffff868e2f8b>] ? should_numa_migrate_memory+0x5b/0x150
[366264.400976]  [<ffffffff86a1d42c>] ? mpol_misplaced+0x18c/0x1e0
[366264.401980]  [<ffffffff86e36ad1>] SYSC_sendto+0x121/0x1c0
[366264.402960]  [<ffffffff86f90678>] ? __do_page_fault+0x238/0x500
[366264.403967]  [<ffffffff86e385ee>] SyS_sendto+0xe/0x10
[366264.404885]  [<ffffffff86f95f92>] system_call_fastpath+0x25/0x2a
[366264.405766] Code: 78 64 49 c0 e8 a9 85 af c6 e9 0a fe ff ff 0f 1f 40 00 48 81 8b 80 00 00 00 00 01 00 00 e9 01 fe ff ff 31 c0 eb b2 e8 97 7b 40 c6 <0f> 0b 0f 1f 44 00 00 0f 1f 44 00 00 55 48 89 e5 48 83 ec 30 65 
[366264.407637] RIP  [<ffffffffc0493409>] nf_nat_setup_info+0x319/0x320 [nf_nat]
[366264.408526]  RSP <ffff9cb7ff583bd0>

Environment

  • Red Hat Enterprise Linux Server release 7.9
  • 3.10.0-1160.31.1.el7.x86_64

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