NetBSD Problem Report #56447

From gson@gson.org  Thu Oct  7 10:14:01 2021
Return-Path: <gson@gson.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 801591A921F
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  7 Oct 2021 10:14:01 +0000 (UTC)
Message-Id: <20211007101352.18EB925417E@guava.gson.org>
Date: Thu,  7 Oct 2021 13:13:52 +0300 (EEST)
From: gson@gson.org (Andreas Gustafsson)
Reply-To: gson@gson.org (Andreas Gustafsson)
To: gnats-bugs@NetBSD.org
Subject: Random rump kernel panic: assertion "LIST_EMPTY(&p->p_lwps)" failed
X-Send-Pr-Version: 3.95

>Number:         56447
>Category:       kern
>Synopsis:       Random rump kernel panic: assertion "LIST_EMPTY(&p->p_lwps)" failed
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Oct 07 10:15:01 +0000 2021
>Originator:     Andreas Gustafsson
>Release:        NetBSD-current
>Organization:

>Environment:
System: NetBSD
Architecture: x86_64
Machine: amd64
>Description:

Running the ATF tests on real amd64 hardware, I'm seeing random test
failures where the rump kernel panics with the message

  panic: kernel diagnostic assertion "LIST_EMPTY(&p->p_lwps)" failed

It happened yesterday in net/ipsec/t_ipsec_tcp:ipsec_tcp_ipv6_ah_null:

  https://www.gson.org/netbsd/bugs/build/amd64-baremetal/2021/2021.10.05.21.05.12/test.html#net_ipsec_t_ipsec_tcp_ipsec_tcp_ipv6_ah_null

The previous occurrence involved the net/if_wg/t_misc:wg_malformed
test case:

  https://www.gson.org/netbsd/bugs/build/amd64-baremetal/2021/2021.09.14.20.45.19/test.html#net_if_wg_t_misc_wg_malformed

It's happened in 12 out of 207 full ATF test runs so far this year.
The first recorded failure is from sources dated 2020.06.15.20.29.29,
but since the failure is infrequent, the bug is likely older.

>How-To-Repeat:

>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.