[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
** Changed in: systemd (Ubuntu) Importance: Undecided => High -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: Fix Released Status in systemd package in Debian: Fix Released Bug description: [SRU justification] Without this fix, duplicate entries may render the system unbootable [Impact] Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. [Fix] Verify the content of the file prior to re-writing the rule. [Test Case] $ rm /etc/udev/rules.d/70-persistent-net.rules $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done Without the patch, there will be 20 identical entries in the file. [Regression] None expected, the modification is already in Vivid, Wily and Debian [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked-
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
** Changed in: systemd (Ubuntu Trusty) Assignee: Louis Bouchard (louis-bouchard) => (unassigned) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: Fix Released Status in systemd package in Debian: Fix Released Bug description: [SRU justification] Without this fix, duplicate entries may render the system unbootable [Impact] Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. [Fix] Verify the content of the file prior to re-writing the rule. [Test Case] $ rm /etc/udev/rules.d/70-persistent-net.rules $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done Without the patch, there will be 20 identical entries in the file. [Regression] None expected, the modification is already in Vivid, Wily and Debian [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X:
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
> Hello James, or anyone else affected, > ... > Please help us by testing this new package I'm sorry, but the machine on which this occurred cannot be modified for this testing. And I don't have access to a machine with a similar NIC. Thanks for fixing this. Sorry I can't help re-test this. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: Fix Released Status in systemd package in Debian: Fix Released Bug description: [SRU justification] Without this fix, duplicate entries may render the system unbootable [Impact] Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. [Fix] Verify the content of the file prior to re-writing the rule. [Test Case] $ rm /etc/udev/rules.d/70-persistent-net.rules $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done Without the patch, there will be 20 identical entries in the file. [Regression] None expected, the modification is already in Vivid, Wily and Debian [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K]
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
This bug was fixed in the package systemd - 204-5ubuntu20.15 --- systemd (204-5ubuntu20.15) trusty; urgency=medium * Avoid writing duplicate entries in 70-persistent-net.rules by double checking if the new udev rule has already been written for the given interface. This happens if multiple add events are generated before the write_net_rules script returns and udevd renames the interface. * write_net_rules: Escape '{' and '}' characters as well, to make this work with busybox grep. (LP: #1470399) -- Louis BouchardMon, 05 Oct 2015 12:34:41 +0200 ** Changed in: systemd (Ubuntu Trusty) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: Fix Released Status in systemd package in Debian: Fix Released Bug description: [SRU justification] Without this fix, duplicate entries may render the system unbootable [Impact] Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. [Fix] Verify the content of the file prior to re-writing the rule. [Test Case] $ rm /etc/udev/rules.d/70-persistent-net.rules $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done Without the patch, there will be 20 identical entries in the file. [Regression] None expected, the modification is already in Vivid, Wily and Debian [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160]
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: Fix Committed Status in systemd package in Debian: Fix Released Bug description: [SRU justification] Without this fix, duplicate entries may render the system unbootable [Impact] Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. [Fix] Verify the content of the file prior to re-writing the rule. [Test Case] $ rm /etc/udev/rules.d/70-persistent-net.rules $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done Without the patch, there will be 20 identical entries in the file. [Regression] None expected, the modification is already in Vivid, Wily and Debian [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked-
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
Hello James, or anyone else affected, Accepted systemd into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/systemd/204-5ubuntu20.15 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: systemd (Ubuntu Trusty) Status: In Progress => Fix Committed ** Tags added: verification-needed -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: Fix Committed Status in systemd package in Debian: Fix Released Bug description: [SRU justification] Without this fix, duplicate entries may render the system unbootable [Impact] Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. [Fix] Verify the content of the file prior to re-writing the rule. [Test Case] $ rm /etc/udev/rules.d/70-persistent-net.rules $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done Without the patch, there will be 20 identical entries in the file. [Regression] None expected, the modification is already in Vivid, Wily and Debian [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
** Patch added: "lp1470399_avoid_duplicate_entries_trusty.debdiff" https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1470399/+attachment/4484599/+files/lp1470399_avoid_duplicate_entries_trusty.debdiff -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: In Progress Status in systemd package in Debian: Fix Released Bug description: [SRU justification] Without this fix, duplicate entries may render the system unbootable [Impact] Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. [Fix] Verify the content of the file prior to re-writing the rule. [Test Case] $ rm /etc/udev/rules.d/70-persistent-net.rules $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done Without the patch, there will be 20 identical entries in the file. [Regression] None expected, the modification is already in Vivid, Wily and Debian [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
** Changed in: systemd (Ubuntu Trusty) Status: Confirmed => In Progress -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: In Progress Status in systemd package in Debian: Fix Released Bug description: After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-6a Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
Uploaded to SRU review queue. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: In Progress Status in systemd package in Debian: Fix Released Bug description: [SRU justification] Without this fix, duplicate entries may render the system unbootable [Impact] Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. [Fix] Verify the content of the file prior to re-writing the rule. [Test Case] $ rm /etc/udev/rules.d/70-persistent-net.rules $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done Without the patch, there will be 20 identical entries in the file. [Regression] None expected, the modification is already in Vivid, Wily and Debian [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
** Description changed: + [SRU justification] + Without this fix, duplicate entries may render the system unbootable + + [Impact] + Under certain race condition, the file /etc/udev/rules.d/70-persistent-net.rules may contain duplicate entries. + + [Fix] + Verify the content of the file prior to re-writing the rule. + + [Test Case] + $ rm /etc/udev/rules.d/70-persistent-net.rules + $ typeset -i I=0 && while (( I <= 20));do echo add > /sys/class/net/eth0/uevent ;((I+=1));done + + Without the patch, there will be 20 identical entries in the file. + + [Regression] + None expected, the modification is already in Vivid, Wily and Debian + + [Original description of the problem] After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - - # PCI device 0x14e4:0x165f (tg3) - SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" + # PCI device 0x14e4:0x165f (tg3) + SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" - # PCI device 0x14e4:0x165f (tg3) - SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" + # PCI device 0x14e4:0x165f (tg3) + SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" - # PCI device 0x14e4:0x165f (tg3) - SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" + # PCI device 0x14e4:0x165f (tg3) + SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" - # PCI device 0x14e4:0x165f (tg3) - SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" + # PCI device 0x14e4:0x165f (tg3) + SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" - # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. - # PCI device 0x14e4:0x165f (tg3) - SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - + # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. + # PCI device 0x14e4:0x165f (tg3) + SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' - 01:00.0 0200: 14e4:165f - Subsystem: 1028:1f5b - Flags: bus master, fast devsel, latency 0, IRQ 41 - Memory at 91b3 (64-bit, prefetchable) [size=64K] - Memory at 91b4 (64-bit, prefetchable) [size=64K] - Memory at 91b5 (64-bit, prefetchable) [size=64K] - Expansion ROM at 91b8 [disabled] [size=256K] - Capabilities: [48] Power Management version 3 - Capabilities: [50] Vital Product Data - Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ - Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- - Capabilities: [ac] Express Endpoint, MSI 00 - Capabilities: [100] Advanced Error Reporting - Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 - Capabilities: [150] Power Budgeting - Capabilities: [160] Virtual Channel - Kernel driver in use: tg3 - -- - 01:00.1 0200: 14e4:165f - Subsystem: 1028:1f5b - Flags: bus master, fast devsel, latency 0, IRQ 45 - Memory at 91b0 (64-bit, prefetchable) [size=64K] - Memory at 91b1 (64-bit, prefetchable) [size=64K] - Memory at 91b2 (64-bit, prefetchable) [size=64K] - Expansion ROM at 91bc [disabled] [size=256K] - Capabilities: [48] Power Management version 3 - Capabilities: [50] Vital Product Data - Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ - Capabilities: [a0] MSI-X: Enable- Count=17 Masked- - Capabilities: [ac] Express Endpoint, MSI 00 - Capabilities: [100]
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
** Also affects: systemd (Ubuntu Trusty) Importance: Undecided Status: New ** Changed in: systemd (Ubuntu Trusty) Status: New => Confirmed ** Changed in: systemd (Ubuntu Trusty) Importance: Undecided => High ** Changed in: systemd (Ubuntu Trusty) Assignee: (unassigned) => Louis Bouchard (louis-bouchard) -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd source package in Trusty: Confirmed Status in systemd package in Debian: Fix Released Bug description: After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
** Changed in: systemd (Debian) Status: Unknown => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd package in Debian: Fix Released Bug description: After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-6a Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 44 Memory at 91a0 (64-bit,
[Touch-packages] [Bug 1470399] Re: udev duplicates entries in 70-persistent-net.rules
This got fixed in 219-6, and thus in 15.04. ** Package changed: udev (Ubuntu) => systemd (Ubuntu) ** Bug watch added: Debian Bug tracker #765577 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765577 ** Also affects: systemd (Debian) via http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=765577 Importance: Unknown Status: Unknown ** Changed in: systemd (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1470399 Title: udev duplicates entries in 70-persistent-net.rules Status in systemd package in Ubuntu: Fix Released Status in systemd package in Debian: Unknown Bug description: After a fresh installation of 14.04, I had various troubles with the ethernet NIC. Long story short, there were duplicate entries in /etc/udev/rules.d/70-persistent-net.rules . The 70-persistent-net.rules file has 5 entries for a 4 port NIC (Broadcom Corporation NetXtreme BCM5720 Gigabit Ethernet PCIe). - # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:69", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6b", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth3" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:6a", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth2" # this last declaration was generated by udev but overrides prior command with same ATTR{address} value. # PCI device 0x14e4:0x165f (tg3) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="54:9f:35:09:8f:68", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth4" - lspci shows only 4 PCI devices. - $ lspci -vn | grep -A 16 -F '14e4:165f' 01:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 41 Memory at 91b3 (64-bit, prefetchable) [size=64K] Memory at 91b4 (64-bit, prefetchable) [size=64K] Memory at 91b5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91b8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable+ Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-68 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 01:00.1 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 45 Memory at 91b0 (64-bit, prefetchable) [size=64K] Memory at 91b1 (64-bit, prefetchable) [size=64K] Memory at 91b2 (64-bit, prefetchable) [size=64K] Expansion ROM at 91bc [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial Number 00-00-54-9f-35-09-8f-69 Capabilities: [150] Power Budgeting Capabilities: [160] Virtual Channel Kernel driver in use: tg3 -- 02:00.0 0200: 14e4:165f Subsystem: 1028:1f5b Flags: bus master, fast devsel, latency 0, IRQ 40 Memory at 91a3 (64-bit, prefetchable) [size=64K] Memory at 91a4 (64-bit, prefetchable) [size=64K] Memory at 91a5 (64-bit, prefetchable) [size=64K] Expansion ROM at 91a8 [disabled] [size=256K] Capabilities: [48] Power Management version 3 Capabilities: [50] Vital Product Data Capabilities: [58] MSI: Enable- Count=1/8 Maskable- 64bit+ Capabilities: [a0] MSI-X: Enable- Count=17 Masked- Capabilities: [ac] Express Endpoint, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [13c] Device Serial