FS#66780 - [dhcpcd] checksum failure from <dhcp_server_ip>

Attached to Project: Arch Linux
Opened by Lex Onderwater (ReLaxLex) - Monday, 25 May 2020, 19:26 GMT
Last edited by Giancarlo Razzolini (grazzolini) - Monday, 08 June 2020, 11:43 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Ronald van Haren (pressh)
Giancarlo Razzolini (grazzolini)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: dhcpcd does not set an ip, logs show the following error:
dhcpcd[]: enp1s0: checksum failure from 173.23.0.1

Additional info:
* 9.0.2-1 (in ArchISO 202005, not affected
* DHCP server: dnsmasq 2.81-4

Steps to reproduce:
- QEMU/KVM setup which connects a vm to the host system through a bridge interface.
- vm booting the ArchISO 202005, dhcpcd 9.0.2-1
- no ipv4 address set, and the followin errors in the logs:
dhcpcd[]: enp1s0: checksum failure from 173.23.0.1
dhcpcd[]: enp1s0: timeout
dhcpcd[]: dhcpcd exited

Steps which do work as expexted:
- QEMU/KVM setup which connects a vm to the host system through a bridge interface.
- vm booting the ArchISO 202004, dhcpcd 8.1.6-1
- interface has an ipv4 address set
- Manual starting gives the same errors in the logs; systemctl start dhcpcd@enp1s0

I have create a pcap dump of the bridge interface of ArchISO's and appears the dhcp server is sending a DHCP Offer in both scenarios. I have attached both pcap files.
Found some older bug reports with the same error, where this issue appears to be related to the used gcc version and optimizations settings used [1].

[1] https://bugs.gentoo.org/697672
This task depends upon

Closed by  Giancarlo Razzolini (grazzolini)
Monday, 08 June 2020, 11:43 GMT
Reason for closing:  Fixed
Comment by Lex Onderwater (ReLaxLex) - Tuesday, 02 June 2020, 20:23 GMT
In ArchISO 202006 dhcpcd was replaced with systemd-networkd and systemd-resolved which does set an ipv4 address with the same dnsmasq version (2.81-4). When trying dhcpcd this still results in the same "checksum failure" but systemd-networkd is a workable alternative.
Comment by Giancarlo Razzolini (grazzolini) - Tuesday, 02 June 2020, 20:41 GMT
Have you tried with dhcpcd 9.1.0?
Comment by Lex Onderwater (ReLaxLex) - Sunday, 07 June 2020, 14:26 GMT
Updated the booted ArchISO 202006 which installed dhcpcd version 9.1.1-1. And I can confirm that this version of dhcpcd is working correctly, dhcp lease is obtained without errors.

I think you can mark this bug as resolved and close it.
Comment by Giancarlo Razzolini (grazzolini) - Monday, 08 June 2020, 11:43 GMT
@Lex

If I'm not mistaken, the ISO comes with 9.0.2. When you pacstrap, you will obviously get the latest version. I'll close this anyway.

Loading...