NetBSD Problem Report #57411
From www@netbsd.org Wed May 17 13:05:08 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 E6C571A923B
for <gnats-bugs@gnats.NetBSD.org>; Wed, 17 May 2023 13:05:07 +0000 (UTC)
Message-Id: <20230517130506.7E3A01A923C@mollari.NetBSD.org>
Date: Wed, 17 May 2023 13:05:06 +0000 (UTC)
From: c@bow.st
Reply-To: c@bow.st
To: gnats-bugs@NetBSD.org
Subject: zpool import panic()s on non standard -d $DEVPATH
X-Send-Pr-Version: www-1.0
>Number: 57411
>Category: kern
>Synopsis: zpool import panic()s on non standard -d $DEVPATH
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 17 13:10:00 +0000 2023
>Originator: Mathew, Cherry G.
>Release: 10.0_BETA
>Organization:
>Environment:
>Description:
a dom0 kernel panics reliably if you:
zpool import -o cachefile=none -d /dev0
where /dev0 was created as follows:
mkdir /dev0
cp /dev/MAKEFILE* /dev0
cd /dev0
sh MAKEFILE all
zpool import -o cachefile=none -d /dev0
panic (hand copied) below:
uvm_fault(0xffffffff812d3400, 0xfffffffffffff000, 1) -> e
fatal page fault in supervisor mode
trap type 6 code 0 rip 0xffffffff809b691a cs 0xe030 rflags 0x10286 cr 0xffffff...f0 ilevel 0 rsp 0xffffd7013915e9a0
curlwp 0xffffd7000c136640 pid 987.737 lowest kstack 0xffffd7013915a2c0
kernel: page fault[ 113.2756678] trap, code=[>4;m0
Stopped in pid 987.737 (zpool) at netbsd:mutex_oncpu+0x1e: movq 0(%rbx),%rax
db{3}> bt
mutex_oncpu() at netbsd:mutex_oncpu+0x1e
mutex_vector_enter() at netbsd:mutex_vector_enter+0xb7
vndopen() at netbsdvndopen+0xee
cdev_open() at netbsd:cdev_open+0x12c
spec_open() at netbsd:spec_open+0x237
VOP_OPEN() at netbsd:VOP_OPEN+0x38
vn_open() at netbsd:vn_open+0x32e
do_open() at netbsd:do_open+0xc3
do_sys_openat() at netbsd:do_sys_openat+0x74
sys_openat() at netbsd:sys_openat+0x22
syscall() at netbsd:syscall+0x18c
--- syscall (number 468) ---
netbsd:syscall+0x18c:
>How-To-Repeat:
Install 10.0_BETA dom0 with zfs partitions available for import.
Then import as above.
>Fix:
(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.