From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from stravinsky.debian.org (stravinsky.debian.org [82.195.75.108]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 524813BD64D for ; Thu, 5 Mar 2026 15:33:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.195.75.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772724838; cv=none; b=A9wqdXgxc830Ndddl55UOVV+RoNChg8qWA0q1qekdlM11MeSuVwUYNURtKLLrBIE7mNLpYaVs11av7Y0aQSBBUaNsJu9j4IAtb95+QIqZzBcqQBT+/g+nzEvDvsmQBVJwcQdnN5DDoqEfi6adBC1ZVCJ94e6l/mBQhaqstFtK/c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772724838; c=relaxed/simple; bh=ksPb5Vklw0Go2YnxMr1561/r/v+sH+GBBJgdi4WN/Eg=; h=Message-ID:Subject:From:To:Date:Content-Type:MIME-Version; b=ITzwRwG0Gb6vI1+pVzDQAx/nUuqg964+42MaqPQZ56oVypJu947hk81yTESuXoHnr2U7tDOkWd1iGxS3eIwJ5W0ghW+jxc8g2P/Rfd2lII6hB1KcnCmrTDwFZ2t0/puB8HqUFm9LNC3voHfi1rddgD/ZLnbxQj8R3Zq8Z+fqf1E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org; spf=none smtp.mailfrom=debian.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b=hUFz3Jqs; arc=none smtp.client-ip=82.195.75.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=debian.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=debian.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=debian.org header.i=@debian.org header.b="hUFz3Jqs" DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debian.org; s=smtpauto.stravinsky; h=X-Debian-User:MIME-Version:Content-Transfer-Encoding :Content-Type:Date:To:From:Subject:Message-ID:Reply-To:Cc:Content-ID: Content-Description:In-Reply-To:References; bh=ksPb5Vklw0Go2YnxMr1561/r/v+sH+GBBJgdi4WN/Eg=; b=hUFz3JqsHUC7/Jx6Xny2ytPRv3 t6vCgXKVog++fCrUKdjtWwsyahAMhXj/SXMjbBSTsv6gggo7TOFiQ299QjgUNPraIOhU2Q+xpob+N st9wlcOl9vPluuFkxriNzT9UfFZ/cx1oSixylxz5zZz+u7Q9ubJH3mgxmKMPE8UHmnmv1N30cJmoq IvTWdfc5r4pDeLL9PwNzP7/slANiFX/7jiz2jhfZgjCnEjM19AIoUlcKV1t6ClfP0ZTlzbwF7luem o/ZbxP/IXPV7GaFLg5zgPuFpwlaxGf9G++dgArH4hInJgX3Hd7hjt6BfmYawZ53EZQbotps7DSkld sBt5rZjA==; Received: from authenticated user by stravinsky.debian.org with esmtpsa (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256) (Exim 4.94.2) (envelope-from ) id 1vyAi1-00GpII-VW for linux-kernel@vger.kernel.org; Thu, 05 Mar 2026 15:33:54 +0000 Message-ID: Subject: Heisenbug: no DHCP packets received by dnsmasq (dracut-ng test suite) From: Benjamin Drung To: linux-kernel@vger.kernel.org Date: Thu, 05 Mar 2026 16:33:52 +0100 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2-4 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Debian-User: bdrung Hi everyone, I ran into a heisenbug where the culprit is not clear to me. It could be the linux kernel, QEMU, or dnsmasq. We want to switch from isc-dhcp-server to dnsmasq in the dracut-ng test suite. I prepared this change in https://github.com/dracut-ng/dracut-ng/pull/2271 but test 60 fails on most distribution. How to reproduce =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Clone dracut-ng and include the dnsmasq patch from https://github.com/dracut-ng/dracut-ng/pull/2271 Then run `test/test.sh debian:sid 60`. You can replace `debian:sid` by other containers. On all containers tested so far (Fedora, Debian, OpenSUSE, etc) except for the Ubuntu containers the dracut-ng test 60 fails. See https://github.com/dracut-ng/dracut-ng/issues/2283 for the tested containers. Test 60 setup =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In a podman container start a QEMU VM with=C2=A0"-netdev socket" or "-netdev dgram" as server. This server runs dnsmasq. The test has multiple client tests. Each client test start a QEMU VM as client connecting the netdev to the server.=C2=A0The same server is used for all client tests. The client will try to get a DHCP lease from dnsmasq. Heisenbug symptoms =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The third (when using "-netdev socket") or the fifth (when using=C2=A0 "-netdev dgram") client test hangs. The client sends DHCP discover packets but dnsmasq on the server never receives them. When I start to debug this behavior by running tcpdump on the server, the DHCP discover packets are reaching dnsmasq and the test succeeds. Running only the failing client test will make the client test succeed. Dracut-ng bug: https://github.com/dracut-ng/dracut-ng/issues/2283 --=20 Benjamin Drung Debian & Ubuntu Developer