From nobody Thu Jun 11 11:06:24 2026 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gbfwJ2D6Fz6hDRS for ; Thu, 11 Jun 2026 11:06:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gbfwJ1lVLz43gt for ; Thu, 11 Jun 2026 11:06:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781175984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B+f05VUowVTK99aTOWNzEIE6vxNhIjw6XCyo9qV5stE=; b=adQ6o+Xg3UvZKQo136fl+tQNBxXOMmhCA8qp8mAIIogfdoWDnGiA3fErtBhKDxIqE9nlzp pEQ9541gsYc1CGKFqTTUvdVke/Y7wINCouMIcOKZkNUqTh7gqxHb4ZigSuuSpayIByw8x3 mXCq7Aiv9vGyqfod0o6SR2Q0ifuvNg2VRUKfuFCJvksiMfPPWIR6ztpur2CXV7iR9wq+83 DhTro/BGCFGsvfMqyBV4QQBvpNccD9/2B3p5y4vEngDIZnfXvrO4dDEHHaNvxp7QQ/PZMR bXq9W6jJevNXCLHimUPiQa1Bo5rqnTTH09vQBeiSK/r9MBmkiCx3YG303zVtQw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1781175984; a=rsa-sha256; cv=none; b=D4c8swy6BkWbuA7T6rftVlUhIlXxYEwTZzQ/UZ2A1NIJFKDkLDd0BchlmAuiGrg931XWEp tObEPqegkPtRYro8e/JwZPXpvUC389mevqSGRXfx9+WO+Bo00A2ul3hwtr5PDpEauecII/ ALh8cfLVYMShbVRr7YlqIDOA3e26XV23cuY28OV984q/aYL7I2o2TdwTrVnGYXNESJ0C6x yXijzxHMbQ5V8CH0gieZrFjqIiAVtpv5DA8OC76w5BWbKJeGRXKP5/3kt4K90H9cEICYGA xzlsLmXUrJJSmcVGIssNvwIpv2d6ofziSZSki/mylOPImZMzF/j6HB5yuh927g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1781175984; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=B+f05VUowVTK99aTOWNzEIE6vxNhIjw6XCyo9qV5stE=; b=ZXQzAEFK7azib9JrDEqm1w+hT/IsM6WZJ+U/1fridYDnAn9KsyTdqJzT4Io3NSkTCO9F1Q x1dTaHlUIHBvTOfpVfYRfPcvm5GrxZNDHUrpFlJhgVfmW5iHugqxpb1yyYSAG3uE7hWn0r rEP8bLl1wCyTGavZxTd53zkltaPdv+knEjHqbFNSI0YqOKPT5RgSGaX/PBlTHrPrxMv84q J2H1/AAmW0if+Tn6RZP/eKIHhCmmy6jdtAe6qd9G0vJleLDVdUZQJQKqlVtGKtmNSDI6h9 fqNc4izvTV1ZMUb6qBYtYeYVfpqmivKkXv4TCe2MGT76hO7gjtsnsPOZM89I6w== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4gbfwJ121zzpHQ for ; Thu, 11 Jun 2026 11:06:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 65BB6NUZ060100 for ; Thu, 11 Jun 2026 11:06:23 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 65BB6NfK060099 for bugs@FreeBSD.org; Thu, 11 Jun 2026 11:06:23 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 295995] rtadvd segfault with -d Date: Thu, 11 Jun 2026 11:06:24 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: 15.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: freebsd-bugzilla@botchitt.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295995 Bug ID: 295995 Summary: rtadvd segfault with -d Product: Base System Version: 15.0-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd-bugzilla@botchitt.com rtadvd segfaults when run with the -d flag in my environment. It seems to be caused by sections like the following in rtadvd.c: /* O flag */ if ((nra->nd_ra_flags_reserved & ND_RA_FLAG_OTHER) !=3D rai->rai_otherflg) { syslog(LOG_NOTICE, "O flag inconsistent on %s:" " %s from %s, %s from us", ifi->ifi_ifname, on_off[!rai->rai_otherflg], inet_ntop(AF_INET6, &from->sin6_addr, ntopbuf, sizeof(ntopbuf)), on_off[rai->rai_otherflg]); inconsistent++; } where rai->rai_otherflg in this case is 0x40 but handled as a bool. Here's a diff that fixes it for my case as well as other similarly-handled flags: --- config.c.orig 2025-12-04 16:54:44.000000000 +0000 +++ config.c 2026-06-11 11:59:51.691932000 +0100 @@ -443,8 +443,8 @@ } else MAYHAVE(val, "raflags", 0); - rai->rai_managedflg =3D val & ND_RA_FLAG_MANAGED; - rai->rai_otherflg =3D val & ND_RA_FLAG_OTHER; + rai->rai_managedflg =3D !!(val & ND_RA_FLAG_MANAGED); + rai->rai_otherflg =3D !!(val & ND_RA_FLAG_OTHER); #ifndef ND_RA_FLAG_RTPREF_MASK #define ND_RA_FLAG_RTPREF_MASK 0x18 /* 00011000 */ #define ND_RA_FLAG_RTPREF_RSV 0x10 /* 00010000 */ @@ -456,7 +456,7 @@ goto getconfig_free_rai; } #ifdef DRAFT_IETF_6MAN_IPV6ONLY_FLAG - rai->rai_ipv6onlyflg =3D val & ND_RA_FLAG_IPV6_ONLY; + rai->rai_ipv6onlyflg =3D !!(val & ND_RA_FLAG_IPV6_ONLY); #endif MAYHAVE(val, "rltime", rai->rai_maxinterval * 3); --=20 You are receiving this mail because: You are the assignee for the bug.=