NetBSD Problem Report #56719
From martin@aprisoft.de Wed Feb 16 18:57:33 2022
Return-Path: <martin@aprisoft.de>
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 E24A71A9239
for <gnats-bugs@gnats.NetBSD.org>; Wed, 16 Feb 2022 18:57:33 +0000 (UTC)
Message-Id: <20220216185725.417975CC823@emmas.aprisoft.de>
Date: Wed, 16 Feb 2022 19:57:25 +0100 (CET)
From: martin@NetBSD.org
Reply-To: martin@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: ifconfig lo0 output broken with compat_netbsd32
X-Send-Pr-Version: 3.95
>Number: 56719
>Category: kern
>Synopsis: ifconfig lo0 output broken with compat_netbsd32
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Feb 16 19:00:00 +0000 2022
>Originator: Martin Husemann
>Release: NetBSD 9.99.93
>Organization:
The NetBSD Foundation, Inc.
>Environment:
System: NetBSD seven-days-to-the-wolves.aprisoft.de 9.99.93 NetBSD 9.99.93 (GENERIC) #524: Wed Feb 16 09:43:50 CET 2022 martin@seven-days-to-the-wolves.aprisoft.de:/work/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
While reviewing compat_netbsd32 test results I noticed some strange fallout
that happens due to broken "ifconfig lo0" output.
>How-To-Repeat:
chroot into a i386 base on amd64, then:
# ifconfig lo0
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
ifconfig: media_status: SIOCGIFDATA: Inappropriate ioctl for device
while the native version says:
# ifconfig lo0
lo0: flags=0x8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 33624
status: active
inet 127.0.0.1/8 flags 0
inet6 ::1/128 flags 0x20<NODAD>
inet6 fe80::1%lo0/64 flags 0 scopeid 0x3
>Fix:
n/a
(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.