From owner-freebsd-amd64@freebsd.org Mon Nov 21 15:42:13 2016 Return-Path: Delivered-To: freebsd-amd64@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 6C11DC4DD43 for ; Mon, 21 Nov 2016 15:42:13 +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 5AD4086F for ; Mon, 21 Nov 2016 15:42:13 +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 uALFgDV3065299 for ; Mon, 21 Nov 2016 15:42:13 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-amd64@FreeBSD.org Subject: [Bug 214705] Kernel panic trying to playback encrypted DVD, "Fatal trap 12: page fault while in kernel mode" Date: Mon, 21 Nov 2016 15:42:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kumba@gentoo.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org 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 cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 15:42:13 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214705 Bug ID: 214705 Summary: Kernel panic trying to playback encrypted DVD, "Fatal trap 12: page fault while in kernel mode" Product: Base System Version: 11.0-RELEASE Hardware: amd64 OS: Any Status: New Severity: Affects Only Me Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: kumba@gentoo.org CC: freebsd-amd64@FreeBSD.org CC: freebsd-amd64@FreeBSD.org Hi, First FreeBSD bug, so let me know if I miss any details. I tripped up a kernel panic in FreeBSD-11.0-RELEASE trying to test playing = back a standard DVD on a laptop (HP 2000-2b19wm). I suspect the core issue is o= ne of two (maybe three) things: 1. Trying to use VLC to access /dev/cd0 as an unpriv user w/o fixing device permissions or adding to 'operator' group 2. Trying to use VLC to access /dev/cd0 as a raw device while it was mounted onto /media 3. DVD is encrypted and this appears to handled as-if it was damaged. This seems similar to Bug #208275, which affected 11.0's pre-release earlier this year. I finally got it to play, after fixing the perms for /dev/cd0 so my unpriv = user could access it, and also unmounted the /media mountpoint. Plays great thus far. Using the binary packages for all of this, nothing from ports and nothing rolled by hand, so I am skipping the inclusion of make.conf. Here's the crash detail, including errors from the bottom of dmesg: (cd0:ahcich1:0:0:0): Retrying command (per sense data) (cd0:ahcich1:0:0:0): READ(10). CDB: 28 00 00 00 01 a6 00 00 04 00 (cd0:ahcich1:0:0:0): CAM status: SCSI Status Error (cd0:ahcich1:0:0:0): SCSI status: Check Condition (cd0:ahcich1:0:0:0): SCSI sense: ILLEGAL REQUEST asc:6f,3 (Read of scrambled sector without authentication) (cd0:ahcich1:0:0:0): Retrying command (per sense data) (cd0:ahcich1:0:0:0): READ(10). CDB: 28 00 00 00 01 a6 00 00 04 00 (cd0:ahcich1:0:0:0): CAM status: SCSI Status Error (cd0:ahcich1:0:0:0): SCSI status: Check Condition (cd0:ahcich1:0:0:0): SCSI sense: ILLEGAL REQUEST asc:6f,3 (Read of scrambled sector without authentication) (cd0:ahcich1:0:0:0): Error 5, Retries exhausted (cd0:ahcich1:0:0:0): cddone: got error 0x5 back g_vfs_done():cd0[READ(offset=3D864256, length=3D8192)]error =3D 5 Fatal trap 12: page fault while in kernel mode cpuid =3D 0; apic id =3D 01 fault virtual address =3D 0x30 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff82bc6fb3 stack pointer =3D 0x28:0xfffffe0220881830 frame pointer =3D 0x28:0xfffffe02208818b0 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D interrupt enabled, resume, IOPL =3D 0 current process =3D 994 (vlc) trap number =3D 12 panic: page fault cpuid =3D 1 KDB: stack backtrace: #0 0xffffffff80b24077 at kdb_backtrace+0x67 #1 0xffffffff80ad93e2 at vpanic+0x182 #2 0xffffffff80ad9253 at panic+0x43 #3 0xffffffff80fa0d51 at trap_fatal+0x351 #4 0xffffffff80fa0f43 at trap_pfault+0x1e3 #5 0xffffffff80fa04ec at trap+0x26c #6 0xffffffff80f84141 at calltrap+0x8 #7 0xffffffff8110b469 at VOP_READ_APV+0x89 #8 0xffffffff80bc0977 at vn_read+0x157 #9 0xffffffff80bbc18d at vn_io_fault+0x10d #10 0xffffffff80b40df8 at dofileread+0x98 #11 0xffffffff80b40ac8 at kern_readv+0x68 #12 0xffffffff80b40a54 at sys_read+0x84 #13 0xffffffff80fa16ae at amd64_syscall+0x4ce #14 0xffffffff80f8442b at Xfast_syscall+0xfb --- dmesg: 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 11.0-RELEASE-p2 #0: Mon Oct 24 06:55:27 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) VT(efifb): resolution 1366x768 CPU: AMD E-300 APU with Radeon(tm) HD Graphics (1297.67-MHz K8-class CPU) Origin=3D"AuthenticAMD" Id=3D0x500f20 Family=3D0x14 Model=3D0x2 Stepp= ing=3D0 =20 Features=3D0x178bfbff Features2=3D0x802209 AMD Features=3D0x2e500800 AMD Features2=3D0x35ff SVM: NP,NRIP,NAsids=3D8 TSC: P-state invariant, performance statistics real memory =3D 8589934592 (8192 MB) avail memory =3D 7842193408 (7478 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) random: unblocking device. ioapic0: Changing APIC ID to 4 ioapic0 irqs 0-23 on motherboard random: entropy device external interface kbd1 at kbdmux0 netmap: loaded module module_register_init: MOD_LOAD (vesa, 0xffffffff8101c970, 0) error 19 cryptosoft0: on motherboard 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 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 acpi_button0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pcib0: _OSC returned error 0x10 pci0: on pcib0 vgapci0: port 0x3000-0x30ff mem 0xe0000000-0xefffffff,0xf0400000-0xf043ffff irq 18 at device 1.0 on pci0 vgapci0: Boot video device hdac0: mem 0xf0444000-0xf0447fff irq 19 at de= vice 1.1 on pci0 pcib1: irq 19 at device 7.0 on pci0 pcib1: [GIANT-LOCKED] ahci0: port 0x3118-0x311f,0x3124-0x3127,0x3110-0x3117,0x3120-0x3123,0x3100-0x310f mem 0xf044c000-0xf044c7ff irq 19 at device 17.0 on pci0 ahci0: AHCI v1.30 with 2 6Gbps ports, Port Multiplier supported ahcich0: at channel 0 on ahci0 ahcich1: at channel 1 on ahci0 ohci0: mem 0xf044b000-0xf044bfff irq 18 at device = 18.0 on pci0 usbus0 on ohci0 ehci0: mem 0xf044a000-0xf044a0ff irq 17 at dev= ice 18.2 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 ohci1: mem 0xf0449000-0xf0449fff irq 18 at device = 19.0 on pci0 usbus2 on ohci1 ehci1: mem 0xf0448000-0xf04480ff irq 17 at dev= ice 19.2 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci1 hdac1: mem 0xf0440000-0xf0443fff irq 16 at de= vice 20.2 on pci0 isab0: at device 20.3 on pci0 isa0: on isab0 pcib2: at device 20.4 on pci0 pci1: on pcib2 pcib3: at device 21.0 on pci0 pci2: on pcib3 re0: port 0x2000-0x20ff mem 0xf0004000-0xf0004fff,0xf0000000-0xf0003fff irq 16 at device 0.0 on pci2 re0: Using 1 MSI-X message re0: ASPM disabled re0: Chip rev. 0x40800000 re0: MAC rev. 0x00400000 miibus0: on re0 rlphy0: PHY 1 on miibus0 rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto, auto-flow re0: Using defaults for TSO: 65518/35/2048 re0: Ethernet address: d8:9d:67:7f:ca:7e re0: netmap queues/slots: TX 1/256, RX 1/256 pcib4: at device 21.1 on pci0 pci3: on pcib4 ath0: mem 0xf0200000-0xf027ffff irq 17 at device 0.0 on pc= i3 ar9300_attach: calling ar9300_hw_attach ar9300_hw_attach: calling ar9300_eeprom_attach ar9300_flash_map: unimplemented for now Restoring Cal data from DRAM Restoring Cal data from EEPROM Restoring Cal data from Flash Restoring Cal data from Flash Restoring Cal data from OTP ar9300_hw_attach: ar9300_eeprom_attach returned 0 ath0: [HT] enabling HT modes ath0: [HT] enabling short-GI in 20MHz mode ath0: [HT] 1 stream STBC receive enabled ath0: [HT] 1 RX streams; 1 TX streams ath0: AR9485 mac 576.1 RF5110 phy 0.0 ath0: 2GHz radio: 0x0000; 5GHz radio: 0x0000 pcib5: at device 21.2 on pci0 pci4: on pcib5 pci4: at device 0.0 (no driver attached) amdtemp0: on hostb4 acpi_acad0: on acpi0 battery0: on acpi0 acpi_lid0: 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 Synaptics Touchpad, device ID 3 ppc0: cannot reserve I/O port range hwpstate0: on cpu0 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) Timecounters tick every 1.000 msec nvme cam probe device init 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,21 and 24 on hdaa1 pcm2: at nid 18 on hdaa1 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on usbus0 ugen1.1: at usbus1 uhub1: on usbus1 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 ugen2.1: at usbus2 uhub2: on usbus2 ugen3.1: at usbus3 uhub3: on usbus3 uhub0: 5 ports with 5 removable, self powered ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: ACS-3 ATA SATA 3.x device ada0: Serial Number WES1J9DD uhub2: 5 ports with 5 removable, self powered ada0: 600.000MB/s transfers (SATA 3.x, UDMA6, PIO 8192bytes) ada0: Command Queueing enabled ada0: 476940MB (976773168 512 byte sectors) cd0 at ahcich1 bus 0 scbus1 target 0 lun 0 cd0: Removable CD-ROM SCSI device cd0: Serial Number R8Y66GLD1005Z2 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 - t= ray open SMP: AP CPU #1 Launched! Timecounter "TSC" frequency 1297666607 Hz quality 800 Trying to mount root from zfs:core/env/fbsd-20161120 []... Root mount waiting for: usbus3 usbus1 Root mount waiting for: usbus3 usbus1 uhub1: 5 ports with 5 removable, self powered uhub3: 5 ports with 5 removable, self powered Root mount waiting for: usbus3 usbus1 ugen3.2: at usbus3 ugen0.2: at usbus0 ugen0.3: at usbus0 --=20 You are receiving this mail because: You are on the CC list for the bug.=