cdc_ncm floods syslog unneccessarily
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Upon plugging in a USB adapter for NBase-T ethernet with an Realtek chip RTL8156 the kernel module cdc_ncm starts flooding /var/log/syslog with unneccessary status info.
The status lines either say that there's no ethernet link or show the interface as connected and state the link speed.
The relevant parts from /var/log/syslog after attaching the adapter without ethernet link read like this:
[...]
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.398485] usb 2-3: new SuperSpeed Gen 1 USB device number 5 using xhci_hcd
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.419463] usb 2-3: New USB device found, idVendor=0bda, idProduct=8156, bcdDevice=30.00
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.419469] usb 2-3: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.419472] usb 2-3: Product: USB 10/100/1G/2.5G LAN
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.419475] usb 2-3: Manufacturer: Realtek
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.419477] usb 2-3: SerialNumber: 000000001
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.447769] cdc_ncm 2-3:2.0: MAC-Address: 00:13:3b:68:00:e9
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.447775] cdc_ncm 2-3:2.0: setting rx_max = 16384
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.447929] cdc_ncm 2-3:2.0: setting tx_max = 16384
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.448901] cdc_ncm 2-3:2.0 usb0: register 'cdc_ncm' at usb-0000:00:14.0-3, CDC NCM, 00:13:3b:68:00:e9
Jun 12 10:48:58 resdz-v13 NetworkManager[
Jun 12 10:48:58 resdz-v13 mtp-probe: checking bus 2, device 5: "/sys/devices/
Jun 12 10:48:58 resdz-v13 mtp-probe: bus: 2, device: 5 was not an MTP device
Jun 12 10:48:58 resdz-v13 systemd-
Jun 12 10:48:58 resdz-v13 systemd-
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.466476] cdc_ncm 2-3:2.0 enx00133b6800e9: renamed from usb0
Jun 12 10:48:58 resdz-v13 NetworkManager[
Jun 12 10:48:58 resdz-v13 systemd-
Jun 12 10:48:58 resdz-v13 NetworkManager[
Jun 12 10:48:58 resdz-v13 charon: 12[KNL] interface enx00133b6800e9 activated
Jun 12 10:48:58 resdz-v13 mtp-probe: checking bus 2, device 5: "/sys/devices/
Jun 12 10:48:58 resdz-v13 mtp-probe: bus: 2, device: 5 was not an MTP device
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.524052] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: disconnected
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.556109] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: disconnected
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.588054] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: disconnected
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.620383] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: disconnected
Jun 12 10:48:58 resdz-v13 kernel: [ 4240.652415] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: disconnected
[...]
Upon plugging in the ethernet cable I see
[...]
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.372273] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.404278] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
[...]
and Network Manager starts its work.
After the interface is up the flooding continues:
[...]
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.564056] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.596051] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
Jun 12 10:49:01 resdz-v13 whoopsie[1530]: [10:49:01] The default IPv4 route is: /org/freedeskto
Jun 12 10:49:01 resdz-v13 whoopsie[1530]: [10:49:01] Not a paid data plan: /org/freedeskto
Jun 12 10:49:01 resdz-v13 whoopsie[1530]: [10:49:01] Found usable connection: /org/freedeskto
Jun 12 10:49:01 resdz-v13 whoopsie[1530]: [10:49:01] online
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.628055] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.660060] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.692055] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.724054] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.756060] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.788053] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.820056] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 nm-dispatcher: req:2 'connectivity-
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.852060] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.884064] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.916054] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.948055] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 kernel: [ 4243.980049] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
Jun 12 10:49:01 resdz-v13 kernel: [ 4244.012056] cdc_ncm 2-3:2.0 enx00133b6800e9: 1000 mbit/s downlink 1000 mbit/s uplink
Jun 12 10:49:01 resdz-v13 kernel: [ 4244.044053] cdc_ncm 2-3:2.0 enx00133b6800e9: network connection: connected
[...]
Expected behavior is showing the status lines only once after link status changes.
Kernel version is: 5.0.0-16-generic, OS: Kubuntu 19.04
Module info for cdc_ncm:
filename: /lib/modules/
license: Dual BSD/GPL
description: USB CDC NCM host driver
author: Hans Petter Selasky
srcversion: 9CC08FECEC9EC4A
alias: usb:v*p*
alias: usb:v1546p1010d
alias: usb:v1519p0443d
alias: usb:v12D1p*
alias: usb:v0930p*
alias: usb:v413Cp*
alias: usb:v413Cp81BCd
alias: usb:v413Cp81BBd
alias: usb:v1BC7p0036d
alias: usb:v0BDBp*
depends: usbnet
retpoline: Y
intree: Y
name: cdc_ncm
vermagic: 5.0.0-16-generic SMP mod_unload
sig_id: PKCS#7
signer:
sig_key:
sig_hashalgo: md4
signature: 30:82:02:
82:02:
03:30:
02:6B:
42:75:
61:74:
E7:FA:
09:60:
01:01:
3C:33:
7F:A1:
C5:B2:
19:78:
73:10:
74:01:
2F:18:
63:36:
F3:92:
9C:22:
B6:5F:
0D:71:
94:A1:
C3:7C:
15:ED:
1C:85:
D2:01:
C6:26:
F5:41:
C4:94:
11:DD:
AF:E7:
EE:78:
48:71:
40:4B:
1C
parm: prefer_mbim:Prefer MBIM setting on dual NCM/MBIM functions (bool)
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: KDE
DistroRelease: Ubuntu 19.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2016-06-30 (1077 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
MachineType: Acer Aspire V3-372
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.178.1
Tags: disco
Uname: Linux 5.0.0-16-generic x86_64
UpgradeStatus: Upgraded to disco on 2019-04-24 (49 days ago)
UserGroups: adm lpadmin plugdev sambashare sudo users
_MarkForUpload: True
dmi.bios.date: 06/06/2016
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.08
dmi.board.
dmi.board.name: Aspire V3-372
dmi.board.vendor: Acer
dmi.board.version: V1.08
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.
dmi.modalias: dmi:bvnInsydeCo
dmi.product.family: SKL
dmi.product.name: Aspire V3-372
dmi.product.sku: Aspire V3-372_104C_1.08
dmi.product.
dmi.sys.vendor: Acer
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
CurrentDesktop: KDE
DistroRelease: Ubuntu 19.04
HibernationDevice: RESUME=
InstallationDate: Installed on 2016-06-30 (1077 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
Lsusb:
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 004: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card Reader Controller
Bus 001 Device 003: ID 04f2:b526 Chicony Electronics Co., Ltd
Bus 001 Device 002: ID 04ca:3016 Lite-On Technology Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Acer Aspire V3-372
Package: linux (not installed)
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=
ProcVersionSign
RelatedPackageV
linux-
linux-
linux-firmware 1.178.1
Tags: disco
Uname: Linux 5.0.0-16-generic x86_64
UpgradeStatus: Upgraded to disco on 2019-04-24 (49 days ago)
UserGroups: adm lpadmin plugdev sambashare sudo users
_MarkForUpload: True
dmi.bios.date: 06/06/2016
dmi.bios.vendor: Insyde Corp.
dmi.bios.version: V1.08
dmi.board.
dmi.board.name: Aspire V3-372
dmi.board.vendor: Acer
dmi.board.version: V1.08
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: Acer
dmi.chassis.
dmi.modalias: dmi:bvnInsydeCo
dmi.product.family: SKL
dmi.product.name: Aspire V3-372
dmi.product.sku: Aspire V3-372_104C_1.08
dmi.product.
dmi.sys.vendor: Acer
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: KDE
DistroRelease: Ubuntu 19.04
InstallationDate: Installed on 2016-06-30 (1082 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
Package: linux (not installed)
Tags: disco
Uname: Linux 5.2.0-050200rc5
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: Upgraded to disco on 2019-04-24 (54 days ago)
UserGroups: adm lpadmin plugdev sambashare sudo users
_MarkForUpload: True
---
ProblemType: Bug
ApportVersion: 2.20.10-0ubuntu27
Architecture: amd64
CurrentDesktop: KDE
DistroRelease: Ubuntu 19.04
InstallationDate: Installed on 2016-06-30 (1082 days ago)
InstallationMedia: Kubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
Package: linux (not installed)
Tags: disco
Uname: Linux 5.2.0-050200rc5
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: Upgraded to disco on 2019-04-24 (54 days ago)
UserGroups: adm lpadmin plugdev sambashare sudo users
_MarkForUpload: True
tags: | added: disco |
affects: | ubuntu → linux (Ubuntu) |
This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:
apport-collect 1832472
and then change the status of the bug to 'Confirmed'.
If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.
This change has been made by an automated script, maintained by the Ubuntu Kernel Team.