NetBSD Problem Report #54714

From www@netbsd.org  Sun Nov 24 02:30:22 2019
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-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 821A67A18B
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 24 Nov 2019 02:30:22 +0000 (UTC)
Message-Id: <20191124023021.765F57A1AD@mollari.NetBSD.org>
Date: Sun, 24 Nov 2019 02:30:21 +0000 (UTC)
From: james.m.parsons@protonmail.com
Reply-To: james.m.parsons@protonmail.com
To: gnats-bugs@NetBSD.org
Subject: Kernel Panics with:
X-Send-Pr-Version: www-1.0

>Number:         54714
>Category:       kern
>Synopsis:       Kernel Panics with:
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 24 02:35:00 +0000 2019
>Originator:     James Parsons
>Release:        NetBSD-current (11/23/2019)
>Organization:
>Environment:
NetBSD 9.99.18 NetBSD 99.99.18 (GENERIC) #0: Sat Nov 23 14:50:58 EST 2019 
>Description:
I'm running a custom compiled NetBSD-current on a very lightweight x64 box (2GB RAM, 2 core AMD E-2100 CPU, etc.) The sources I compiled from were the current tar files as of 10/23/2019

The system has two network interfaces . One is a Realtek ethernet adapter powered by the re driver and the other a Realtek wireless card powered by the rtwn driver.

I was going to bring the ethernet interface up, but wasn't paying attention and accidentally typed the name of the other interface so: `ifconfig rtwn0 up`. After entering that, the system froze for a second before rebooting. Upon rebooting, the kernel panics with the following:

    `[ 56.6326531] panic kernel diagnostic assertion "(!cpu_intr_p() && !cpu_softintr_p()) || (pc->pc_pool.pr_ipl != IPL_NONE || cold || panicstr != NULL)" failed: file "/path/to/kernel/source/sys/kern/subr_pool.c" line 2553 pool_cache_get_addr: [pnbufpl] is IPL_NONE, but called from interrupt context` 

And then gets stuck in a reboot loop. With that same panic every time. I can escape the boot loop in single user mode, but am not sure what to do from there.
>How-To-Repeat:
Not quite sure exactly how reproducible it is. As stated before, the initial crash was caused by running `ifconfig rtwn0 up`
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.