Date: Sun, 18 Nov 2007 12:07:44 GMT From: Alexander Shikoff <minotaur@crete.org.ua> To: freebsd-gnats-submit@FreeBSD.org Subject: kern/118107: Kernel panic when accessing a file at NTFS file system Message-ID: <200711181207.lAIC7iIe067153@www.freebsd.org> Resent-Message-ID: <200711181210.lAICA2X7070370@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 118107 >Category: kern >Synopsis: Kernel panic when accessing a file at NTFS file system >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Nov 18 12:10:02 UTC 2007 >Closed-Date: >Last-Modified: >Originator: Alexander Shikoff >Release: 7.0-BETA3 >Organization: >Environment: FreeBSD ksu.crete.local 7.0-BETA3 FreeBSD 7.0-BETA3 #2: Sun Nov 18 13:37:00 EET 2007 root@ksu.crete.local:/usr/obj/usr/src/sys/KSU i386 >Description: I have NTFS partition mounted with mount_ntfs. When I try to copy any file, kernel panic occurs. There is no difference in modes the partition is mounted with: read-only or read-write - the result is kernel panic when copying file: %mount -o ro -t ntfs /dev/ad6s1a /mnt/ntfs %mount /dev/ad0s3a on / (ufs, local) devfs on /dev (devfs, local) /dev/ad0s3d on /usr (ufs, local, soft-updates) /dev/ad0s3f on /usr/home (ufs, local, soft-updates) /dev/ad0s3e on /var (ufs, local, soft-updates) /dev/ad6s1 on /mnt/ntfs (ntfs, local, read-only) %cp minotaur-films.xls ~/ panic: vm_fault: fault on nofault entry, addr: e0d6f000 KDB: stack backtrace: db_trace_self_wrapper(c0722ff8,e63222e8,c0581938,c07213d5,c0797ea0,...) at db_trace_sel f_wrapper+0x26 kdb_backtrace(c07213d5,c0797ea0,c072fc97,e63222f4,e63222f4,...) at kdb_backtrace+0x29 panic(c072fc97,e0d6f000,2,e63223ec,e63223dc,...) at panic+0xaa vm_fault(c1054000,e0d6f000,2,0,e0d6e600,...) at vm_fault+0x175 trap_pfault(c051c545,c410c600,c40bde00,c410c600,c,...) at trap_pfault+0x1e3 trap(e632252c) at trap+0x367 calltrap() at calltrap+0x6 --- trap 0xc, eip = 0xc06daa63, esp = 0xe632256c, ebp = 0xe63225e4 --- generic_bzero(e6322608,d7b46aec,4000,e6322614,c051ee77,...) at generic_bzero+0xf VOP_STRATEGY_APV(c0755e20,e6322608,c077eaa0,c410a880,d7b46aec,...) at VOP_STRATEGY_APV+ 0x4d ntfs_bufstrategy(c410a940,d7b46aec,2,0,0,...) at ntfs_bufstrategy+0x2e vnode_pager_generic_getpages(c410a880,e63228b4,2020071118 13:01:15 Hangup (0:05:48) 00,0,e6322760,...) at vnode_pager_generic_getpages+0x1766 vop_stdgetpages(e632277c,e63227a4,c06a448e,c0755e20,e632277c,...) at vop_stdgetpages+0x 29 VOP_GETPAGES_APV(c0755e20,e632277c,c1128328,4e,e6322790,...) at VOP_GETPAGES_APV+0x45 vnode_pager_getpages(c1027744,e63228b4,2,0,e632287c,...) at vnode_pager_getpages+0xe7 vm_fault(c3ab7d98,281bf000,1,0,1000,...) at vm_fault+0xf94 trap_pfault(6,0,c3dc8800,c3de2500,c,...) at trap_pfault+0x132 trap(e63229e8) at trap+0x367 calltrap() at calltrap+0x6 --- trap 0xc, eip = 0xc06dac36, esp = 0xe6322a28, ebp = 0xe6322a60 --- generic_copyin(d8a39000,1600,e6322c60,1600,c3ed3900,...) at generic_copyin+0x32 ffs_write(e6322bc4,e6322b40,c0674007,0,3002,...) at ffs_write+0x51a VOP_WRITE_APV(c076eee0,e6322bc4,c3ed5c60,c0727c91,242,...) at VOP_WRITE_APV+0xb7 vn_write(c3e08510,e6322c60,c3ed3900,0,c3ed5c60,...) at vn_write+0x242 dofilewrite(e6322c60,ffffffff,ffffffff,0,c3e08510,...) at dofilewrite+0x8e kern_writev(c3ed5c60,4,e6322c60,281bf000,1600,...) at kern_writev+0x52 write(c3ed5c60,e6322cfc,c,c3ed5c60,e6322d2c,...) at write+0x4f syscall(e6322d38) at syscall+0x30d Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (4, FreeBSD ELF32, write), eip = 0x2814cd0b, esp = 0xbfbfeb6c, ebp = 0xbfbf ebd8 --- KDB: enter: panic [thread pid 712 tid 100070 ] Stopped at kdb_enter+0x32: leave db> bt Tracing pid 712 tid 100070 td 0xc3ed5c60 kdb_enter(c0721459,c0797ea0,c072fc97,e63222f4,e63222f4,...) at kdb_enter+0x32 panic(c072fc97,e0d6f000,2,e63223ec,e63223dc,...) at panic+0xc4 vm_fault(c1054000,e0d6f000,2,0,e0d6e600,...) at vm_fault+0x175 trap_pfault(c051c545,c410c600,c40bde00,c410c600,c,...) at trap_pfault+0x1e3 trap(e632252c) at trap+0x367 calltrap() at calltrap+0x6 --- trap 0xc, eip = 0xc06daa63, esp = 0xe632256c, ebp = 0xe63225e4 --- generic_bzero(e6322608,d7b46aec,4000,e6322614,c051ee77,...) at generic_bzero+0xf VOP_STRATEGY_APV(c0755e20,e6322608,c077eaa0,c410a880,d7b46aec,...) at VOP_STRATEGY_APV+ 0x4d ntfs_bufstrategy(c410a940,d7b46aec,2,0,0,...) at ntfs_bufstrategy+0x2e vnode_pager_generic_getpages(c410a880,e63228b4,2000,0,e6322760,...) at vnode_pager_gene ric_getpages+0x1766 vop_stdgetpages(e632277c,e63227a4,c06a448e,c0755e20,e632277c,...) at vop_stdgetpages+0x 29 VOP_GETPAGES_APV(c0755e20,e632277c,c1128328,4e,e6322790,...) at VOP_GETPAGES_APV+0x45 vnode_pager_getpages(c1027744,e63228b4,2,0,e632287c,...) at vnode_pager_getpages+0xe7 vm_fault(c3ab7d98,281bf000,1,0,1000,...) at vm_fault+0xf94 trap_pfault(6,0,c3dc8800,c3de2500,c,...) at trap_pfault+0x132 trap(e63229e8) at trap+0x367 calltrap() at calltrap+0x6 --- trap 0xc, eip = 0xc06dac36, esp = 0xe6322a28, ebp = 0xe6322a60 --- --More-- generic_copyin(d8a39000,1600,e6322c60,1600,c3ed3900,...) at generic_cop yin+0x32 ffs_write(e6322bc4,e6322b40,c0674007,0,3002,...) at ffs_write+0x51a VOP_WRITE_APV(c076eee0,e6322bc4,c3ed5c60,c0727c91,242,...) at VOP_WRITE_APV+0xb7 vn_write(c3e08510,e6322c60,c3ed3900,0,c3ed5c60,...) at vn_write+0x242 dofilewrite(e6322c60,ffffffff,ffffffff,0,c3e08510,...) at dofilewrite+0x8e kern_writev(c3ed5c60,4,e6322c60,281bf000,1600,...) at kern_writev+0x52 write(c3ed5c60,e6322cfc,c,c3ed5c60,e6322d2c,...) at write+0x4f syscall(e6322d38) at syscall+0x30d Xint0x80_syscall() at Xint0x80_syscall+0x20 --- syscall (4, FreeBSD ELF32, write), eip = 0x2814cd0b, esp = 0xbfbfeb6c, ebp = 0xbfbf ebd8 --- db> >How-To-Repeat: 1. Mount any NTFS-partition with mount_ntfs or 'mount -o ro -t ntfs' 2. Try to copy any file to UFS partition >Fix: 6.2-RELEASE has no such issue. As a workaround: you can use cat and stdout-redirection to copy a file: % cat /mnt/ntfs/minotaur-films.xls > ~/films.xls >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200711181207.lAIC7iIe067153>