From owner-freebsd-current@FreeBSD.ORG Mon Jun 9 03:39:35 2008 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7A972106567F for ; Mon, 9 Jun 2008 03:39:35 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.154]) by mx1.freebsd.org (Postfix) with ESMTP id C84D78FC0C for ; Mon, 9 Jun 2008 03:39:34 +0000 (UTC) (envelope-from yanefbsd@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so1634829fgb.35 for ; Sun, 08 Jun 2008 20:39:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=M/KtluN0fU0amFzsSro39vjHraxTW/C0+XLPGiCsduY=; b=nfyNVkcMuFeFKTu8ATSamcOpLjCxycBTj1vOzFBd/kUw22XaqLshrL2jLHgw0B85H9 iRf3UyOrV4b3Zim4sk3x+YwS63obOtApxi1MdMlMIAeVUFX5UuXxlJXqSQDLRqkoJ5hq KF6DMsfJcn0Mb3XDh1kkTqT0T+9xgNx0OzwxQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=BE1QDFDQdNuintN30c2AAsfVUxWSywId8Q9+RVADR6GY7tajdplVWL3L5eS993/S4N xPCLejoKt1BnCibFKTwPhA8pp9tuK7M2VHDPDs3Gcpb3sx/OLz+DNYOygG0PiMcbJ9/+ Nr04c/bru1tEPD7Bilar/RyouI9KA4EyFQXW0= Received: by 10.86.100.19 with SMTP id x19mr3677285fgb.34.1212982773510; Sun, 08 Jun 2008 20:39:33 -0700 (PDT) Received: by 10.86.26.8 with HTTP; Sun, 8 Jun 2008 20:39:33 -0700 (PDT) Message-ID: <7d6fde3d0806082039r2a49ab77lf6f92b3699c12c7e@mail.gmail.com> Date: Sun, 8 Jun 2008 20:39:33 -0700 From: "Garrett Cooper" To: current@freebsd.org In-Reply-To: <7d6fde3d0806081931h5df7b71dkdd4d6e3e2d144ff2@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7d6fde3d0806081931h5df7b71dkdd4d6e3e2d144ff2@mail.gmail.com> Cc: Subject: Re: Hard lockup with recent CURRENT when using mount_smbfs -- recursive lock message X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2008 03:39:35 -0000 On Sun, Jun 8, 2008 at 7:31 PM, Garrett Cooper wrote: > Hi guys, > First hard lockup in a while. > Just synced current to latest sources yesterday after having to > apply some patches to get things to cleanly compile. PR's posted at > the bottom of the message. > When I run the following command: > > optimus# mount_smbfs -I 192.168.10.47 -W WORKGROUP > //gcooper@orangebox/c$ /mnt/smbfs/ > Password: > > My system just locked up. Nothing else that I can say other > than it says the following on the console (and it refuses to let me > login / interrupt the processor): > > smb_co_lock: recursive lock for object 1 > > The kernel hasn't panicked and I don't have any means of > accessing the machine, so I can't capture output from the kernel right > now :(. > > I'll post my kernel / system stats in a second once I reboot > the machine. > > -Garrett > > "Compile patches" PR's: > 1. kern/124334 > 2. bin/124342 > 3. misc/124385 > This issue is _definitely_ reproducible using the latest current and my patches on my system. I'm not sure whether or not mount_smbfs and its shims are MPSAFE... Snippets of my system info (dmesg + kernel config) is currently available at the bottom of the email (sorry, I don't have webspace that I can post to right now). Thanks, -Garrett # ----- DMESG OUTPUT ---- Copyright (c) 1992-2008 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 8.0-CURRENT #0: Fri Jun 6 01:36:23 PDT 2008 gcooper@optimus:/usr/obj/usr/src/sys/OPTIMUS Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2672.74-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0x6f6 Stepping = 6 Features=0xbfebfbff Features2=0xe3bd AMD Features=0x20100000 AMD Features2=0x1 Cores per package: 2 real memory = 2146959360 (2047 MB) avail memory = 2097950720 (2000 MB) ACPI APIC Table: ioapic0 irqs 0-23 on motherboard netsmb_dev: loaded kbd1 at kbdmux0 acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) acpi0: reservation of 0, a0000 (3) failed acpi0: reservation of 100000, 7ff00000 (3) failed Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: irq 16 at device 1.0 on pci0 pci1: on pcib1 vgapci0: mem 0xfd000000-0xfdffffff,0xd0000000-0xdfffffff,0xfc000000-0xfcffffff irq 16 at device 0.0 on pci1 uhci0: port 0xb800-0xb81f irq 16 at device 26.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xb880-0xb89f irq 21 at device 26.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xbc00-0xbc1f irq 18 at device 26.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xfbfffc00-0xfbffffff irq 18 at device 26.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered pcib2: irq 17 at device 28.0 on pci0 pci4: on pcib2 pcib3: irq 17 at device 28.4 on pci0 pci3: on pcib3 atapci0: port 0xdc00-0xdc07,0xd880-0xd883,0xd800-0xd807,0xd480-0xd483,0xd400-0xd40f mem 0xfeafe000-0xfeafffff irq 16 at device 0.0 on pci3 atapci0: [ITHREAD] atapci0: AHCI called from vendor specific driver atapci0: AHCI Version 01.00 controller with 2 ports PM supported ata2: on atapci0 ata2: [ITHREAD] ata3: on atapci0 ata3: [ITHREAD] ata4: on atapci0 ata4: [ITHREAD] pcib4: irq 16 at device 28.5 on pci0 pci2: on pcib4 mskc0: port 0xc800-0xc8ff mem 0xfe9fc000-0xfe9fffff irq 17 at device 0.0 on pci2 msk0: on mskc0 msk0: Ethernet address: 00:1b:fc:45:9b:5c miibus0: on msk0 e1000phy0: PHY 0 on miibus0 e1000phy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX-FDX, auto mskc0: [FILTER] uhci3: port 0xb080-0xb09f irq 23 at device 29.0 on pci0 uhci3: [GIANT-LOCKED] uhci3: [ITHREAD] usb4: on uhci3 usb4: USB revision 1.0 uhub4: on usb4 uhub4: 2 ports with 2 removable, self powered uhci4: port 0xb400-0xb41f irq 19 at device 29.1 on pci0 uhci4: [GIANT-LOCKED] uhci4: [ITHREAD] usb5: on uhci4 usb5: USB revision 1.0 uhub5: on usb5 uhub5: 2 ports with 2 removable, self powered uhci5: port 0xb480-0xb49f irq 18 at device 29.2 on pci0 uhci5: [GIANT-LOCKED] uhci5: [ITHREAD] usb6: on uhci5 usb6: USB revision 1.0 uhub6: on usb6 uhub6: 2 ports with 2 removable, self powered ehci1: mem 0xfbfff800-0xfbfffbff irq 23 at device 29.7 on pci0 ehci1: [GIANT-LOCKED] ehci1: [ITHREAD] usb7: EHCI version 1.0 usb7: companion controllers, 2 ports each: usb4 usb5 usb6 usb7: on ehci1 usb7: USB revision 2.0 uhub7: on usb7 uhub7: 6 ports with 6 removable, self powered pcib5: at device 30.0 on pci0 pci5: on pcib5 em0: port 0xec00-0xec3f mem 0xfebe0000-0xfebfffff,0xfebc0000-0xfebdffff irq 17 at device 1.0 on pci5 em0: [FILTER] em0: Ethernet address: 00:1b:21:09:6a:25 fwohci0: mem 0xfeb9f000-0xfeb9ffff irq 19 at device 3.0 on pci5 fwohci0: [FILTER] fwohci0: OHCI version 1.0 (ROM=1) fwohci0: No. of Isochronous channels is 8. fwohci0: EUI64 00:11:d8:00:01:47:6f:7f fwohci0: Phy 1394a available S400, 2 ports. fwohci0: Link S400, max_rec 2048 bytes. firewire0: on fwohci0 sbp0: on firewire0 fwohci0: Initiate bus reset fwohci0: BUS reset fwohci0: node_id=0xc800ffc0, gen=1, CYCLEMASTER mode isab0: at device 31.0 on pci0 isa0: on isab0 atapci1: port 0xac00-0xac07,0xa880-0xa883,0xa800-0xa807,0xa480-0xa483,0xa400-0xa41f mem 0xfbffe800-0xfbffefff irq 22 at device 31.2 on pci0 atapci1: [ITHREAD] atapci1: AHCI called from vendor specific driver atapci1: AHCI Version 01.20 controller with 6 ports PM supported ata5: on atapci1 ata5: [ITHREAD] ata6: on atapci1 ata6: [ITHREAD] ata7: on atapci1 ata7: [ITHREAD] ata8: on atapci1 ata8: [ITHREAD] ata9: on atapci1 ata9: [ITHREAD] ata10: on atapci1 ata10: [ITHREAD] pci0: at device 31.3 (no driver attached) acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 cpu0: on acpi0 acpi_button0: on acpi0 atrtc0: port 0x70-0x71 irq 8 on acpi0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] pmtimer0 on isa0 orm0: at iomem 0xce800-0xcf7ff pnpid ORM0000 on isa0 ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0 ata0: [ITHREAD] ata1 at port 0x170-0x177,0x376 irq 15 on isa0 ata1: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 ugen0: on uhub4 ukbd0: on uhub6 kbd2 at ukbd0 Timecounter "TSC" frequency 2672741280 Hz quality 800 Timecounters tick every 1.000 msec firewire0: 1 nodes, maxhop <= 0, cable IRM = 0 (me) firewire0: bus manager 0 (me) acd0: DVDR at ata4-master UDMA33 ad10: 76293MB at ata5-master SATA150 ad12: 715404MB at ata6-master SATA300 ad14: 715404MB at ata7-master SATA300 ad16: 715404MB at ata8-master SATA300 ad18: 715404MB at ata9-master SATA300 ad20: 715404MB at ata10-master SATA300 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 acd0: FAILURE - INQUIRY ILLEGAL REQUEST asc=0x24 ascq=0x00 ar0: 2861610MB status: READY ar0: disk0 READY using ad12 at ata6-master ar0: disk1 READY using ad14 at ata7-master ar0: disk2 READY using ad16 at ata8-master ar0: disk3 READY using ad18 at ata9-master ar0: disk4 READY using ad20 at ata10-master cd0 at ata4 bus 0 target 0 lun 0 cd0: Removable CD-ROM SCSI-0 device cd0: 33.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present - tray closed Trying to mount root from ufs:/dev/ad10s1a # ---- kernel config (comments stripped) ---- cpu I686_CPU ident OPTIMUS makeoptions DEBUG=-g options SCHED_ULE options PREEMPTION options INET options FFS options SOFTUPDATES options UFS_ACL options UFS_DIRHASH options MD_ROOT options NFSCLIENT options NFSSERVER options NFS_ROOT options MSDOSFS options CD9660 options PROCFS options PSEUDOFS options COMPAT_43 options COMPAT_FREEBSD4 options COMPAT_FREEBSD5 options COMPAT_FREEBSD6 options KTRACE options SYSVSHM options SYSVMSG options SYSVSEM options _KPOSIX_PRIORITY_SCHEDULING options KBD_INSTALL_CDEV options NTFS options NETSMB options SMBFS options LIBMCHAIN options LIBICONV device apic device acpi device eisa device pci device ata device atadisk device ataraid device atapicd options ATA_STATIC_ID device iir device aac device aacp device atapicam device scbus device ch device da device cd device pass device atkbdc device atkbd device psm device kbdmux device vga device splash options VESA device sc device agp device pmtimer device miibus device em device msk device loop device random device ether device tun device pty device md device bpf device uhci device ohci device ehci device usb device ugen device uhid device ukbd device umass device ums device firewire device sbp