From owner-freebsd-bugs@freebsd.org Tue Nov 17 20:49:02 2015 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C65C8A314CC for ; Tue, 17 Nov 2015 20:49:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B1AF91586 for ; Tue, 17 Nov 2015 20:49:02 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id tAHKn2vW052843 for ; Tue, 17 Nov 2015 20:49:02 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 204643] [msdosfs] [panic] Crash while accessing files with large, non-english names Date: Tue, 17 Nov 2015 20:49:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 9.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: gordon778@mail.ru X-Bugzilla-Status: New X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Nov 2015 20:49:03 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=204643 Bug ID: 204643 Summary: [msdosfs] [panic] Crash while accessing files with large, non-english names Product: Base System Version: 9.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: gordon778@mail.ru Created attachment 163261 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=163261&action=edit Kernel config file How-to-repeat: 1. Create file with large name, non-english (130 symbols enough) on msdos fat disk. This must be done under ms windows (FreeBSD does not allow shot in your leg and create file with name > 127 non-english symbols on fat fs). Under the windows long non-english filenames (127+ symbols) is correct and can be easily and accessed. 2. Mount disk on FreeBSD system like "mount_msdosfs -o longnames -D cp1251 -L ru_RU.UTF-8 /dev/daX /mnt" (or use the your language settings in -D and -L) 3. Try "ls /mnt/directory-with-large-name" You get "panic: stack overflow detected; backtrace may be corrupted" I guess this is the same bug #141897 And, i guess this happening because locale uses multibyte encoding (UTF-8). But utf-8 the only way and this is the future. Unfortunately fat file systems are widespread, and i from time to time encounter with this. Kernel config in attachment. Trace: #0 doadump (textdump=) at pcpu.h:235 #1 0xffffffff805e1b6f in kern_reboot (howto=260) at /usr/src/sys/kern/kern_shutdown.c:454 #2 0xffffffff805e1fb7 in panic (fmt=) at /usr/src/sys/kern/kern_shutdown.c:642 #3 0xffffffff8060acc2 in __stack_chk_fail () at /usr/src/sys/kern/stack_protector.c:17 #4 0xffffffff804f3982 in msdosfs_readdir (ap=0xffffff81a3edfaa0) at /usr/src/sys/fs/msdosfs/msdosfs_vnops.c:1817 #5 0xffffffff80894c10 in VOP_READDIR_APV (vop=, a=) at vnode_if.c:1793 #6 0xffffffff80686ec7 in kern_getdirentries (td=0xfffffe001724d000, fd=, buf=0x8010ab000
, count=, basep=0xffffff81a3edfb10) at vnode_if.h:758 #7 0xffffffff80686c1b in sys_getdirentries (td=0x0, uap=0xffffff81a3edfbc0) at /usr/src/sys/kern/vfs_syscalls.c:4145 #8 0xffffffff808401b9 in amd64_syscall (td=0xfffffe001724d000, traced=0) at subr_syscall.c:135 #9 0xffffffff8082978b in Xfast_syscall () at /usr/src/sys/amd64/amd64/exception.S:391 #10 0x0000000800d032ec in ?? () Previous frame inner to this frame (corrupt stack?) Current language: auto; currently minimal uname: FreeBSD HP635 9.3-RELEASE FreeBSD 9.3-RELEASE #5: Tue Nov 17 20:24:39 MSK 2015 Freeman@thanatos:/usr/obj/usr/src/sys/E300 amd64 dmesg: Copyright (c) 1992-2014 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 9.3-RELEASE #5: Tue Nov 17 20:24:39 MSK 2015 Freeman@thanatos:/usr/obj/usr/src/sys/E300 amd64 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 info: [drm] Initialized drm 1.1.0 20060810 CPU: AMD E-300 APU with Radeon(tm) HD Graphics (1297.26-MHz K8-class CPU) Origin = "AuthenticAMD" Id = 0x500f20 Family = 0x14 Model = 0x2 Stepping = 0 Features=0x178bfbff Features2=0x802209 AMD Features=0x2e500800 AMD Features2=0x35ff TSC: P-state invariant, performance statistics real memory = 6442450944 (6144 MB) avail memory = 5767602176 (5500 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 2 core(s) cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 ioapic0: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard kbd1 at kbdmux0 acpi0: on motherboard acpi0: Power Button (fixed) cpu0: on acpi0 cpu1: on acpi0 hpet0: iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 Event timer "HPET" frequency 14318180 Hz quality 550 Event timer "HPET1" frequency 14318180 Hz quality 450 atrtc0: port 0x70-0x71 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: port 0x40-0x43 on acpi0 Timecounter "i8254" frequency 1193182 Hz quality 0 Event timer "i8254" frequency 1193182 Hz quality 100 Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 acpi_timer0: <32-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 acpi_ec0: port 0x62,0x66 on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 vgapci0: port 0x4000-0x40ff mem 0xe0000000-0xefffffff,0xf0400000-0xf043ffff irq 18 at device 1.0 on pci0 acpi_video0: on vgapci0 drmn0: on vgapci0 info: [drm] MSI enabled 1 message(s) info: [drm] RADEON_IS_PCIE info: [drm] initializing kernel modesetting (PALM 0x1002:0x9802 0x103C:0x3577). info: [drm] register mmio base: 0xF0400000 info: [drm] register mmio size: 262144 info: [drm] radeon_atrm_get_bios: ===> Try ATRM... info: [drm] radeon_atrm_get_bios: IGP card detected, skipping this method... info: [drm] radeon_acpi_vfct_bios: ===> Try VFCT... info: [drm] radeon_acpi_vfct_bios: Get "VFCT" ACPI table info: [drm] radeon_acpi_vfct_bios: Failed to get "VFCT" table: AE_NOT_FOUND info: [drm] igp_read_bios_from_vram: ===> Try IGP's VRAM... info: [drm] igp_read_bios_from_vram: VRAM base address: 0xe0000000 info: [drm] igp_read_bios_from_vram: Map address: 0xfffffe00e0000000 (262144 bytes) info: [drm] igp_read_bios_from_vram: Incorrect BIOS signature: 0x0000 info: [drm] radeon_read_bios: ===> Try PCI Expansion ROM... info: [drm] radeon_read_bios: Map address: 0xfffffe00000c0000 (131072 bytes) info: [drm] ATOM BIOS: HP drmn0: info: VRAM: 384M 0x0000000000000000 - 0x0000000017FFFFFF (384M used) drmn0: info: GTT: 512M 0x0000000018000000 - 0x0000000037FFFFFF info: [drm] Detected VRAM RAM=384M, BAR=256M info: [drm] RAM width 32bits DDR [TTM] Zone kernel: Available graphics memory: 2930450 kiB [TTM] Zone dma32: Available graphics memory: 2097152 kiB [TTM] Initializing pool allocator info: [drm] radeon: 384M of VRAM memory ready info: [drm] radeon: 512M of GTT memory ready. info: [drm] Supports vblank timestamp caching Rev 1 (10.10.2010). info: [drm] Driver supports precise vblank timestamp query. info: [drm] radeon: irq initialized. info: [drm] GART: num cpu pages 131072, num gpu pages 131072 info: [drm] Loading PALM Microcode info: [drm] PCIE GART of 512M enabled (table at 0x0000000000040000). drmn0: info: WB enabled drmn0: info: fence driver on ring 0 use gpu addr 0x0000000018000c00 and cpu addr 0x0xfffffe0002ec5c00 drmn0: info: fence driver on ring 3 use gpu addr 0x0000000018000c0c and cpu addr 0x0xfffffe0002ec5c0c info: [drm] ring test on 0 succeeded in 1 usecs info: [drm] ring test on 3 succeeded in 1 usecs info: [drm] ib test on ring 0 succeeded in 0 usecs info: [drm] ib test on ring 3 succeeded in 0 usecs info: [drm] radeon_device_init: Taking over the fictitious range 0xe0000000-0xf0000000 iicbus0: on iicbb0 addr 0xff iic0: on iicbus0 iicbus1: on iicbb1 addr 0x0 iic1: on iicbus1 iicbus2: on iicbb2 addr 0x0 iic2: on iicbus2 iicbus3: on iicbb3 addr 0x0 iic3: on iicbus3 iicbus4: on iicbb4 addr 0x0 iic4: on iicbus4 iicbus5: on iicbb5 addr 0x0 iic5: on iicbus5 iicbus6: on iicbb6 addr 0x0 iic6: on iicbus6 iicbus7: on iicbb7 addr 0x0 iic7: on iicbus7 info: [drm] Radeon Display Connectors info: [drm] Connector 0: info: [drm] LVDS-1 info: [drm] HPD1 info: [drm] DDC: 0x6430 0x6430 0x6434 0x6434 0x6438 0x6438 0x643c 0x643c info: [drm] Encoders: info: [drm] LCD1: INTERNAL_UNIPHY info: [drm] Connector 1: info: [drm] HDMI-A-1 info: [drm] HPD2 info: [drm] DDC: 0x6440 0x6440 0x6444 0x6444 0x6448 0x6448 0x644c 0x644c info: [drm] Encoders: info: [drm] DFP1: INTERNAL_UNIPHY info: [drm] Connector 2: info: [drm] VGA-1 info: [drm] DDC: 0x64d8 0x64d8 0x64dc 0x64dc 0x64e0 0x64e0 0x64e4 0x64e4 info: [drm] Encoders: info: [drm] CRT1: INTERNAL_KLDSCP_DAC1 info: [drm] Internal thermal controller without fan control info: [drm] radeon: power management initialized info: [drm] fb mappable at 0xE0142000 info: [drm] vram apper at 0xE0000000 info: [drm] size 4325376 info: [drm] fb depth is 24 info: [drm] pitch is 5632 fbd0 on drmn0 vt_allocate: Replace existing VT driver. error: [drm:pid0:radeon_acpi_init] *ERROR* Cannot find a backlight controller info: [drm] Initialized radeon 2.29.0 20080528 vgapci0: Boot video device hdac0: mem 0xf0444000-0xf0447fff irq 19 at device 1.1 on pci0 ahci0: port 0x4118-0x411f,0x4124-0x4127,0x4110-0x4117,0x4120-0x4123,0x4100-0x410f mem 0xf044d000-0xf044d3ff irq 19 at device 17.0 on pci0 ahci0: AHCI v1.20 with 2 6Gbps ports, Port Multiplier supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ohci0: mem 0xf044c000-0xf044cfff irq 18 at device 18.0 on pci0 usbus0 on ohci0 ehci0: mem 0xf044b000-0xf044b0ff irq 17 at device 18.2 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 hdac1: mem 0xf0440000-0xf0443fff irq 16 at device 20.2 on pci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib1: at device 20.4 on pci0 pci1: on pcib1 ohci1: mem 0xf044a000-0xf044afff irq 18 at device 20.5 on pci0 usbus2 on ohci1 pcib2: at device 21.0 on pci0 pci2: on pcib2 pci2: at device 0.0 (no driver attached) pcib3: at device 21.1 on pci0 pci6: on pcib3 re0: port 0x2000-0x20ff mem 0xf0104000-0xf0104fff,0xf0100000-0xf0103fff irq 21 at device 0.0 on pci6 re0: Using 1 MSI-X message re0: ASPM disabled re0: Chip rev. 0x40800000 re0: MAC rev. 0x00200000 miibus0: on re0 rlphy0: PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow re0: Ethernet address: ac:16:2d:53:99:72 pcib4: at device 21.3 on pci0 pci7: on pcib4 ath0: mem 0xf0200000-0xf020ffff irq 23 at device 0.0 on pci7 [ath] AR9285E_20 detected; using XE TX gain tables ath0: AR9285 mac 192.2 RF5133 phy 14.0 ohci2: mem 0xf0449000-0xf0449fff irq 18 at device 22.0 on pci0 usbus3 on ohci2 ehci1: mem 0xf0448000-0xf04480ff irq 17 at device 22.2 on pci0 usbus4: EHCI version 1.0 usbus4 on ehci1 acpi_wmi0: on acpi0 acpi_hp0: on acpi_wmi0 acpi_hp0: HP event GUID detected, installing event handler acpi_acad0: on acpi0 acpi_lid0: on acpi0 acpi_button0: on acpi0 acpi_tz0: on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Generic PS/2 mouse, device ID 0 battery0: on acpi0 amdsbwd0: at iomem 0xfec000f0-0xfec000f3,0xfec000f4-0xfec000f7 on isa0 ctl: CAM Target Layer loaded acpi_throttle0: on cpu0 hwpstate0: on cpu0 Timecounters tick every 1.000 msec ipfw2 initialized, divert loadable, nat loadable, default to deny, logging disabled hdacc0: at cad 0 on hdac0 hdaa0: at nid 1 on hdacc0 pcm0: at nid 3 on hdaa0 hdacc1: at cad 0 on hdac1 hdaa1: at nid 1 on hdacc1 pcm1: at nid 20,33 and 24 on hdaa1 pcm2: at nid 18 on hdaa1 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 12Mbps Full Speed USB v1.0 usbus4: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 ugen4.1: at usbus4 uhub4: on usbus4 ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ATA-8 SATA 2.x device ada0: Serial Number Y1J9C50MT ada0: 300.000MB/s transfers (SATA 2.x, UDMA5, PIO 8192bytes) ada0: Command Queueing enabled ada0: 305245MB (625142448 512 byte sectors: 16H 63S/T 16383C) ada0: Previously was known as ad4 SMP: AP CPU #1 Launched! Timecounter "TSC" frequency 1297262167 Hz quality 800 cd0 at ahcich1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: Serial Number 696212041341 cd0: 150.000MB/s transfers (SATA 1.x, UDMA5, ATAPI 12bytes, PIO 8192bytes) cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed uhub2: 2 ports with 2 removable, self powered uhub3: 4 ports with 4 removable, self powered uhub0: 5 ports with 5 removable, self powered GEOM_JOURNAL: Journal 4122145597: ada0s1a contains data. GEOM_JOURNAL: Journal 4122145597: ada0s1a contains journal. GEOM_JOURNAL: Journal ada0s1a consistent. GEOM_JOURNAL: Journal 3177482727: ada0s1d contains data. GEOM_JOURNAL: Journal 3177482727: ada0s1d contains journal. GEOM_JOURNAL: Journal 1284059668: ada0s1e contains data. GEOM_JOURNAL: Journal 1284059668: ada0s1e contains journal. GEOM_JOURNAL: Journal 3655574912: ada0s1f contains data. GEOM_JOURNAL: Journal 3655574912: ada0s1f contains journal. GEOM_JOURNAL: Journal ada0s1e consistent. GEOM_JOURNAL: Journal ada0s1d consistent. GEOM_JOURNAL: Journal ada0s1f consistent. ugen2.2: at usbus2 Trying to mount root from ufs:/dev/ada0s1a.journal [rw,async]... WARNING: / was not properly dismounted uhub4: 4 ports with 4 removable, self powered uhub1: 5 ports with 5 removable, self powered ugen4.2: at usbus4 ugen0.2: at usbus0 ums0: on usbus0 ums0: 3 buttons and [XYZ] coordinates ID=0 wlan0: Ethernet address: 9c:b7:0d:f7:0e:2e ubt0: on usbus2 WARNING: attempt to domain_add(bluetooth) after domainfinalize() WARNING: attempt to domain_add(netgraph) after domainfinalize() ubt0: ubt_bulk_read_callback:934: bulk-in transfer failed: USB_ERR_IOERROR ubt0: ubt_intr_read_callback:834: interrupt transfer failed: USB_ERR_IOERROR --cut off lot of the same errors-- ubt0: ubt_bulk_read_callback:934: bulk-in transfer failed: USB_ERR_IOERROR ubt0: ubt_intr_read_callback:834: interrupt transfer failed: USB_ERR_IOERROR ng_hci_process_command_timeout: ubt0hci - unable to complete HCI command OGF=0x3, OCF=0x3. Timeout ubt0: ubt_bulk_read_callback:934: bulk-in transfer failed: USB_ERR_IOERROR ubt0: ubt_intr_read_callback:834: interrupt transfer failed: USB_ERR_IOERROR --cut off lot of the same errors-- ubt0: ubt_bulk_read_callback:934: bulk-in transfer failed: USB_ERR_IOERROR ubt0: ubt_intr_read_callback:834: interrupt transfer failed: USB_ERR_IOERROR fuse-freebsd: version 0.4.4, FUSE ABI 7.8 Thank you. -- You are receiving this mail because: You are the assignee for the bug.