NetBSD Problem Report #59287
From www@netbsd.org Sun Apr 13 11:36:35 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 095421A9239
for <gnats-bugs@gnats.NetBSD.org>; Sun, 13 Apr 2025 11:36:35 +0000 (UTC)
Message-Id: <20250413113633.9FA3A1A923D@mollari.NetBSD.org>
Date: Sun, 13 Apr 2025 11:36:33 +0000 (UTC)
From: rokuyama.rk@gmail.com
Reply-To: rokuyama.rk@gmail.com
To: gnats-bugs@NetBSD.org
Subject: vnd(4) causes ill-formed access to underlying device
X-Send-Pr-Version: www-1.0
>Number: 59287
>Category: port-vax
>Synopsis: vnd(4) causes ill-formed access to underlying device
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: port-vax-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Apr 13 11:40:00 +0000 2025
>Last-Modified: Sat Apr 19 02:10:01 +0000 2025
>Originator: Rin Okuyama
>Release: 10.99.12 (not recent regression)
>Organization:
Internet Initiative Japan Inc.
>Environment:
NetBSD 10.99.12 NetBSD 10.99.12 (GENERIC) #1: Sun Apr 13 19:38:40 JST 2025 rin@sakaizumii.local:/home/rin/src/sys/arch/vax/compile/obj.vax-vax/GENERIC vax
>Description:
As recently reported by riastradh@:
https://mail-index.netbsd.org/source-changes/2025/04/05/msg156250.html
ATF cases with vnd(4) can results in the system crash. This one
> kernel/t_umountstress (126/983): 2 test cases
> fileop: [ 5516.6200030] vnd0: no disk label
> [ 5517.1500030] ra0: drive 0 hard error datagram: memory addr 0x5000: host buffer access error (non-exist. memory) (code 9, subcode 3)
> [ 5517.1500030] ra0: host buffer access error (non-exist. memory) (code 9, subcode 3)
> [7.680000s] Failed: atf-check failed; see the output of the test for details
> mountlist: [ 5524.4600030] vnd0: no disk label
> Traceback (most recent call last):
>
> pexpect.exceptions.TIMEOUT: Timeout exceeded.
>
> https://releng.netbsd.org/b5reports/vax/2025/2025.04.01.03.16.41/test.log
probably suggests that vnd(4) can cause ill-formed access to
underlying device!
Actually, if you are good (bad?) luck enough, you can observe
similar messages by carrying out typical vnd(4) operations manually:
```
dd if=/dev/zero of=/root/foo
vnconfig vnd0 /root/foo
newfs /dev/rvnd0a
```
newfs(8) fails even if the system does not crash.
Also note that similar failure also happens for tmpfs, i.e.,
tests/fs/tmpfs/t_vnd.
>How-To-Repeat:
Described above.
>Fix:
notyet
>Audit-Trail:
From: "Rin Okuyama" <rin@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59287 CVS commit: src/tests
Date: Sat, 19 Apr 2025 02:07:43 +0000
Module Name: src
Committed By: rin
Date: Sat Apr 19 02:07:43 UTC 2025
Modified Files:
src/tests/dev/fss: t_fss.sh
src/tests/fs/tmpfs: t_vnd.sh
src/tests/kernel: t_umount.sh t_umountstress.sh
src/tests/sbin/fsck_ffs: t_extattr.sh
Log Message:
tests: Skip vnd(4)-based tests on vax for now
in order to avoid kernel crash described in PR port-vax/59287
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/tests/dev/fss/t_fss.sh
cvs rdiff -u -r1.15 -r1.16 src/tests/fs/tmpfs/t_vnd.sh
cvs rdiff -u -r1.7 -r1.8 src/tests/kernel/t_umount.sh
cvs rdiff -u -r1.5 -r1.6 src/tests/kernel/t_umountstress.sh
cvs rdiff -u -r1.5 -r1.6 src/tests/sbin/fsck_ffs/t_extattr.sh
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(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.