r8169 : eth0 link down after 5 minutes 'kernel: [ ] NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out

Bug #1995147 reported by DB
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hello,
I use reverse tethering trough an ethernet link: my Ubuntu 22.04 LTS laptop is providing internet access to a LG CL600 thin client.
This ethernet link works fine from power up until 5 minutes after this power up, then the ethernet link freezes.

I don't have this problem when my laptop is providing the same internet access with Debian 11 live (kernel 5.10.0): in this case reverse tethering trough ethernet works fluently trough the time, no ethernet freeze at all.
So my hardware isn't faulty, but there seems to be a regression in the kernel r8169 module, between the 5.10 and 5.15 kernels.

Can you solve this regression?

The r8169 module is a part the linux-modules-extra-5.15.0-52-generic package.
Here is the involved sample from /var/log/syslog:

Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053253] ------------[ cut here ]------------
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053278] NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053308] WARNING: CPU: 2 PID: 0 at net/sched/sch_generic.c:477 dev_watchdog+0x277/0x280
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053326] Modules linked in: nft_reject_ipv4 nf_reject_ipv4 nft_reject nft_ct nft_masq nft_counter nft_chain_nat xt_MASQUERADE nft_compat bridge stp llc rfcomm ccm nf_tables nfnetlink nf_nat_h323 binfmt_misc nf_conntrack_h323 nf_nat_pptp nf_conntrack_pptp nf_nat_tftp nf_conntrack_tftp nf_nat_sip nf_conntrack_sip nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 libcrc32c cmac algif_hash algif_skcipher af_alg bnep nls_iso8859_1 mei_hdcp intel_rapl_msr snd_hda_codec_conexant snd_hda_codec_generic ledtrig_audio snd_hda_codec_hdmi snd_hda_intel intel_rapl_common snd_intel_dspcfg iwlmvm rtsx_usb_ms snd_intel_sdw_acpi mac80211 uvcvideo snd_usb_audio snd_hda_codec snd_usbmidi_lib snd_hda_core x86_pkg_temp_thermal intel_powerclamp videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev snd_hwdep libarc4 snd_seq_midi coretemp mc memstick snd_pcm snd_seq_midi_event i915 kvm_intel snd_rawmidi snd_seq kvm
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053625] iwlwifi ttm drm_kms_helper snd_seq_device snd_timer btusb crct10dif_pclmul btrtl btbcm ghash_clmulni_intel cec aesni_intel snd rc_core btintel crypto_simd i2c_algo_bit bluetooth mei_me cfg80211 cryptd mei soundcore at24 fb_sys_fops ecdh_generic ecc rapl intel_cstate syscopyarea sysfillrect sysimgblt joydev input_leds ideapad_laptop sparse_keymap serio_raw platform_profile mac_hid wmi acpi_pad sch_fq_codel ipmi_devintf ipmi_msghandler msr parport_pc ppdev lp mtd ramoops pstore_blk pstore_zone parport drm reed_solomon efi_pstore ip_tables x_tables autofs4 hid_generic usbhid rtsx_usb_sdmmc hid rtsx_usb i2c_i801 r8169 ahci xhci_pci psmouse i2c_smbus crc32_pclmul lpc_ich libahci realtek xhci_pci_renesas video
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053905] CPU: 2 PID: 0 Comm: swapper/2 Not tainted 5.15.0-48-generic #54-Ubuntu
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053914] Hardware name: LENOVO 80FF/Lenovo G70-80, BIOS ABCN80WW 05/18/2015
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053918] RIP: 0010:dev_watchdog+0x277/0x280
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053931] Code: eb 97 48 8b 5d d0 c6 05 03 39 69 01 01 48 89 df e8 ee 67 f9 ff 44 89 e1 48 89 de 48 c7 c7 50 49 cd 8d 48 89 c2 e8 a7 bb 19 00 <0f> 0b eb 80 e9 51 25 23 00 0f 1f 44 00 00 55 48 89 e5 41 57 41 56
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053938] RSP: 0018:ffffc03440154e70 EFLAGS: 00010282
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053946] RAX: 0000000000000000 RBX: ffffa05f80b34000 RCX: 0000000000000000
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053952] RDX: ffffa062cf32c240 RSI: ffffa062cf320580 RDI: 0000000000000300
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053957] RBP: ffffc03440154ea8 R08: 0000000000000003 R09: fffffffffffd7858
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053963] R10: 0000000000ffff0a R11: 0000000000000001 R12: 0000000000000000
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053968] R13: ffffa05f80ca0280 R14: 0000000000000001 R15: ffffa05f80b344c0
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053974] FS: 0000000000000000(0000) GS:ffffa062cf300000(0000) knlGS:0000000000000000
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053980] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053986] CR2: 00001b2801ab4000 CR3: 0000000065010006 CR4: 00000000001706e0
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053991] Call Trace:
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.053996] <IRQ>
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054002] ? pfifo_fast_enqueue+0x160/0x160
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054011] call_timer_fn+0x2b/0x120
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054021] __run_timers.part.0+0x1e3/0x270
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054030] ? ktime_get+0x46/0xc0
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054040] ? lapic_next_deadline+0x2c/0x40
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054048] ? clockevents_program_event+0xad/0x130
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054060] run_timer_softirq+0x2a/0x60
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054067] __do_softirq+0xd9/0x2e7
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054078] irq_exit_rcu+0x94/0xc0
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054089] sysvec_apic_timer_interrupt+0x80/0x90
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054098] </IRQ>
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054101] <TASK>
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054105] asm_sysvec_apic_timer_interrupt+0x1a/0x20
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054116] RIP: 0010:cpuidle_enter_state+0xd9/0x620
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054126] Code: 3d c4 ef f9 72 e8 17 d7 68 ff 49 89 c7 0f 1f 44 00 00 31 ff e8 58 e4 68 ff 80 7d d0 00 0f 85 61 01 00 00 fb 66 0f 1f 44 00 00 <45> 85 f6 0f 88 6d 01 00 00 4d 63 ee 49 83 fd 09 0f 87 e7 03 00 00
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054132] RSP: 0018:ffffc034400dbe28 EFLAGS: 00000246
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054140] RAX: ffffa062cf330b80 RBX: ffffe0343fd00000 RCX: 0000000000000000
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054145] RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054150] RBP: ffffc034400dbe78 R08: 0000007d0addf354 R09: 0000000000000000
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054155] R10: 0000000000000001 R11: 071c71c71c71c71c R12: ffffffff8e6d3ea0
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054160] R13: 0000000000000008 R14: 0000000000000008 R15: 0000007d0addf354
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054170] ? cpuidle_enter_state+0xc8/0x620
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054179] ? tick_nohz_stop_tick+0x16a/0x1d0
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054187] cpuidle_enter+0x2e/0x50
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054195] cpuidle_idle_call+0x142/0x1e0
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054204] do_idle+0x83/0xf0
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054211] cpu_startup_entry+0x20/0x30
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054218] start_secondary+0x12a/0x180
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054226] secondary_startup_64_no_verify+0xc2/0xcb
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054239] </TASK>
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.054243] ---[ end trace c2eed5067b4f7a97 ]---
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.088290] r8169 0000:02:00.0 enp2s0: rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.111422] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.132412] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.153298] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.174101] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.194919] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.215935] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.237026] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.257993] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 17:59:57 damien-Lenovo-G70-80 kernel: [ 537.278709] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
Oct 22 18:00:07 damien-Lenovo-G70-80 kernel: [ 547.323071] net_ratelimit: 13 callbacks suppressed

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-modules-extra-5.15.0-52-generic 5.15.0-52.58
ProcVersionSignature: Ubuntu 5.15.0-52.58-generic 5.15.60
Uname: Linux 5.15.0-52-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC2: damien 13573 F.... pulseaudio
 /dev/snd/controlC0: damien 13573 F.... pulseaudio
 /dev/snd/controlC1: damien 13573 F.... pulseaudio
