NetBSD Problem Report #59206
From hans@netbsd.org Sat Mar 22 16:32:48 2025
Return-Path: <hans@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)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 708581A923D
for <gnats-bugs@gnats.NetBSD.org>; Sat, 22 Mar 2025 16:32:48 +0000 (UTC)
Message-Id: <20250322163245.17D2D1A923E@mollari.NetBSD.org>
Date: Sat, 22 Mar 2025 16:32:45 +0000 (UTC)
From: hans@netbsd.org
Reply-To: rodo@bloerp.de
To: gnats-bugs@NetBSD.org
Subject: kernel NULL pointer dereference caused by wsmouse_mux_close()
X-Send-Pr-Version: 3.95
>Number: 59206
>Category: kern
>Synopsis: kernel NULL pointer dereference caused by wsmouse_mux_close()
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Mar 22 16:35:01 +0000 2025
>Last-Modified: Mon Apr 07 11:20:01 +0000 2025
>Originator: Robert Doerfler
>Release: NetBSD 10.1
>Organization:
>Environment:
System: NetBSD endor.bloerp.space 10.1 NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
Installed 10.1 on a Thinkpad X270. X starts and runs fine, but exiting X causes an instant panic. Here's a full dmesg that also contains the panic message and stack trace:
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
[ 1.0000000] 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
[ 1.0000000] 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023,
[ 1.0000000] 2024
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All rights reserved.
[ 1.0000000] NetBSD 10.1 (GENERIC) #0: Mon Dec 16 13:08:11 UTC 2024
[ 1.0000000] mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC
[ 1.0000000] total memory = 7937 MB
[ 1.0000000] avail memory = 7648 MB
[ 1.0000000] timecounter: Timecounters tick every 10.000 msec
[ 1.0000000] Kernelized RAIDframe activated
[ 1.0000000] timecounter: Timecounter "i8254" frequency 1193182 Hz quality 100
[ 1.0000040] efi: systbl at pa bf114018
[ 1.0000040] mainbus0 (root)
[ 1.0000040] ACPI: RSDP 0x00000000BFFFE014 000024 (v02 LENOVO)
[ 1.0000040] ACPI: XSDT 0x00000000BFFC2188 0000FC (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: FACP 0x00000000BFFF5000 0000F4 (v05 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: DSDT 0x00000000BFFD0000 020F62 (v02 LENOVO SKL 00000000 INTL 20160527)
[ 1.0000040] ACPI: FACS 0x00000000BFF3D000 000040
[ 1.0000040] ACPI: SSDT 0x00000000BFFFC000 0003CC (v02 LENOVO Tpm2Tabl 00001000 INTL 20160527)
[ 1.0000040] ACPI: TPM2 0x00000000BFFFB000 000034 (v03 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: UEFI 0x00000000BFF53000 000042 (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: SSDT 0x00000000BFFF7000 0030B0 (v02 LENOVO SaSsdt 00003000 INTL 20160527)
[ 1.0000040] ACPI: SSDT 0x00000000BFFF6000 0005B6 (v02 LENOVO PerfTune 00001000 INTL 20160527)
[ 1.0000040] ACPI: HPET 0x00000000BFFF4000 000038 (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: APIC 0x00000000BFFF3000 0000BC (v03 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: MCFG 0x00000000BFFF2000 00003C (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: APIC 0x00000000BFFF3000 0000BC (v03 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: MCFG 0x00000000BFFF2000 00003C (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: ECDT 0x00000000BFFF1000 000053 (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: SSDT 0x00000000BFFCF000 00021C (v01 LENOVO Rmv_Batt 00001000 INTL 20160527)
[ 1.0000040] ACPI: SSDT 0x00000000BFFCD000 0016AD (v02 LENOVO ProjSsdt 00000010 INTL 20160527)
[ 1.0000040] ACPI: BOOT 0x00000000BFFCC000 000028 (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: BATB 0x00000000BFFCB000 00004A (v02 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: SLIC 0x00000000BFFCA000 000176 (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: SSDT 0x00000000BFFC8000 0017AE (v02 LENOVO CpuSsdt 00003000 INTL 20160527)
[ 1.0000040] ACPI: SSDT 0x00000000BFFC7000 00056D (v02 LENOVO CtdpB 00001000 INTL 20160527)
[ 1.0000040] ACPI: SSDT 0x00000000BFFC6000 000600 (v02 LENOVO UsbCTabl 00001000 INTL 20160527)
[ 1.0000040] ACPI: WSMT 0x00000000BFFC5000 000028 (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: SSDT 0x00000000BFFC4000 000141 (v02 LENOVO HdaDsp 00000000 INTL 20160527)
[ 1.0000040] ACPI: SSDT 0x00000000BFFC3000 0004C5 (v02 LENOVO TbtTypeC 00000000 INTL 20160527)
[ 1.0000040] ACPI: DBGP 0x00000000BFFFD000 000034 (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: DBG2 0x00000000BFFC1000 000054 (v00 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: MSDM 0x00000000BFFC0000 000055 (v03 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: ASF! 0x00000000BFFBF000 0000A0 (v32 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: FPDT 0x00000000BFFBE000 000044 (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: UEFI 0x00000000BFF3B000 00013E (v01 LENOVO TP-R0I 00001330 PTEC 00000002)
[ 1.0000040] ACPI: 11 ACPI AML tables successfully acquired and loaded
[ 1.0000040] ioapic0 at mainbus0 apid 2: pa 0xfec00000, version 0x20, 120 pins
[ 1.0000040] cpu0 at mainbus0 apid 0
[ 1.0000040] cpu0: Use lfence to serialize rdtsc
[ 1.0000040] cpu0: CPU base freq 2700000000 Hz
[ 1.0000040] cpu0: CPU max freq 3500000000 Hz
[ 1.0000040] cpu0: TSC freq CPUID 2712000000 Hz
[ 1.0000040] cpu0: Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz, id 0x806e9
[ 1.0000040] cpu0: node 0, package 0, core 0, smt 0
[ 1.0000040] cpu1 at mainbus0 apid 2
[ 1.0000040] cpu1: Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz, id 0x806e9
[ 1.0000040] cpu1: node 0, package 0, core 1, smt 0
[ 1.0000040] cpu2 at mainbus0 apid 1
[ 1.0000040] cpu2: Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz, id 0x806e9
[ 1.0000040] cpu2: node 0, package 0, core 0, smt 1
[ 1.0000040] cpu3 at mainbus0 apid 3
[ 1.0000040] cpu3: Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz, id 0x806e9
[ 1.0000040] cpu3: node 0, package 0, core 1, smt 1
[ 1.0000040] acpi0 at mainbus0: Intel ACPICA 20221020
[ 1.0000040] acpi0: X/RSDT: OemId <LENOVO,TP-R0I ,00001330>, AslId <PTEC,00000002>
[ 1.0000040] acpiecdt0 at acpi0: ACPI Embedded Controller via ECDT
[ 1.0000040] acpi0: MCFG: segment 0, bus 0-63, address 0x00000000f0000000
[ 1.0000040] ACPI: Dynamic OEM Table Load:
[ 1.0000040] ACPI: SSDT 0xFFFFED82F9A9A808 0003FF (v02 PmRef Cpu0Cst 00003001 INTL 20160527)
[ 1.0000040] ACPI: Dynamic OEM Table Load:
[ 1.0000040] ACPI: SSDT 0xFFFFED82F9A7C008 0006B4 (v02 PmRef Cpu0Ist 00003000 INTL 20160527)
[ 1.0000040] ACPI: Dynamic OEM Table Load:
[ 1.0000040] ACPI: SSDT 0xFFFFED82F9A68008 000D14 (v02 PmRef ApIst 00003000 INTL 20160527)
[ 1.0000040] ACPI: Dynamic OEM Table Load:
[ 1.0000040] ACPI: SSDT 0xFFFFED84194DF408 00030A (v02 PmRef ApCst 00003000 INTL 20160527)
[ 1.0000040] acpi0: SCI interrupting at int 9
[ 1.0000040] acpi0: fixed power button present
[ 1.0000040] timecounter: Timecounter "ACPI-Safe" frequency 3579545 Hz quality 900
[ 1.0282344] hpet0 at acpi0: high precision event timer (mem 0xfed00000-0xfed00400)
[ 1.0282344] timecounter: Timecounter "hpet0" frequency 24000000 Hz quality 2000
[ 1.0291675] acpiec0 at acpi0 (EC, PNP0C09-0): using acpiecdt0
[ 1.0291675] acpivga0 at acpi0 (GFX0): ACPI Display Adapter
[ 1.0291675] acpiout0 at acpivga0 (DD01, 0x0100): ACPI Display Output Device
[ 1.0291675] acpiout1 at acpivga0 (DD02, 0x0002): ACPI Display Output Device
[ 1.0291675] acpiout2 at acpivga0 (DD03, 0x0200): ACPI Display Output Device
[ 1.0291675] acpiout3 at acpivga0 (DD04, 0x0004): ACPI Display Output Device
[ 1.0291675] acpiout4 at acpivga0 (DD05, 0x0005): ACPI Display Output Device
[ 1.0291675] acpiout5 at acpivga0 (DD06, 0x0006): ACPI Display Output Device
[ 1.0291675] acpiout6 at acpivga0 (DD07, 0x0007): ACPI Display Output Device
[ 1.0291675] acpiout7 at acpivga0 (DD08, 0x0008): ACPI Display Output Device
[ 1.0291675] acpiout8 at acpivga0 (DD09, 0x0009): ACPI Display Output Device
[ 1.0291675] acpiout9 at acpivga0 (DD0A, 0x000a): ACPI Display Output Device
[ 1.0291675] acpiout10 at acpivga0 (DD0B, 0x000b): ACPI Display Output Device
[ 1.0291675] acpiout11 at acpivga0 (DD0C, 0x000c): ACPI Display Output Device
[ 1.0291675] acpiout12 at acpivga0 (DD0D, 0x000d): ACPI Display Output Device
[ 1.0291675] acpiout13 at acpivga0 (DD0E, 0x000e): ACPI Display Output Device
[ 1.0291675] acpiout14 at acpivga0 (DD0F, 0x000f): ACPI Display Output Device
[ 1.0291675] acpiout15 at acpivga0 (DD1F, 0x0400): ACPI Display Output Device
[ 1.0291675] acpiout15: brightness levels: [0-100]
[ 1.0291675] acpiout16 at acpivga0 (SKC0, 0xca00): ACPI Display Output Device
[ 1.0291675] acpivga0: connected output devices:
[ 1.0291675] acpivga0: 0x0400 (acpiout15): Unknown Output Device, head 0
[ 1.0291675] thinkpad0 at acpi0 (HKEY, LEN0268)
[ 1.0291675] thinkpad0: version 0200
[ 1.0291675] acpiacad0 at acpi0 (AC, ACPI0003-0): ACPI AC Adapter
[ 1.0291675] acpibat0 at acpi0 (BAT0, PNP0C0A-0): ACPI Battery
[ 1.0291675] acpibat0: ACPI 4.0 functionality present
[ 1.0291675] acpibat1 at acpi0 (BAT1, PNP0C0A-1): ACPI Battery
[ 1.0291675] acpibat1: ACPI 4.0 functionality present
[ 1.0291675] FWHD (INT0800) at acpi0 not configured
[ 1.0291675] attimer1 at acpi0 (TIMR, PNP0100): io 0x40-0x43,0x50-0x53 irq 0
[ 1.0291675] pcppi1 at acpi0 (SPKR, PNP0800): io 0x61
[ 1.0291675] spkr0 at pcppi1: PC Speaker
[ 1.0291675] wsbell at spkr0 not configured
[ 1.0291675] midi0 at pcppi1: PC speaker
[ 1.0291675] sysbeep0 at pcppi1
[ 1.0291675] pckbc1 at acpi0 (KBD, LEN0071) (kbd port): io 0x60,0x64 irq 1
[ 1.0291675] pckbc2 at acpi0 (MOU, LEN2046) (aux port): irq 12
[ 1.0291675] UCM1 (INT3515) at acpi0 not configured
[ 1.0291675] EPC (INT0E0C) at acpi0 not configured
[ 1.0291675] acpibut0 at acpi0 (SLPB, PNP0C0E): ACPI Sleep Button
[ 1.0291675] acpiwmi0 at acpi0 (WTBT, PNP0C14-TBFP): ACPI WMI Interface
[ 1.0291675] acpiwmibus at acpiwmi0 not configured
[ 1.0291675] MEM (PNP0C01) at acpi0 not configured
[ 1.0291675] acpilid0 at acpi0 (LID, PNP0C0D): ACPI Lid Switch
[ 1.0291675] acpiwmi1 at acpi0 (WMI1, PNP0C14-1): ACPI WMI Interface
[ 1.0291675] acpiwmibus at acpiwmi1 not configured
[ 1.0291675] acpiwmi2 at acpi0 (WMI2, PNP0C14-2): ACPI WMI Interface
[ 1.0291675] acpiwmibus at acpiwmi2 not configured
[ 1.0291675] acpiwmi3 at acpi0 (WMI3, PNP0C14-3): ACPI WMI Interface
[ 1.0291675] acpiwmibus at acpiwmi3 not configured
[ 1.0291675] tpm0 at acpi0 (TPM, MSFT0101): mem 0xfed40000-0xfed44fff
[ 1.0291675] tpm0: device 0x001b15d1 rev 0x10
[ 1.0291675] acpitz0 at acpi0 (THM0)
[ 1.0291675] acpitz0: levels: critical 128.0 C, passive cooling
[ 1.0291675] ACPI: Enabled 4 GPEs in block 00 to 7F
[ 1.0291675] attimer1: attached to pcppi1
[ 1.0291675] pckbd0 at pckbc1 (kbd slot)
[ 1.0291675] pckbc1: using irq 1 for kbd slot
[ 1.0291675] wskbd0 at pckbd0: console keyboard
[ 1.0291675] pms0 at pckbc1 (aux slot)
[ 1.0291675] pms0: Synaptics touchpad version 8.2
[ 1.0291675] pms0: Extended W mode, Passthrough, Middle button, Up/down buttons, Palm detect, One button click pad, Multi-finger Report, Multi-finger, Reports max, Reports min
[ 1.0291675] pms0: Probed max coordinates right: 5712, top: 4780
[ 1.0291675] pms0: Probed min coordinates left: 1232, bottom: 1074
[ 1.0291675] pckbc1: using irq 12 for aux slot
[ 1.0291675] wsmouse0 at pms0 mux 0
[ 1.0291675] pci0 at mainbus0 bus 0: configuration mode 1
[ 1.0291675] pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
[ 1.0291675] pchb0 at pci0 dev 0 function 0: Intel Core 7G (U) Host Bridge, DRAM (rev. 0x02)
[ 1.0291675] tpm0 at acpi0 (TPM, MSFT0101): mem 0xfed40000-0xfed44fff
[ 1.0291675] tpm0: device 0x001b15d1 rev 0x10
[ 1.0291675] acpitz0 at acpi0 (THM0)
[ 1.0291675] acpitz0: levels: critical 128.0 C, passive cooling
[ 1.0291675] ACPI: Enabled 4 GPEs in block 00 to 7F
[ 1.0291675] attimer1: attached to pcppi1
[ 1.0291675] pckbd0 at pckbc1 (kbd slot)
[ 1.0291675] pckbc1: using irq 1 for kbd slot
[ 1.0291675] wskbd0 at pckbd0: console keyboard
[ 1.0291675] pms0 at pckbc1 (aux slot)
[ 1.0291675] pms0: Synaptics touchpad version 8.2
[ 1.0291675] pms0: Extended W mode, Passthrough, Middle button, Up/down buttons, Palm detect, One button click pad, Multi-finger Report, Multi-finger, Reports max, Reports min
[ 1.0291675] pms0: Probed max coordinates right: 5712, top: 4780
[ 1.0291675] pms0: Probed min coordinates left: 1232, bottom: 1074
[ 1.0291675] pckbc1: using irq 12 for aux slot
[ 1.0291675] wsmouse0 at pms0 mux 0
[ 1.0291675] pci0 at mainbus0 bus 0: configuration mode 1
[ 1.0291675] pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
[ 1.0291675] pchb0 at pci0 dev 0 function 0: Intel Core 7G (U) Host Bridge, DRAM (rev. 0x02)
[ 1.0291675] 915drmkms0 at pci0 dev 2 function 0: Intel HD Graphics 620 (GT2) (rev. 0x02)
[ 1.0291675] xhci0 at pci0 dev 20 function 0: Intel 100 Series xHCI (rev. 0x21)
[ 1.0291675] xhci0: 64-bit DMA
[ 1.0291675] xhci0: interrupting at msi0 vec 0
[ 1.0291675] xhci0: xHCI version 1.0
[ 1.0291675] usb0 at xhci0: USB revision 3.0
[ 1.0291675] usb1 at xhci0: USB revision 2.0
[ 1.0291675] Intel 100 Series Thermal (miscellaneous DASP, revision 0x21) at pci0 dev 20 function 2 not configured
[ 1.0291675] dwiic0 at pci0 dev 21 function 0: I2C controller instance 0
[ 1.0291675] dwiic0: interrupting at ioapic0 pin 16
[ 1.0291675] iic0 at dwiic0: I2C bus
[ 1.0291675] dwiic1 at pci0 dev 21 function 1: I2C controller instance 1
[ 1.0291675] dwiic1: interrupting at ioapic0 pin 17
[ 1.0291675] iic1 at dwiic1: I2C bus
[ 1.0291675] ihidev0 at iic1 addr 0x38ihidev0: autoconfiguration error: failed to get HidDescriptorAddress: AE_NOT_FOUND
[ 1.0291675] Intel 100 Series MEI (miscellaneous communications, revision 0x21) at pci0 dev 22 function 0 not configured
[ 1.0291675] puc0 at pci0 dev 22 function 3: Intel 100 Series LP KT (com)
[ 1.0291675] com2 at puc0 port 0 (16550-compatible): ioaddr 0xe088, interrupting at ioapic0 pin 19
[ 1.0291675] com2: ns16550a, 16-byte FIFO
[ 1.0291675] ahcisata0 at pci0 dev 23 function 0: Intel 100 Series SATA (AHCI) (rev. 0x21)
[ 1.0291675] ahcisata0: 64-bit DMA
[ 1.0291675] ahcisata0: AHCI revision 1.31, 1 port, 32 slots, CAP 0xc734ff00<PSC,SSC,PMD,SAM,ISS=0x3=Gen3,SCLO,SAL,SALP,SNCQ,S64A>
[ 1.0291675] ahcisata0: interrupting at msi1 vec 0
[ 1.0291675] atabus0 at ahcisata0 channel 1
[ 1.0291675] ppb0 at pci0 dev 28 function 0: Intel 100 Series PCIe (rev. 0xf1)
[ 1.0291675] ppb0: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 8.0GT/s
[ 1.0291675] ppb0: link is x1 @ 2.5GT/s
[ 1.0291675] pci1 at ppb0 bus 2
[ 1.0291675] pci1: i/o space, memory space enabled
[ 1.0291675] rtsx0 at pci1 dev 0 function 0: Realtek Semiconductor RTS522A PCI-E Card Reader (rev. 0x01)
[ 1.0291675] rtsx0: interrupting at msi2 vec 0
[ 1.0291675] sdmmc0 at rtsx0
[ 1.0291675] ppb1 at pci0 dev 28 function 2: Intel 100 Series PCIe (rev. 0xf1)
[ 1.0291675] ppb1: PCI Express capability version 2 <Root Port of PCI-E Root Complex> x1 @ 8.0GT/s
[ 1.0291675] ppb1: link is x1 @ 2.5GT/s
[ 1.0291675] pci2 at ppb1 bus 3
[ 1.0291675] pci2: i/o space, memory space enabled
[ 1.0291675] iwm0 at pci2 dev 0 function 0: Intel Dual Band Wireless AC 8265 (rev. 0x78)
[ 1.0291675] iwm0: interrupting at msi3 vec 0
[ 1.0291675] pcib0 at pci0 dev 31 function 0: Intel 200 Series LPC (rev. 0x21)
[ 1.0291675] Intel 100 Series PMC (miscellaneous memory, revision 0x21) at pci 0 dev 31 function 2 not configured
[ 1.0291675] hdaudio0 at pci0 dev 31 function 3: HD Audio Controller
[ 1.0291675] hdaudio0: interrupting at msi4 vec 0
[ 1.0291675] hdaudio0: HDA ver. 1.0, OSS 9, ISS 7, BSS 0, SDO 1, 64-bit
[ 1.0291675] hdafg0 at hdaudio0: Realtek product 0298
[ 1.0291675] hdafg0: DAC00 2ch: Speaker [Built-In]
[ 1.0291675] hdafg0: DAC01 2ch: HP Out [Jack]
[ 1.0291675] hdafg0: ADC02 2ch: Mic In [Jack]
[ 1.0291675] hdafg0: ADC03 2ch: Mic In [Built-In]
[ 1.0291675] hdafg0: 2ch/2ch 44100Hz 48000Hz PCM16 PCM20 PCM24
[ 1.0291675] audio0 at hdafg0: playback, capture, full duplex, independent
[ 1.0291675] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[ 1.0291675] audio0: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[ 1.0291675] spkr1 at audio0: PC Speaker (synthesized)
[ 1.0291675] wsbell at spkr1 not configured
[ 1.0291675] hdafg1 at hdaudio0: Intel HDMI/DP
[ 1.0291675] hdafg1: DP00 8ch: Digital Out [Jack]
[ 1.0291675] hdafg1: 8ch/0ch 48000Hz PCM16*
[ 1.0291675] audio1 at hdafg1: playback, capture, full duplex, independent
[ 1.0291675] audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for playback
[ 1.0291675] audio1: slinear_le:16 2ch 48000Hz, blk 1920 bytes (10ms) for recording
[ 1.0291675] spkr2 at audio1: PC Speaker (synthesized)
[ 1.0291675] wsbell at spkr2 not configured
[ 1.0291675] ichsmb0 at pci0 dev 31 function 4: Intel 100 Series SMBus (rev. 0x21)
[ 1.0291675] ichsmb0: interrupting at ioapic0 pin 16
[ 1.0291675] iic2 at ichsmb0: I2C bus
[ 1.0291675] tco0 at ichsmb0: TCO (watchdog) timer configured.
[ 1.0291675] tco0: Min/Max interval 1/367 seconds
[ 1.0291675] wm0 at pci0 dev 31 function 6, 64-bit DMA: I219 LM (4) Ethernet Connection (rev. 0x21)
[ 1.0291675] wm0: interrupting at msi5 vec 0
[ 1.0291675] wm0: PCI-Express bus
[ 1.0291675] wm0: 4096 words FLASH, version 0.1.4
[ 1.0291675] wm0: RX packet buffer size: 26KB
[ 1.0291675] wm0: Ethernet address 54:e1:ad:12:ec:25
[ 1.0291675] wm0: 0x6a4080<FLASH,PCIE,ASF_FIRM,AMT,WOL,EEE>
[ 1.0291675] ihphy0 at wm0 phy 2: i217 10/100/1000 media interface, rev. 6
[ 1.0291675] ihphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
[ 1.0291675] isa0 at pcib0
[ 1.0291675] com0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, 16-byte FIFO
[ 1.0291675] acpicpu0 at cpu0: ACPI CPU
[ 1.0291675] acpicpu0: C1: FFH, lat 1 us, pow 1000 mW
[ 1.0291675] acpicpu0: C2: FFH, lat 151 us, pow 200 mW
[ 1.0291675] acpicpu0: C3: FFH, lat 1034 us, pow 200 mW
[ 1.0291675] acpicpu0: P0: FFH, lat 10 us, pow 15000 mW, 2601 MHz, turbo boost
[ 1.0291675] acpicpu0: P1: FFH, lat 10 us, pow 14236 mW, 2600 MHz
[ 1.0291675] acpicpu0: P2: FFH, lat 10 us, pow 13487 mW, 2500 MHz
[ 1.0291675] acpicpu0: P3: FFH, lat 10 us, pow 12752 mW, 2400 MHz
[ 1.0291675] acpicpu0: P4: FFH, lat 10 us, pow 11467 mW, 2200 MHz
[ 1.0291675] acpicpu0: P5: FFH, lat 10 us, pow 10234 mW, 2000 MHz
[ 1.0291675] acpicpu0: P6: FFH, lat 10 us, pow 9566 mW, 1900 MHz
[ 1.0291675] acpicpu0: P7: FFH, lat 10 us, pow 8271 mW, 1700 MHz
[ 1.0291675] acpicpu0: P8: FFH, lat 10 us, pow 7163 mW, 1500 MHz
[ 1.0291675] acpicpu0: P9: FFH, lat 10 us, pow 6561 mW, 1400 MHz
[ 1.0291675] acpicpu0: P10: FFH, lat 10 us, pow 5522 mW, 1200 MHz
[ 1.0291675] acpicpu0: P11: FFH, lat 10 us, pow 4957 mW, 1100 MHz
[ 1.0291675] acpicpu0: P12: FFH, lat 10 us, pow 3461 mW, 800 MHz
[ 1.0291675] acpicpu0: P13: FFH, lat 10 us, pow 2945 mW, 700 MHz
[ 1.0291675] acpicpu0: P14: FFH, lat 10 us, pow 2559 mW, 600 MHz
[ 1.0291675] acpicpu0: P15: FFH, lat 10 us, pow 1586 mW, 400 MHz
[ 1.0291675] acpicpu0: T0: I/O, lat 1 us, pow 0 mW, 100 %
[ 1.0291675] acpicpu0: T1: I/O, lat 1 us, pow 0 mW, 88 %
[ 1.0291675] acpicpu0: T2: I/O, lat 1 us, pow 0 mW, 76 %
[ 1.0291675] acpicpu0: T3: I/O, lat 1 us, pow 0 mW, 64 %
[ 1.0291675] acpicpu0: T4: I/O, lat 1 us, pow 0 mW, 52 %
[ 1.0291675] acpicpu0: T5: I/O, lat 1 us, pow 0 mW, 40 %
[ 1.0291675] acpicpu0: T6: I/O, lat 1 us, pow 0 mW, 28 %
[ 1.0291675] acpicpu0: T7: I/O, lat 1 us, pow 0 mW, 16 %
[ 1.0291675] coretemp0 at cpu0: thermal sensor, 1 C resolution, Tjmax=100
[ 1.0291675] acpicpu1 at cpu1: ACPI CPU
[ 1.0291675] coretemp1 at cpu1: thermal sensor, 1 C resolution, Tjmax=100
[ 1.0291675] acpicpu2 at cpu2: ACPI CPU
[ 1.0291675] acpicpu3 at cpu3: ACPI CPU
[ 1.0291675] cpu0: CPU base freq 2700000000 Hz
[ 1.0291675] cpu0: CPU max freq 3500000000 Hz
[ 1.0291675] cpu0: TSC freq CPUID 2712000000 Hz
[ 1.0291675] cpu0: TSC freq calibrated 2712007000 Hz
[ 1.0291675] timecounter: Timecounter "clockinterrupt" frequency 100 Hz quality 0
[ 1.0291675] timecounter: Timecounter "TSC" frequency 2712007000 Hz quality 3000
[ 1.4574970] uhub0 at usb0acpiacad0: AC adapter online.
[ 1.4574970] : NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 3.00/1.00, addr 0
[ 1.4934221] uhub0: 6 ports with 6 removable, self powered
[ 1.4934221] uhub1 at usb1: NetBSD (0x0000) xHCI root hub (0x0000), class 9/0, rev 2.00/1.00, addr 0
[ 1.5334220] uhub1: 12 ports with 12 removable, self powered
[ 1.5334220] acpibat1: LGC LION rechargeable battery
[ 1.6234224] acpibat1: granularity: low->warn 0.-01 Wh, warn->full 0.-01 Wh
[ 1.6334216] acpibat0: LGC LION rechargeable battery
[ 1.7134222] acpibat0: granularity: low->warn 0.-01 Wh, warn->full 0.-01 Wh
[ 1.7134222] ahcisata0 port 1: device present, speed: 6.0Gb/s
[ 1.7234293] IPsec: Initialized Security Association Processing.
[ 2.1634244] ugen0 at uhub1 port 3
[ 2.1934202] ugen0: Sierra Wireless, Incorporated (0x1199) Sierra Wireless EM7455 Qualcomm Snapdragon X7 LTE-A (0x9079), rev 2.00/0.06, addr 1
[ 2.7234227] ubt0 at uhub1 port 7
[ 2.7434190] ubt0: vendor 8087 (0x8087) product 0a2b (0x0a2b), rev 2.00/0.10, addr 2
[ 3.2634218] uvideo0 at uhub1 port 8 configuration 1 interface 0: SunplusIT Inc (0x04f2) Integrated Camera (0xb5ab), rev 2.00/0.10, addr 3
[ 3.3134175] wd0 at atabus0 drive 0
[ 3.3434174] video0 at uvideo0: SunplusIT Inc (0x04f2) Integrated Camera (0xb5ab), rev 2.00/0.10, addr 3
[ 3.3734170] wd0: <INTEL SSDSCKKF256H6L>
[ 3.3934175] wd0: drive supports 1-sector PIO transfers, LBA48 addressing
[ 3.3934175] wd0: 238 GB, 496149 cyl, 16 head, 63 sec, 512 bytes/sect x 500118192 sectors
[ 3.4234175] wd0: GPT GUID: 3428cb8d-849f-4cec-8ba8-d446a59a3e56
[ 3.4234175] dk0 at wd0: "1369011f-08c9-4bbb-84f2-fee718b12ffa", 262144 blocks at 2048, type: msdos
[ 3.4534170] dk1 at wd0: "e1152992-8fef-48ba-9b1d-da9ed85ed20a", 483598336 blocks at 264192, type: ffs
[ 3.4834171] dk2 at wd0: "55e68607-1d1f-44aa-bc72-a52520c2a102", 16255631 blocks at 483862528, type: swap
[ 3.5134171] wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133), NCQ (32 tags)
[ 3.5134171] wd0(ahcisata0:1:0): using PIO mode 4, DMA mode 2, Ultra-DMA mode 6 (Ultra/133) (using DMA), NCQ (31 tags)
[ 3.9334194] ugen1 at uhub1 port 9
[ 3.9634158] ugen1: vendor 138a (0x138a) product 0097 (0x0097), rev 2.00/1.64, addr 4
[ 4.4634185] uhidev0 at uhub1 port 10 configuration 1 interface 0
[ 4.4934144] uhidev0: ELAN (0x04f3) Touchscreen (0x237b), rev 2.00/57.03, addr 5, iclass 3/0
[ 4.5234181] uhidev0: 68 report ids
[ 4.5534142] uts0 at uhidev0 reportid 1
[ 4.5734144] wsmouse1 at uts0 mux 0
[ 4.6034142] uhid0 at uhidev0 reportid 2: input=64, output=0, feature=0
[ 4.6334143] uhid1 at uhidev0 reportid 3: input=0, output=63, feature=0
[ 4.6534140] uhid2 at uhidev0 reportid 4: input=19, output=0, feature=0
[ 4.6834137] uhid3 at uhidev0 reportid 10: input=0, output=0, feature=1
[ 4.7134137] uhid4 at uhidev0 reportid 68: input=0, output=0, feature=256
[ 4.7434136] swwdog0: software watchdog initialized
[ 4.7734139] WARNING: 1 error while detecting hardware; check system log.
[ 4.7934136] boot device: wd0
[ 4.8234139] root on dk1 dumps on dk2
[ 4.8534137] root file system type: ffs
[ 4.8734135] kern.module.path=/stand/amd64/10.1/modules
[ 4.9088506] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 4.9088506] [drm] Driver supports precise vblank timestamp query.
[ 4.9138826] i915drmkms0: interrupting at msi6 vec 0 (i915drmkms0)
[ 4.9138826] i915drmkms0: notice: Failed to load DMC firmware i915/kbl_dmc_ver1_04.bin. Disabling runtime power management.
[ 4.9434129] [drm] Initialized i915 1.6.0 20200114 for i915drmkms0 on minor 0
[ 5.0934128] iwm0: hw rev 0x230, fw ver 22.361476.0, address f8:59:71:83:ba:d5
[ 5.4634152] intelfb0 at i915drmkms0
[ 5.4634152] [drm] DRM_I915_DEBUG enabled
[ 5.4634152] [drm] DRM_I915_DEBUG_GEM enabled
[ 5.4634152] intelfb0: framebuffer at 0xd0040000, size 1920x1080, depth 32, stride 7680
[ 5.4743402] wsdisplay0 at intelfb0 kbdmux 1: console (default, vt100 emulation), using wskbd0
[ 5.4743402] wsmux1: connecting to wsdisplay0
[ 17.2533822] wsdisplay0: screen 1 added (default, vt100 emulation)
[ 17.2533822] wsdisplay0: screen 2 added (default, vt100 emulation)
[ 17.2533822] wsdisplay0: screen 3 added (default, vt100 emulation)
[ 17.2533822] wsdisplay0: screen 4 added (default, vt100 emulation)
[ 265.0527424] uvm_fault(0xffffed82fbd2d458, 0x0, 1) -> e
[ 265.0527424] fatal page fault in supervisor mode
[ 265.0527424] trap type 6 code 0 rip 0xffffffff80d30861 cs 0x8 rflags 0x10246 cr2 0x20 ilevel 0 rsp 0xffffbd02694e4cd0
[ 265.0527424] curlwp 0xffffed82fceb0740 pid 2808.2808 lowest kstack 0xffffbd02694e02c0
[ 265.0527424] panic: trap
[ 265.0527424] cpu1: Begin traceback...
[ 265.0527424] vpanic() at netbsd:vpanic+0x183
[ 265.0527424] panic() at netbsd:panic+0x3c
[ 265.0527424] trap() at netbsd:trap+0xbaf
[ 265.0527424] --- trap (number 6) ---
[ 265.0527424] pool_cache_put_paddr() at netbsd:pool_cache_put_paddr+0x7f
[ 265.0527424] uhidev_close() at netbsd:uhidev_close+0x149
[ 265.0527424] wsmouse_mux_close() at netbsd:wsmouse_mux_close+0x29
[ 265.0527424] wsmuxclose() at netbsd:wsmuxclose+0x5d
[ 265.0527424] cdev_close() at netbsd:cdev_close+0x92
[ 265.0527424] spec_close() at netbsd:spec_close+0x188
[ 265.0627418] VOP_CLOSE() at netbsd:VOP_CLOSE+0x44
[ 265.0627418] vn_close() at netbsd:vn_close+0x51
[ 265.0627418] closef() at netbsd:closef+0x58
[ 265.0627418] fd_close() at netbsd:fd_close+0x140
[ 265.0627418] sys_close() at netbsd:sys_close+0x22
[ 265.0627418] syscall() at netbsd:syscall+0x1fc
[ 265.0627418] --- syscall (number 6) ---
[ 265.0627418] netbsd:syscall+0x1fc:
[ 265.0627418] cpu1: End traceback...
[ 265.0627418] dumping to dev 168,2 (offset=8, size=2032028):
[ 265.0627418] dump
I tried to reproduce this with a GENERIC kernel with DEBUG and DIAGNOSTIC enabled, but the problem went away due to DIAGNOSTIC checks in wscons and other drivers apparently handling unexpected issues more gracefully than the non-DIAGNOSTIC code.
>How-To-Repeat:
Install 10.1 on a Thinkpad X270. Start X, exit X, panic.
>Fix:
>Audit-Trail:
From: Hans Rosenfeld <hans@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/59206
Date: Sun, 23 Mar 2025 09:34:15 +0100
This Thinkpad X270 has a touchscreen that is internally connected
through USB. This seems to be the culprit:
[ 4.5967218] uhidev0 at uhub1 port 10 configuration 1 interface 0
[ 4.6267147] uhidev0: ELAN (0x04f3) Touchscreen (0x237b), rev 2.00/57.03, addr 5, iclass 3/0
[ 4.6567148] uhidev0: 68 report ids
[ 4.6867155] uts0 at uhidev0 reportid 1
[ 4.7067147] wsmouse1 at uts0 mux 0
[ 4.7367149] uhid0 at uhidev0 reportid 2: input=64, output=0, feature=0
[ 4.7667146] uhid1 at uhidev0 reportid 3: input=0, output=63, feature=0
[ 4.7967149] uhid2 at uhidev0 reportid 4: input=19, output=0, feature=0
[ 4.8167146] uhid3 at uhidev0 reportid 10: input=0, output=0, feature=1
[ 4.8467146] uhid4 at uhidev0 reportid 68: input=0, output=0, feature=256
Now that I've identified this, I was able to change the DIAGNOSTIC check
in sys/dev/usb/uts.c for a quick test, and then I got this:
[ 40.4167109] wsmuxopen: dev already in use
[ 50.9066988] uts_disable: not enabled
[ 50.9066988] panic: kernel diagnostic assertion "scd->sc_state & UHIDEV_OPEN" failed: file "../../../../dev/usb/uhidev.c", line 978 uhidev0: report id 1: unpaired close
[ 50.9066988] cpu0: Begin traceback...
[ 50.9066988] vpanic() at netbsd:vpanic+0x183
[ 50.9066988] kern_assert() at netbsd:kern_assert+0x4b
[ 50.9066988] uhidev_close() at netbsd:uhidev_close+0x266
[ 50.9066988] wsmouse_mux_close() at netbsd:wsmouse_mux_close+0x29
[ 50.9066988] wsmux_do_close() at netbsd:wsmux_do_close+0x57
[ 50.9066988] wsmuxclose() at netbsd:wsmuxclose+0x41
[ 50.9066988] cdev_close() at netbsd:cdev_close+0x92
[ 50.9166976] spec_close() at netbsd:spec_close+0x22a
[ 50.9166976] VOP_CLOSE() at netbsd:VOP_CLOSE+0x44
[ 50.9166976] vn_close() at netbsd:vn_close+0x35
[ 50.9166976] closef() at netbsd:closef+0x60
[ 50.9166976] fd_close() at netbsd:fd_close+0x141
[ 50.9166976] sys_close() at netbsd:sys_close+0x22
[ 50.9166976] syscall() at netbsd:syscall+0x196
[ 50.9166976] --- syscall (number 6) ---
[ 50.9166976] netbsd:syscall+0x196:
[ 50.9166976] cpu0: End traceback...
From: Hans Rosenfeld <hans@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/59206
Date: Sun, 23 Mar 2025 09:12:19 +0100
This Thinkpad X270 has a touchscreen that is internally connected
through USB. This seems to be the culprit:
[ 4.5967218] uhidev0 at uhub1 port 10 configuration 1 interface 0
[ 4.6267147] uhidev0: ELAN (0x04f3) Touchscreen (0x237b), rev 2.00/57.03, addr 5, iclass 3/0
[ 4.6567148] uhidev0: 68 report ids
[ 4.6867155] uts0 at uhidev0 reportid 1
[ 4.7067147] wsmouse1 at uts0 mux 0
[ 4.7367149] uhid0 at uhidev0 reportid 2: input=64, output=0, feature=0
[ 4.7667146] uhid1 at uhidev0 reportid 3: input=0, output=63, feature=0
[ 4.7967149] uhid2 at uhidev0 reportid 4: input=19, output=0, feature=0
[ 4.8167146] uhid3 at uhidev0 reportid 10: input=0, output=0, feature=1
[ 4.8467146] uhid4 at uhidev0 reportid 68: input=0, output=0, feature=256
Now that I've identified this, I was able to change the DIAGNOSTIC check
in sys/dev/usb/uts.c for a quick test, and then I got this:
[ 40.4167109] wsmuxopen: dev already in use
[ 50.9066988] uts_disable: not enabled
[ 50.9066988] panic: kernel diagnostic assertion "scd->sc_state & UHIDEV_OPEN" failed: file "../../../../dev/usb/uhidev.c", line 978 uhidev0: report id 1: unpaired close
[ 50.9066988] cpu0: Begin traceback...
[ 50.9066988] vpanic() at netbsd:vpanic+0x183
[ 50.9066988] kern_assert() at netbsd:kern_assert+0x4b
[ 50.9066988] uhidev_close() at netbsd:uhidev_close+0x266
[ 50.9066988] wsmouse_mux_close() at netbsd:wsmouse_mux_close+0x29
[ 50.9066988] wsmux_do_close() at netbsd:wsmux_do_close+0x57
[ 50.9066988] wsmuxclose() at netbsd:wsmuxclose+0x41
[ 50.9066988] cdev_close() at netbsd:cdev_close+0x92
[ 50.9166976] spec_close() at netbsd:spec_close+0x22a
[ 50.9166976] VOP_CLOSE() at netbsd:VOP_CLOSE+0x44
[ 50.9166976] vn_close() at netbsd:vn_close+0x35
[ 50.9166976] closef() at netbsd:closef+0x60
[ 50.9166976] fd_close() at netbsd:fd_close+0x141
[ 50.9166976] sys_close() at netbsd:sys_close+0x22
[ 50.9166976] syscall() at netbsd:syscall+0x196
[ 50.9166976] --- syscall (number 6) ---
[ 50.9166976] netbsd:syscall+0x196:
[ 50.9166976] cpu0: End traceback...
From: RVP <rvp@SDF.ORG>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: kern/59206: kernel NULL pointer dereference caused by
wsmouse_mux_close()
Date: Sun, 23 Mar 2025 09:49:26 +0000 (UTC)
Can you please try:
---START patch---
diff -urN a/src/sys/dev/usb/uts.c b/src/sys/dev/usb/uts.c
--- a/src/sys/dev/usb/uts.c 2023-05-10 00:12:44.000000000 +0000
+++ b/src/sys/dev/usb/uts.c 2025-03-23 09:42:51.560525820 +0000
@@ -310,6 +310,7 @@
uts_enable(void *v)
{
struct uts_softc *sc = v;
+ int error;
DPRINTFN(1,("uts_enable: sc=%p\n", sc));
@@ -322,7 +323,11 @@
sc->sc_enabled = 1;
sc->sc_buttons = 0;
- return uhidev_open(sc->sc_hdev, &uts_intr, sc);
+ error = uhidev_open(sc->sc_hdev, &uts_intr, sc);
+ if (error)
+ sc->sc_enabled = 0;
+
+ return error;
}
Static void
@@ -338,8 +343,10 @@
}
#endif
- sc->sc_enabled = 0;
- uhidev_close(sc->sc_hdev);
+ if (sc->sc_enabled) {
+ sc->sc_enabled = 0;
+ uhidev_close(sc->sc_hdev);
+ }
}
Static int
@@ -370,6 +377,9 @@
uint32_t buttons = 0;
int flags, s;
+ if (!sc->sc_enabled)
+ return;
+
DPRINTFN(5,("uts_intr: len=%d\n", len));
flags = WSMOUSE_INPUT_DELTA | WSMOUSE_INPUT_ABSOLUTE_Z;
---END patch---
-RVP
From: "Hans Rosenfeld" <hans@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59206 CVS commit: src/sys/dev/usb
Date: Sun, 23 Mar 2025 12:07:24 +0000
Module Name: src
Committed By: hans
Date: Sun Mar 23 12:07:24 UTC 2025
Modified Files:
src/sys/dev/usb: uts.c
Log Message:
uts(4): make sure the device is enabled before calling uhidev_close()
This check was already there, but only enabled for DIAGNOSTIC kernels.
The check and early return is always needed, but the message should only
be printed in DIAGNOSTIC kernels.
Fixes PR kern/59206
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/dev/usb/uts.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Hans Rosenfeld" <hans@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59206 CVS commit: src/sys/dev/usb
Date: Mon, 7 Apr 2025 11:13:15 +0000
Module Name: src
Committed By: hans
Date: Mon Apr 7 11:13:15 UTC 2025
Modified Files:
src/sys/dev/usb: uts.c
Log Message:
uts(4): check uhidev_open() return before setting sc_enabled
Also, check that sc_enabled is set before disabling.
PR kern/59206
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/sys/dev/usb/uts.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: "Hans Rosenfeld" <hans@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/59206 CVS commit: src/sys/dev/wscons
Date: Mon, 7 Apr 2025 11:18:45 +0000
Module Name: src
Committed By: hans
Date: Mon Apr 7 11:18:45 UTC 2025
Modified Files:
src/sys/dev/wscons: wsmux.c
Log Message:
wsmux(4): fix open/close of child devices
Only open child devices which aren't open already, and only close what
we've opened. While here, fix all that #ifdef DIAGNOSTIC stuff. Most of
that should just be KASSERTs.
PR kern/59206
To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/sys/dev/wscons/wsmux.c
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.