# Kernel bug causing speed throttling?

**URL:** <https://community.ipfire.org/t/kernel-bug-causing-speed-throttling/9435>\
**Category:** Hardware\
**Created:** [5 March 2023 12:33 UTC](https://community.ipfire.org/t/kernel-bug-causing-speed-throttling/9435 "2023-03-05T12:33:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![barkingdoggy](https://community.ipfire.org/user_avatar/community.ipfire.org/barkingdoggy/32/9884_2.png) [@barkingdoggy](https://community.ipfire.org/u/barkingdoggy)\
**Post date:** [5 March 2023 12:33 UTC](https://community.ipfire.org/t/kernel-bug-causing-speed-throttling/9435/1 "2023-03-05T12:33:40Z")

</div>

I have the latest ipFire CU-173 installed on this: Micro Firewall Appliance, Mini PC, VPN, Router PC, Intel N5105, HUNSN RJ03m, AES-NI, 4 x Intel 2.5GbE I226-V LAN. In /var/log/messages I’m seeing a lot of these bug reports.

Operationally, the WAN port on this device is connected to a 300Mbps internet download link. A fresh install of ipFire provides 300Mbps downloads to LAN-port devices for the first several hours. After that, LAN-side devices are only getting ~30Mbps download speeds. Do you think this observed “speed throttling” is due to the bug?

Mar 5 06:57:39 Key-ipFire kernel: ==================================================================  
Mar 5 06:57:39 Key-ipFire kernel: BUG: KFENCE: use-after-free read in ipt\_do\_table+0x17f/0x740  
Mar 5 06:57:39 Key-ipFire kernel:  
Mar 5 06:57:39 Key-ipFire kernel: Use-after-free read at 0x00000000c0c93a27 (in kfence-#28):  
Mar 5 06:57:39 Key-ipFire kernel: ipt\_do\_table+0x17f/0x740  
Mar 5 06:57:39 Key-ipFire kernel: nf\_hook\_slow+0x3c/0xc0  
Mar 5 06:57:39 Key-ipFire kernel: ip\_output+0x137/0x180  
Mar 5 06:57:39 Key-ipFire kernel: ip\_forward+0x40e/0x540  
Mar 5 06:57:39 Key-ipFire kernel: ip\_sublist\_rcv\_finish+0x6c/0x80  
Mar 5 06:57:39 Key-ipFire kernel: ip\_sublist\_rcv+0x181/0x210  
Mar 5 06:57:39 Key-ipFire kernel: ip\_list\_rcv+0xf8/0x130  
Mar 5 06:57:39 Key-ipFire kernel: \_\_netif\_receive\_skb\_list\_core+0x232/0x250  
Mar 5 06:57:39 Key-ipFire kernel: netif\_receive\_skb\_list\_internal+0x1ab/0x2f0  
Mar 5 06:57:39 Key-ipFire kernel: napi\_complete\_done+0x6f/0x1c0  
Mar 5 06:57:39 Key-ipFire kernel: igc\_poll+0x6c0/0x1230 [igc]  
Mar 5 06:57:39 Key-ipFire kernel: \_\_napi\_poll+0x27/0x160  
Mar 5 06:57:39 Key-ipFire kernel: net\_rx\_action+0x2ec/0x580  
Mar 5 06:57:39 Key-ipFire kernel: \_\_do\_softirq+0xc3/0x282  
Mar 5 06:57:39 Key-ipFire kernel: irq\_exit\_rcu+0x8d/0xb0  
Mar 5 06:57:39 Key-ipFire kernel: common\_interrupt+0x80/0xa0  
Mar 5 06:57:39 Key-ipFire kernel: asm\_common\_interrupt+0x22/0x40  
Mar 5 06:57:39 Key-ipFire kernel: cpuidle\_enter\_state+0xc7/0x380  
Mar 5 06:57:39 Key-ipFire kernel: cpuidle\_enter+0x29/0x40  
Mar 5 06:57:39 Key-ipFire kernel: do\_idle+0x1c3/0x200  
Mar 5 06:57:39 Key-ipFire kernel: cpu\_startup\_entry+0x19/0x20  
Mar 5 06:57:39 Key-ipFire kernel: secondary\_startup\_64\_no\_verify+0xb0/0xbb  
Mar 5 06:57:39 Key-ipFire kernel:  
Mar 5 06:57:39 Key-ipFire kernel: kfence-#28: 0x000000002b1ae5cc-0x0000000083537603, size=640, cache=kmalloc-1k  
Mar 5 06:57:39 Key-ipFire kernel:  
Mar 5 06:57:39 Key-ipFire kernel: allocated by task 0 on cpu 1 at 24977.458152s:  
Mar 5 06:57:39 Key-ipFire kernel: \_\_alloc\_skb+0x84/0x1d0  
Mar 5 06:57:39 Key-ipFire kernel: \_\_napi\_alloc\_skb+0x3e/0x110  
Mar 5 06:57:39 Key-ipFire kernel: igc\_poll+0xce5/0x1230 [igc]  
Mar 5 06:57:39 Key-ipFire kernel: \_\_napi\_poll+0x27/0x160  
Mar 5 06:57:39 Key-ipFire kernel: net\_rx\_action+0x2ec/0x580  
Mar 5 06:57:39 Key-ipFire kernel: \_\_do\_softirq+0xc3/0x282  
Mar 5 06:57:39 Key-ipFire kernel: irq\_exit\_rcu+0x8d/0xb0  
Mar 5 06:57:39 Key-ipFire kernel: common\_interrupt+0x80/0xa0  
Mar 5 06:57:39 Key-ipFire kernel: asm\_common\_interrupt+0x22/0x40  
Mar 5 06:57:39 Key-ipFire kernel: cpuidle\_enter\_state+0xc7/0x380  
Mar 5 06:57:39 Key-ipFire kernel: cpuidle\_enter+0x29/0x40  
Mar 5 06:57:39 Key-ipFire kernel: do\_idle+0x1c3/0x200  
Mar 5 06:57:39 Key-ipFire kernel: cpu\_startup\_entry+0x19/0x20  
Mar 5 06:57:39 Key-ipFire kernel: secondary\_startup\_64\_no\_verify+0xb0/0xbb  
Mar 5 06:57:39 Key-ipFire kernel:  
Mar 5 06:57:39 Key-ipFire kernel: freed by task 0 on cpu 1 at 24977.458175s:  
Mar 5 06:57:39 Key-ipFire kernel: pskb\_expand\_head+0x10f/0x350  
Mar 5 06:57:39 Key-ipFire kernel: \_\_pskb\_pull\_tail+0x52/0x400  
Mar 5 06:57:39 Key-ipFire kernel: match+0x146/0x66c [xt\_layer7]  
Mar 5 06:57:39 Key-ipFire kernel: ipt\_do\_table+0x2a0/0x740  
Mar 5 06:57:39 Key-ipFire kernel: nf\_hook\_slow+0x3c/0xc0  
Mar 5 06:57:39 Key-ipFire kernel: ip\_output+0x137/0x180  
Mar 5 06:57:39 Key-ipFire kernel: ip\_forward+0x40e/0x540  
Mar 5 06:57:39 Key-ipFire kernel: ip\_sublist\_rcv\_finish+0x6c/0x80  
Mar 5 06:57:39 Key-ipFire kernel: ip\_sublist\_rcv+0x181/0x210  
Mar 5 06:57:39 Key-ipFire kernel: ip\_list\_rcv+0xf8/0x130  
Mar 5 06:57:39 Key-ipFire kernel: \_\_netif\_receive\_skb\_list\_core+0x232/0x250  
Mar 5 06:57:39 Key-ipFire kernel: netif\_receive\_skb\_list\_internal+0x1ab/0x2f0  
Mar 5 06:57:39 Key-ipFire kernel: napi\_complete\_done+0x6f/0x1c0  
Mar 5 06:57:39 Key-ipFire kernel: igc\_poll+0x6c0/0x1230 [igc]  
Mar 5 06:57:39 Key-ipFire kernel: \_\_napi\_poll+0x27/0x160  
Mar 5 06:57:39 Key-ipFire kernel: net\_rx\_action+0x2ec/0x580  
Mar 5 06:57:39 Key-ipFire kernel: \_\_do\_softirq+0xc3/0x282  
Mar 5 06:57:39 Key-ipFire kernel: irq\_exit\_rcu+0x8d/0xb0  
Mar 5 06:57:39 Key-ipFire kernel: common\_interrupt+0x80/0xa0  
Mar 5 06:57:39 Key-ipFire kernel: asm\_common\_interrupt+0x22/0x40  
Mar 5 06:57:39 Key-ipFire kernel: cpuidle\_enter\_state+0xc7/0x380  
Mar 5 06:57:39 Key-ipFire kernel: cpuidle\_enter+0x29/0x40  
Mar 5 06:57:39 Key-ipFire kernel: do\_idle+0x1c3/0x200  
Mar 5 06:57:39 Key-ipFire kernel: cpu\_startup\_entry+0x19/0x20  
Mar 5 06:57:39 Key-ipFire kernel: secondary\_startup\_64\_no\_verify+0xb0/0xbb  
Mar 5 06:57:39 Key-ipFire kernel:  
Mar 5 06:57:39 Key-ipFire kernel: CPU: 1 PID: 0 Comm: swapper/1 Tainted: G B 5.15.71-ipfire #1  
Mar 5 06:57:39 Key-ipFire kernel: Hardware name: Default string Default string/Default string, BIOS JK4LV105 08/31/2022  
Mar 5 06:57:39 Key-ipFire kernel: ==================================================================

Thanks.

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [5 March 2023 13:36 UTC](https://community.ipfire.org/t/kernel-bug-causing-speed-throttling/9435/2 "2023-03-05T13:36:06Z")

</div>

I am not familiar enough with kernel messages to say that is what is causing the speed throttling but kfence bug messages in IPFire in the past have been related to issues with nic drivers.

[https://community.ipfire.org/t/bug-kfence-use-after-free-read-in-ipt-do-t/6888](https://community.ipfire.org/t/bug-kfence-use-after-free-read-in-ipt-do-t/6888)

[https://community.ipfire.org/t/core-update-170-bug-kfence-use-after-free-with-rtl-8153-usb-adapter/8623](https://community.ipfire.org/t/core-update-170-bug-kfence-use-after-free-with-rtl-8153-usb-adapter/8623)

I also note that you have i226 nics and those have been raised as having issues depending on the ethernet controller being used on the board.

[https://community.ipfire.org/t/jetway-fbz10-mini-network-appliance-with-intel-j6412-quad-core-cpu-m-2-2242-and-4x-2-5gb-intel-lan/9359](https://community.ipfire.org/t/jetway-fbz10-mini-network-appliance-with-intel-j6412-quad-core-cpu-m-2-2242-and-4x-2-5gb-intel-lan/9359)

For more experienced feedback probably need comments from @ms or @arne_f

---

<div class="post-metadata">

**Author:** ![pscar13](https://community.ipfire.org/user_avatar/community.ipfire.org/pscar13/32/16558_2.png) [@pscar13](https://community.ipfire.org/u/pscar13)\
**Post date:** [5 March 2023 14:56 UTC](https://community.ipfire.org/t/kernel-bug-causing-speed-throttling/9435/3 "2023-03-05T14:56:02Z")

</div>

Hello,

I had these types of errors with Realtek RTL 8153 network cards  
I had found that they only occur with QoS enabled.  
Try disabling it if so.

---

<div class="post-metadata">

**Author:** ![alain](https://community.ipfire.org/user_avatar/community.ipfire.org/alain/32/8828_2.png) [@alain](https://community.ipfire.org/u/alain)\
**Post date:** [5 March 2023 15:40 UTC](https://community.ipfire.org/t/kernel-bug-causing-speed-throttling/9435/4 "2023-03-05T15:40:32Z")

</div>

Can you set the speed of the NIC to 1 Gbit/sec instead of 2.5 Gbit (maybe in BIOS) and see if the problem still occurs?