CRDA: N/A
CasperMD5CheckResult: pass
CurrentDesktop: ubuntu:GNOME
Date: Fri Oct 28 21:58:45 2022
InstallationDate: Installed on 2022-08-11 (78 days ago)
InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 (20220419)
MachineType: LENOVO 80FF
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=fr_FR.UTF-8
 SHELL=/bin/bash
ProcFB: 0 i915drmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.15.0-52-generic root=UUID=7fc394bb-09ee-4e3e-ae0e-505a4047663e ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.15.0-52-generic N/A
 linux-backports-modules-5.15.0-52-generic N/A
 linux-firmware 20220329.git681281e4-0ubuntu3.6
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 05/18/2015
dmi.bios.release: 1.80
dmi.bios.vendor: LENOVO
dmi.bios.version: ABCN80WW
dmi.board.asset.tag: NO Asset Tag
dmi.board.name: Lenovo G70-80
dmi.board.vendor: LENOVO
dmi.board.version: 31900058 WIN
dmi.chassis.asset.tag: NO Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Lenovo G70-80
dmi.ec.firmware.release: 1.80
dmi.modalias: dmi:bvnLENOVO:bvrABCN80WW:bd05/18/2015:br1.80:efr1.80:svnLENOVO:pn80FF:pvrLenovoG70-80:rvnLENOVO:rnLenovoG70-80:rvr31900058WIN:cvnLENOVO:ct10:cvrLenovoG70-80:skuLENOVO_MT_80FF_BU_idea_FM_LenovoG70-80:
dmi.product.family: IDEAPAD
dmi.product.name: 80FF
dmi.product.sku: LENOVO_MT_80FF_BU_idea_FM_Lenovo G70-80
dmi.product.version: Lenovo G70-80
dmi.sys.vendor: LENOVO

Revision history for this message
DB (foggy67) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Libera.chat.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1995147/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Paul White (paulw2u)
affects: ubuntu → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
DB (foggy67) wrote :

