NetBSD Problem Report #59507
From www@netbsd.org Fri Jul 4 11:23:05 2025
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 042021A923C
for <gnats-bugs@gnats.NetBSD.org>; Fri, 4 Jul 2025 11:23:05 +0000 (UTC)
Message-Id: <20250704112303.D57461A923E@mollari.NetBSD.org>
Date: Fri, 4 Jul 2025 11:23:03 +0000 (UTC)
From: emmankoko519@gmail.com
Reply-To: emmankoko519@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Segmentation fault with nested variables in NPF
X-Send-Pr-Version: www-1.0
>Number: 59507
>Category: bin
>Synopsis: Segmentation fault with nested variables in NPF
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: joe
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 04 11:25:00 +0000 2025
>Last-Modified: Fri Jul 04 11:30:08 +0000 2025
>Originator: Emmanuel Nyarko
>Release: NetBSD 10.1
>Organization:
NetBSD
>Environment:
NetBSD 10.1 amd64
>Description:
nested variables in NPF configuration crashes at some nesting level.
>How-To-Repeat:
in /etc/npf.conf
$self={ ifaddrs(wm0), ifaddrs(wm1), ifaddrs(wm2), ifaddrs(lo0) }
$otherip= 192.168.0.1
$clientgroup={ $self, $otherip }
group default {
block all
pass stateful final proto tcp from any to any port ssh
pass stateful final proto tcp from $clientgroup to any
}
run: npfctl validate /etc/npf.conf
>Fix:
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: lib-bug-people->joe
Responsible-Changed-By: joe@NetBSD.org
Responsible-Changed-When: Fri, 04 Jul 2025 11:30:08 +0000
Responsible-Changed-Why:
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2025
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.