NetBSD Problem Report #44252

From www@NetBSD.org  Sun Dec 19 21:11:42 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id E731C63B883
	for <gnats-bugs@gnats.NetBSD.org>; Sun, 19 Dec 2010 21:11:41 +0000 (UTC)
Message-Id: <20101219211141.9EC0763B87A@www.NetBSD.org>
Date: Sun, 19 Dec 2010 21:11:41 +0000 (UTC)
From: skwyrmin@sci.fi
Reply-To: skwyrmin@sci.fi
To: gnats-bugs@NetBSD.org
Subject: umounting ntfs-usb-disk after timeouts crashes system
X-Send-Pr-Version: www-1.0

>Number:         44252
>Category:       kern
>Synopsis:       umounting ntfs-usb-disk after timeouts crashes system
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          feedback
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 19 21:15:00 +0000 2010
>Closed-Date:    
>Last-Modified:  Tue Jan 23 21:54:25 +0000 2024
>Originator:     skwyrmin
>Release:        5.0.2
>Organization:
>Environment:
NetBSD 5.0.2 NetBSD 5.0.2 (GENERIC) #0: Sat Feb 6 17:53:27 UTC 2010 buil
ds@b7.netbsd.org:/home/builds/ab/netbsd-5-0-2-RELEASE/i386/201002061851Z-obj/hom
e/builds/ab/netbsd-5-0-2-RELEASE/src/sys/arch/i386/compile/GENERIC i386
>Description:
After I/O-errors and/or timeouts with ntfs-3g (fuse) -mounted usb-disk, umount results as instant hard-reset. 
device: umass0: Iomega External HD, rev 2.00/0.00, addr 5
sd0 at scsibus0 target 0 lun 0: <SAMSUNG, HD103SI, > disk fixed sd0: 931 GB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 1953525168 sectors

system related:
usb0 at uhci0: USB revision 1.0
cpu0 at mainbus0 apid 0: Intel 686-class, 996MHz, id 0 x86a

version: ntfs-3g 1.1120

error messages prior to crash:
/netbsd: umass0: at uhub1 port 2 (addr 5) disconnected
/netbsd: sd0(umass0:0:0:0): generic HBA error
/netbsd: sd0: cache synchronization failed
/netbsd: sd0: detached
ntfs-3g[1932]: Error reading $Mft record(s): Input/output error
ntfs-3g[1932]: ntfs_mft_record_read failed: Input/output error
ntfs-3g[1932]: ntfs_attr_pread: ntfs_pread failed: Input/output error

messages are all prior to umount, crash happens with no logs, instant reset after pressing enter.
Umounting msdos-usbstick after timeouts works out fine.


>How-To-Repeat:

>Fix:
There is a patch for FreeBSD for similar symptoms, but I'm unable to find it again to include it here.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->kern-bug-people
Responsible-Changed-By: dholland@NetBSD.org
Responsible-Changed-When: Wed, 29 Dec 2010 01:38:48 +0000
Responsible-Changed-Why:
Problem is in the USB drivers, not fuse, so it's not a pkgsrc issue.


From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: kern/44252: umounting ntfs-usb-disk after timeouts crashes system
Date: Wed, 29 Dec 2010 01:43:29 +0000

  > error messages prior to crash:
  > /netbsd: umass0: at uhub1 port 2 (addr 5) disconnected
  > /netbsd: sd0(umass0:0:0:0): generic HBA error
  > /netbsd: sd0: cache synchronization failed
  > /netbsd: sd0: detached
  > ntfs-3g[1932]: Error reading $Mft record(s): Input/output error
  > ntfs-3g[1932]: ntfs_mft_record_read failed: Input/output error
  > ntfs-3g[1932]: ntfs_attr_pread: ntfs_pread failed: Input/output error
  > 
  > messages are all prior to umount, crash happens with no logs,
  > instant reset after pressing enter.

 Is/was there a panic message on the console? Ordinarily the system
 won't reboot upon pressing enter like that unless there's been an
 explicit panic.

 If you can, please try 5.1 -- I think at least one source of "generic
 HBA error" problems has been fixed.

  > There is a patch for FreeBSD for similar symptoms, but I'm unable
  > to find it again to include it here.

 Probably won't do us much good, but if you find it please send the
 information in.

 -- 
 David A. Holland
 dholland@netbsd.org

State-Changed-From-To: open->feedback
State-Changed-By: jdolecek@NetBSD.org
State-Changed-When: Tue, 23 Jan 2024 21:54:25 +0000
State-Changed-Why:
Is this still problem with newer ntfs-3g?


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: gnats-precook-prs,v 1.4 2018/12/21 14:20:20 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.