Hello,

I solved this problem by switching to the r8168 module, instead of the buggy r8169 module.
Now, the ethernet tethering works fine!

Revision history for this message
DB (foggy67) wrote :

Hello,

I came back to the r8169 module with the 5.19.0-40-generic #41~22.04.1-Ubuntu module.
I removed the r8168 module and dkms.

The bug is still here, but now the ethernet link eth0 works only if i reboot the remote device connected to the ethernet link.

Why is this regression? The 5.10.0 kernel from Debian 11 doesn't have that problem : as soon as the eth0 link is up (sharing), the ethernet link works with my remote device with no time limitation

Revision history for this message
DB (foggy67) wrote :

Hello,

There is some evolution.
I still use the r8169 module in the 5.19.0 kernel, r8168 and dkms are not present anymore. Neither r8169 nor r8168 are blacklisted.
lsmod shows that the r8169 module is loaded in memory.
dmesg | grep r81 shows that the eth0 link is up at startup of the laptop.

I set up NetworkManager to establish automatically the internet sharing trough eth0 with IPV4 (IPv6 is desactivated). The ethernet sharing doesn't come up automatically at startup of NetworkManager (even with this option activated), but when I manually switch off and on the ethernet link in NetworkManager, the ethernet sharing comes up and works fine.

I can't still find if this bug comes from the r8169 module or from the NetworkManager package.
Any idea?

I also opened a bug report for NetworkManager #2028832

Revision history for this message
Chris Heath (ccheath) wrote :
Download full text (15.1 KiB)

I'm getting same/similar issue:

After upgrading my system to 6.2 recently I've been getting seemingly random network card crashes.

>lsb-release:

DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=21.2
DISTRIB_CODENAME=victoria
DISTRIB_DESCRIPTION="Linux Mint 21.2 Victoria"

>uname -a:

Linux i5-ProDesk 6.2.0-26-generic #26~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 13 16:27:29 UTC 2 x86_64 x86_64 x86_64 GNU/Linux

>lspci:

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
 Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
 Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx+
 Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
 Latency: 0, Cache Line Size: 64 bytes
 Interrupt: pin A routed to IRQ 16
 Region 0: I/O ports at 3000 [size=256]
 Region 2: Memory at cc904000 (64-bit, non-prefetchable) [size=4K]
 Region 4: Memory at cc900000 (64-bit, non-prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: r8169
 Kernel modules: r8169

>dmesg:

[ 9.210269] r8169 0000:02:00.0 eth0: RTL8168h/8111h, 40:b0:34:fb:e8:5a, XID 541, IRQ 133
[ 9.210273] r8169 0000:02:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[ 9.210507] usb 2-2: New USB device found, idVendor=1c04, idProduct=0013, bcdDevice=61.08
[ 9.210511] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9.210512] usb 2-2: Product: TR-004
[ 9.210513] usb 2-2: Manufacturer: QNAP Systems, Inc.
[ 9.210514] usb 2-2: SerialNumber: 51323043423037383430
[ 9.242547] r8169 0000:02:00.0 enp2s0: renamed from eth0
[ 9.292656] mei_hdcp 0000:00:16.0-b638ab7e-94e2-4ea2-a552-d1c54b627f04: bound 0000:00:02.0 (ops i915_hdcp_component_ops [i915])
[ 9.295636] usb-storage 2-2:1.0: USB Mass Storage device detected
[ 9.295795] scsi host6: usb-storage 2-2:1.0
[ 9.295851] usbcore: registered new interface driver usb-storage
[ 9.305456] usbcore: registered new interface driver uas
[ 9.379685] intel_tcc_cooling: Programmable TCC Offset detected
[ 9.406737] intel_rapl_common: Found RAPL domain package
[ 9.406740] intel_rapl_common: Found RAPL domain core
[ 9.406742] intel_rapl_common: Found RAPL domain uncore
[ 9.406744] intel_rapl_common: Found RAPL domain dram
[ 9.426136] snd_hda_intel 0000:00:1f.3: enabling device (0100 -> 0102)
[ 9.426440] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[ 9.513624] snd_hda_codec_conexant hdaudioC0D0: CX20632: BIOS auto-probing.
[ 9.514513] snd_hda_codec_conexant hdaudioC0D0: autoconfig for CX20632: line_outs=1 (0x1c/0x0/0x0/0x0/0x0) type:line
[ 9.514530] snd_hda_codec_conexant hdaudioC0D0: speaker_outs=1 (0x1f/0x0/0x0/0x0/0x0)
[ 9.514537] snd_hda_codec_conexant hdaudioC0D0: hp_outs=1 (0x19/0x0/0x0/0x0/0x0)
[ 9.514543] snd_hda_codec_conexant hdaudioC0D0: mono: mono_out=0x0
[ 9.514546] snd_hda_codec_conexant hdaudioC0D0: inputs:
[ 9.514550] snd_hda_codec_conexant hdaudioC0D0: Mic=0x1a
[ ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.