From owner-freebsd-questions@FreeBSD.ORG Fri Jun 3 06:19:02 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2E49416A41C for ; Fri, 3 Jun 2005 06:19:02 +0000 (GMT) (envelope-from philipp1@zeus.itg.uiuc.edu) Received: from zeus.itg.uiuc.edu (zeus.itg.uiuc.edu [130.126.126.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD60F43D1D for ; Fri, 3 Jun 2005 06:19:01 +0000 (GMT) (envelope-from philipp1@zeus.itg.uiuc.edu) Received: from zeus.itg.uiuc.edu (localhost.localdomain [127.0.0.1]) by zeus.itg.uiuc.edu (8.12.11/8.12.11) with ESMTP id j536J1Pf004112 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 3 Jun 2005 01:19:01 -0500 Received: (from philipp1@localhost) by zeus.itg.uiuc.edu (8.12.11/8.12.11/Submit) id j536J0QU004110 for freebsd-questions@freebsd.org; Fri, 3 Jun 2005 01:19:00 -0500 Date: Fri, 3 Jun 2005 01:19:00 -0500 From: Anthony Philipp To: freebsd-questions@freebsd.org Message-ID: <20050603061900.GA3764@zeus.itg.uiuc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.1i Subject: [philipp1@uiuc.edu: CD paranoia caused crash] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Jun 2005 06:19:02 -0000 Hello again, I had previously asked about this issue on the list, and no one responded. So after waiting a week or so I am trying again. Basically the issue is that I was using abcde to rip a CD, and abcde uses CD paranoia to rip the tracks themselves. Anyway I was doing this as an unprivileged user which had read access to the drive /dev/acd0. After the drive failed to read the CDa few times, the machine just rebooted. I was just wondering how this could have happened, and how I can prevent it from happening in the future. Thanks again in advance, Anthony Philipp ----- Forwarded message from Anthony Philipp ----- Date: Tue, 24 May 2005 15:59:17 -0500 From: Anthony Philipp To: freebsd-questions@freebsd.org Subject: CD paranoia caused crash User-Agent: Mutt/1.4.1i Hello, I was ripping a CD with abcde which uses CD paranoia to rip. The CD had a scratch in it and it would not be read. Then after a few minutes my machine simply rebooted. I was wondering how exactly this was allowed since I was ripping this CD as a non-privileged user. I have included the relevant /var/log/messages section and a dmesg. If there is anything else that would be of value please tell me. Is this avoidable in the future? I would hate for users who have read access to the CD drive to be able to crash my machine. Thanks for your help, Anthony Philipp >From /var/log/messages ---------- May 22 13:50:24 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x00 ascq=0x00 error=0 May 22 13:50:28 lupin last message repeated 2 times May 22 13:50:32 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x11 ascq=0x00 error=0 May 22 13:50:48 lupin last message repeated 8 times May 22 13:50:50 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x00 ascq=0x00 error=0 May 22 13:51:03 lupin last message repeated 6 times May 22 13:51:07 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x11 ascq=0x00 error=0 May 22 13:51:25 lupin last message repeated 8 times May 22 13:51:27 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x00 ascq=0x00 error=0 May 22 13:51:41 lupin last message repeated 6 times May 22 13:51:42 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x11 ascq=0x00 error=0 May 22 13:52:13 lupin last message repeated 14 times May 22 13:52:40 lupin last message repeated 12 times May 22 13:52:42 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x00 ascq=0x00 error=0 May 22 13:52:52 lupin last message repeated 5 times May 22 13:52:57 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x11 ascq=0x00 error=0 May 22 13:53:13 lupin last message repeated 8 times May 22 13:53:15 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x00 ascq=0x00 error=0 May 22 13:53:42 lupin last message repeated 13 times May 22 13:53:45 lupin kernel: acd0: FAILURE - READ_CD MEDIUM ERROR asc=0x11 ascq=0x00 error=0 May 22 13:54:57 lupin syslogd: kernel boot file is /boot/kernel/kernel May 22 13:54:57 lupin kernel: Copyright (c) 1992-2005 The FreeBSD Project. May 22 13:54:57 lupin kernel: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 May 22 13:54:57 lupin kernel: The Regents of the University of California. All rights reserved. May 22 13:54:57 lupin kernel: FreeBSD 5.4-RELEASE-p1 #7: Sat May 14 20:27:25 CDT 2005 May 22 13:54:57 lupin kernel: ven@lupin.angrypanda.net:/usr/obj/usr/src/sys/LUPIN --------- >From dmesg -------- Copyright (c) 1992-2005 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 5.4-RELEASE-p1 #7: Sat May 14 20:27:25 CDT 2005 ven@lupin.angrypanda.net:/usr/obj/usr/src/sys/LUPIN Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Pentium(R) 4 CPU 1300MHz (1296.07-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf07 Stepping = 7 Features=0x3febf9ff real memory = 670593024 (639 MB) avail memory = 650772480 (620 MB) npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe8000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) pcib2: at device 30.0 on pci0 pci2: on pcib2 twe0: <3ware Storage Controller. Driver version 1.50.01.002> port 0xdcf0-0xdcff mem 0xfe800000-0xfeffffff irq 10 at device 8.0 on pci2 twe0: 4 ports, Firmware FE7S 1.05.00.065, BIOS BE7X 1.08.00.048 xl0: <3Com 3c905C-TX Fast Etherlink XL> port 0xdc00-0xdc7f mem 0xff6ff800-0xff6ff87f irq 11 at device 12.0 on pci2 miibus0: on xl0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto xl0: Ethernet address: [snip] isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 ata0: channel #0 on atapci0 ata1: channel #1 on atapci0 uhci0: port 0xff80-0xff9f irq 11 at device 31.2 on pci0 usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered pci0: at device 31.3 (no driver attached) uhci1: port 0xff60-0xff7f irq 9 at device 31.4 on pci0 usb1: on uhci1 usb1: USB revision 1.0 uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x64,0x60 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A ppc0: port 0x778-0x77f,0x378-0x37f irq 7 on acpi0 ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 plip0: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 pmtimer0 on isa0 orm0: at iomem 0xc9000-0xcbfff,0xc8000-0xc8fff,0xc0000-0xc7fff on isa0 sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled Timecounter "TSC" frequency 1296067900 Hz quality 800 Timecounters tick every 10.000 msec acd0: CDRW at ata0-master PIO4 acd1: DVDROM at ata0-slave PIO4 twed0: on twe0 twed0: 238474MB (488395120 sectors) Mounting root from ufs:/dev/twed0s1a WARNING: / was not properly dismounted WARNING: /home was not properly dismounted /home: mount pending error: blocks 115520 files 2 WARNING: /tmp was not properly dismounted WARNING: /usr was not properly dismounted WARNING: /var was not properly dismounted pid 585 (naim), uid 1001: exited on signal 6 (core dumped) xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 120 bytes xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 180 bytes xl0: transmission error: 90 xl0: tx underrun, increasing tx start threshold to 240 bytes -------- ----- End forwarded message -----