Hi,

I had finally chance to test this again on:

OpenBSD 6.0-current (GENERIC.MP) #2220: Wed Oct 12 20:06:45 MDT 2016
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP

and this problem does not occur anymore. Multiple find(1) commands on
NTFS mount work reliably and doesn't trigger kernel panic like before.

Thanks. Current dmesg inluded at the end of this email.

On Tue, Aug 25, 2015 at 08:45:57PM +0100, miko...@kucharski.name wrote:
> >Synopsis:    find on ntfs mount triggers kernel panic
> >Category:    kernel
> >Environment:
>       System      : OpenBSD 5.8
>       Details     : OpenBSD 5.8-current (GENERIC.MP) #1131: Tue Aug 25 
> 06:34:01 MDT 2015
>                        
> dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> 
>       Architecture: OpenBSD.i386
>       Machine     : i386
> >Description:
> Executing find on ntfs mount point results in panic. Find executed over ssh,
> here is tail of the output from remote machine:
> 
> /home/wd0j/Windows/winsxs/Manifests/x86_e06d60e77c6609654b3e6b5f824be3fe_b03f5f7f11d50a3a_6.0.6001.18111_none_3ab8d9104875320f.manifest
> /home/wd0j/Windows/winsxs/Manifests/x86_e07f7a84fef1df7bc69de25c3b0b73b7_31bf3856ad364e35_6.0.6002.22468_none_990a608aa514e04d.manifest
> /home/wd0j/Windows/winsxs/Manifests/x86_e07ffe83cc403ffa00d0ababce873343_31bf3856ad364e35_6.0.6001.18000_none_439da59f6241ad11.manifest
> /home/wd0j/Windows/winsxs/Manifests/x86_e0818432c4b4645be82d8c1135e0ae34_31bf3856ad364e35_6.0.6002.22343_none_6815f48e62f99ba2.manifest
> /home/wd0j/Windows/winsxs/Manifests/x86_microsoft-windows-ie-runtimeutilities_31bf3856ad364e35_9.1.8112.20656_none_080515a8e399e5cpacket_wri
> te_wait: Connection to 192.168.1.26: Broken pipe
> 
> 
> Here is trace hand written from the glass console (there could be typos):
> 
> ddb{0}> trace
> ntfs_ntrele(efff5544,937d6511,4,d5317200,0) at ntfs_ntrele+0x9
> ntfs_ntvattrrele(d5317200,d546e600,d5317200,0,0) at ntfs_ntvattrrele+0x14
> ntfs_readattr_plain(d4c73a00,d546e600,a0,d09b95aa,0) at 
> ntfs_readattr_plain+Ox186
> ntfs_readattr(d4c73a00,d546e600,a0,d09b95aa,0) at ntfs_readattr+0x124
> ntfs_ntreaddir(d4c73a00,d546e680,a0,f5477e68,da8fd178) at ntfs_ntreaddir+0x19c
> ntfs_readdir(f5477e98,da8fd178,f5477eac,d03f6bdb,da8fc13c) at 
> ntfs_readdir+0xfe
> VOP_READDIR(daa5e24c,f5477edc,dab3c5a0,f5477f04,f5477f80) at VOP_READDIR+0x3f
> sys_getdents(da8fd178,f5477f60,f5477f80,0,da8fd178) at sys_getdents+0x129
> syscall() at syscall+0x3cb
> --- syscall (number 0) ---
> 0x202:
> ddb{0}>
> 
> 
> 
> >How-To-Repeat:
>       mount -r /dev/wd0j /home/wd0j
>       find /home/wd0j
>       panic is triggered around /Windows/winsxs/Manifests directory
> >Fix:
>       none
> 
> 
> dmesg:
> OpenBSD 5.8-current (GENERIC.MP) #1131: Tue Aug 25 06:34:01 MDT 2015
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
...


OpenBSD 6.0-current (GENERIC.MP) #2220: Wed Oct 12 20:06:45 MDT 2016
    dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
