NetBSD Problem Report #57366

From www@netbsd.org  Tue Apr 18 13:50:49 2023
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))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 72C311A9239
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 18 Apr 2023 13:50:49 +0000 (UTC)
Message-Id: <20230418135018.3C61E1A923A@mollari.NetBSD.org>
Date: Tue, 18 Apr 2023 13:50:18 +0000 (UTC)
From: jspath55@gmail.com
Reply-To: jspath55@gmail.com
To: gnats-bugs@NetBSD.org
Subject: Automated test usr.sbin/tcpdump/t_tcpdump:promiscuous fails on Rpi3 with wifi active
X-Send-Pr-Version: www-1.0

>Number:         57366
>Category:       bin
>Synopsis:       Automated test usr.sbin/tcpdump/t_tcpdump:promiscuous fails on Rpi3 with wifi active
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 18 13:55:01 +0000 2023
>Last-Modified:  Wed Apr 19 22:00:01 +0000 2023
>Originator:     Jim Spath
>Release:        10.0_BETA
>Organization:
>Environment:
NetBSD arm64 10.0_BETA NetBSD 10.0_BETA (GENERIC64) #0: Mon Apr  3 18:36:09 UTC 2023  mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/evbarm/compile/GENERIC64 evbarm

>Description:
I ran the automated test framework on a Raspberry Pi 3B, with the bwfm wifi configured as well as having wired ethernet, and found a test failure:

tps-count: 1
tp-start: 1681699000.402113, usr.sbin/tcpdump/t_tcpdump, 1
tc-start: 1681699000.402214, promiscuous
tc-so:Testing mue0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i mue0 ]
tc-so:Testing lo0
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i lo0 ]
tc-so:Testing bwfm0
tc-se:[2]   Terminated              atf_check -s ignore -o ignore -e ignore -x "tc...
tc-so:Executing command [ /bin/sh -c tcpdump -c 1 -i bwfm0 ]
tc-end: 1681699006.611166, promiscuous, failed, Test case body returned a non-ok exit code, but this is not allowed
tp-end: 1681699006.622398, usr.sbin/tcpdump/t_tcpdump
info: time.end, Mon Apr 17 02:36:46 UTC 2023

$ /sbin/ifconfig -l
mue0 lo0 bwfm0

The test code references an historic PR:
PR kern/46328
"Switching an interface into and out of promiscuous mode locks up amd64 netbsd-6 system."

That refers to a different CPU architecture; I do not know if the same code runs on ARM CPU.

The prior PR includes this comment:
"Add a test case for PR kern/46328 (tested naively with tcpdump(8))."

I assume that implies the tcpdump command will reveal invalid states but am unclear what the expected exit code/output would mean.
As far as I can discern, all 3 interfaces are behaving well.
>How-To-Repeat:
This failure appeared on a Raspberry Pi 3 where the NetBSD kernel recognized the wifi; the failure was not seen on other models where wifi is not recognized.

So far, I have tried disabling wpa_supplicant which had no effect on the test result. I plan to try with interfaces disabled one-by-one.
>Fix:
Unknown.
Did not appear on a Pi02W as the bwfm driver is apparently not complied in that kernel.

>Audit-Trail:
From: Robert Elz <kre@munnari.OZ.AU>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: bin/57366: Automated test usr.sbin/tcpdump/t_tcpdump:promiscuous fails on Rpi3 with wifi active
Date: Thu, 20 Apr 2023 04:56:31 +0700

     Date:        Tue, 18 Apr 2023 13:55:01 +0000 (UTC)
     From:        jspath55@gmail.com
     Message-ID:  <20230418135501.394E71A923D@mollari.NetBSD.org>


   | tc-end: 1681699006.611166, promiscuous, failed, Test case body returned a non-ok exit code, but this is not allowed


 That kind of failure has nothing (directly) to do with what is being
 tested, but indicates that the structure of the test itself is incorrect,
 or sometimes, that the test code dumped core (or exited with some other
 signal).

 kre

NetBSD Home
NetBSD PR Database Search

(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-2023 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.