cpu0: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz
cpu0: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF,SENSOR
real mem  = 3219210240 (3070MB)
avail mem = 3144921088 (2999MB)
mpath0 at root
scsibus0 at mpath0: 256 targets
mainbus0 at root
bios0 at mainbus0: date 11/15/07, BIOS32 rev. 0 @ 0xfd330, SMBIOS rev. 2.4 @ 
0xdc010 (28 entries)
bios0: vendor Phoenix Technologies LTD version "V1.24" date 11/15/2007
bios0: Acer Aspire 9420
acpi0 at bios0: rev 0
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC HPET MCFG TCPA SLIC APIC BOOT SSDT SSDT SSDT SSDT 
SSDT
acpi0: wakeup devices LID0(S3) SLPB(S3) HDEF(S3) LANE(S5) PXS5(S4) PXS6(S4) 
USB1(S3) USB2(S3) USB3(S3) USB4(S3) USB7(S3) LANC(S5) MODM(S3)
acpitimer0 at acpi0: 3579545 Hz, 24 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
mtrr: Pentium Pro MTRR support, 8 var ranges, 88 fixed ranges
cpu0: apic clock running at 166MHz
cpu0: mwait min=64, max=64, C-substates=0.2.2.2.2, IBE
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz ("GenuineIntel" 686-class) 1.67 GHz
cpu1: 
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE,NXE,LONG,SSE3,DTES64,MWAIT,DS-CPL,EST,TM2,SSSE3,CX16,xTPR,PDCM,LAHF,PERF,SENSOR
ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
ioapic1 at mainbus0: apid 2 pa 0xfec28000, version ff, 256 pins
acpihpet0 at acpi0: 14318179 Hz
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (PEGP)
acpiprt2 at acpi0: bus 2 (RP01)
acpiprt3 at acpi0: bus 3 (RP02)
acpiprt4 at acpi0: bus 5 (RP03)
acpiprt5 at acpi0: bus -1 (RP04)
acpiprt6 at acpi0: bus -1 (RP05)
acpiprt7 at acpi0: bus -1 (RP06)
acpiprt8 at acpi0: bus 10 (PCIB)
acpiec0 at acpi0
acpicpu0 at acpi0: !C3(100@57 mwait.3@0x30), !C2(500@1 mwait.1@0x10), C1(1000@1 
mwait.1), PSS
acpicpu1 at acpi0: !C3(100@57 mwait.3@0x30), !C2(500@1 mwait.1@0x10), C1(1000@1 
mwait.1), PSS
acpitz0 at acpi0: critical temperature is 96 degC
acpitz1 at acpi0: critical temperature is 111 degC
"*pnp0c14" at acpi0 not configured
acpibtn0 at acpi0: LID0
acpibtn1 at acpi0: SLPB
acpibat0 at acpi0: BAT0 model "BODEN35" serial 32846 type LION oem "4f594e4153"
acpiac0 at acpi0: AC unit online
"PNP0303" at acpi0 not configured
"SYN0302" at acpi0 not configured
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: GFX0
bios0: ROM list: 0xc0000/0xf000 0xcf000/0x1000 0xdc000/0x4000! 0xe0000/0x1800!
cpu0: Enhanced SpeedStep 1663 MHz: speeds: 1667, 1333, 1000 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82945GM Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82945GM PCIE" rev 0x03: apic 1 int 16
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "NVIDIA GeForce 7300 Go" rev 0xa1
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x02: msi
azalia0: codecs: Realtek ALC883, AT&T/Lucent/0x3026, using Realtek ALC883
audio0 at azalia0
ppb1 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x02: apic 1 int 17
pci2 at ppb1 bus 2
re0 at pci2 dev 0 function 0 "Realtek 8168" rev 0x01: RTL8168 2 (0x3800), msi, 
address 00:16:d3:54:71:a0
rgephy0 at re0 phy 7: RTL8169S/8110S/8211 PHY, rev. 2
ppb2 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x02: apic 1 int 16
pci3 at ppb2 bus 3
ppb3 at pci0 dev 28 function 2 "Intel 82801GB PCIE" rev 0x02: apic 1 int 18
pci4 at ppb3 bus 5
wpi0 at pci4 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: msi, MoW2, 
address 00:19:d2:03:42:31
uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x02: apic 1 int 23
uhci1 at pci0 dev 29 function 1 "Intel 82801GB USB" rev 0x02: apic 1 int 19
uhci2 at pci0 dev 29 function 2 "Intel 82801GB USB" rev 0x02: apic 1 int 18
uhci3 at pci0 dev 29 function 3 "Intel 82801GB USB" rev 0x02: apic 1 int 16
ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x02: apic 1 int 23
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 configuration 1 interface 0 "Intel EHCI root hub" rev 2.00/1.00 
addr 1
ppb4 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe2
pci5 at ppb4 bus 10
cbb0 at pci5 dev 6 function 0 "TI PCIXX12 CardBus" rev 0x00: apic 1 int 22, 
CardBus support disabled
"TI PCIXX12 Multimedia Card Reader" rev 0x00 at pci5 dev 6 function 2 not 
configured
sdhc0 at pci5 dev 6 function 3 "TI PCIXX12 SD" rev 0x00: apic 1 int 22
sdhc0: SDHC 1.0, 48 MHz base clock
sdmmc0 at sdhc0: 4-bit
cardslot0 at cbb0 slot 0 flags 0
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x02: PM disabled
pciide0 at pci0 dev 31 function 2 "Intel 82801GBM SATA" rev 0x02: DMA, channel 
0 wired to compatibility, channel 1 wired to compatibility
wd0 at pciide0 channel 0 drive 0: <Hitachi HTS541616J9SA00>
wd0: 16-sector PIO, LBA48, 152627MB, 312581808 sectors
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
atapiscsi0 at pciide0 channel 1 drive 1
scsibus1 at atapiscsi0: 2 targets
cd0 at scsibus1 targ 0 lun 0: <TSSTcorp, CD/DVDW TS-L632D, ac00> ATAPI 5/cdrom 
removable
cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2
ichiic0 at pci0 dev 31 function 3 "Intel 82801GB SMBus" rev 0x02: apic 1 int 19
iic0 at ichiic0
spdmem0 at iic0 addr 0x50: 2GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
spdmem1 at iic0 addr 0x52: 1GB DDR2 SDRAM non-parity PC2-5300CL5 SO-DIMM
usb1 at uhci0: USB revision 1.0
uhub1 at usb1 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4 configuration 1 interface 0 "Intel UHCI root hub" rev 1.00/1.00 
addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5 irq 1 irq 12
pckbd0 at pckbc0 (kbd slot)
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
wsmouse0 at pms0 mux 0
pms0: Synaptics touchpad, firmware 6.2
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
umass0 at uhub0 port 6 configuration 1 interface 0 "Kingston DataTraveler 2.0" 
rev 2.00/1.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd0 at scsibus2 targ 1 lun 0: <Kingston, DataTraveler 2.0, PMAP> SCSI4 0/direct 
removable serial.09511665BE4069AC1ECA
sd0: 15000MB, 512 bytes/sector, 30720000 sectors
ugen0 at uhub0 port 7 "OEM Camera" rev 2.00/1.00 addr 3
vscsi0 at root
scsibus3 at vscsi0: 256 targets
softraid0 at root
scsibus4 at softraid0: 256 targets
root on sd0a (370d48c98775c449.a) swap on sd0b dump on sd0b


-- 
best regards
q#

Reply via email to