Date: Mon, 21 Nov 2016 15:42:13 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 214705] Kernel panic trying to playback encrypted DVD, "Fatal trap 12: page fault while in kernel mode" Message-ID: <bug-214705-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,= MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT> Features2=3D0x802209<SSE3,MON,SSSE3,CX16,POPCNT> AMD Features=3D0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM> AMD Features2=3D0x35ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,IBS,SKIN= IT,WDT> 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: <HPQOEM 188B > 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 <Version 2.1> 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: <software crypto> on motherboard acpi0: <HPQOEM SLIC-MPC> on motherboard acpi0: Power Button (fixed) cpu0: <ACPI CPU> on acpi0 cpu1: <ACPI CPU> on acpi0 hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff irq 0,8 on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 950 atrtc0: <AT realtime clock> port 0x70-0x71 on acpi0 Event timer "RTC" frequency 32768 Hz quality 0 attimer0: <AT timer> 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: <Embedded Controller: GPE 0x3> port 0x62,0x66 on acpi0 acpi_button0: <Power Button> on acpi0 pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0 pcib0: _OSC returned error 0x10 pci0: <ACPI PCI bus> on pcib0 vgapci0: <VGA-compatible display> port 0x3000-0x30ff mem 0xe0000000-0xefffffff,0xf0400000-0xf043ffff irq 18 at device 1.0 on pci0 vgapci0: Boot video device hdac0: <ATI (0x1314) HDA Controller> mem 0xf0444000-0xf0447fff irq 19 at de= vice 1.1 on pci0 pcib1: <ACPI PCI-PCI bridge> irq 19 at device 7.0 on pci0 pcib1: [GIANT-LOCKED] ahci0: <AMD Hudson-2 AHCI SATA controller> 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: <AHCI channel> at channel 0 on ahci0 ahcich1: <AHCI channel> at channel 1 on ahci0 ohci0: <AMD FCH USB Controller> mem 0xf044b000-0xf044bfff irq 18 at device = 18.0 on pci0 usbus0 on ohci0 ehci0: <AMD FCH USB 2.0 controller> mem 0xf044a000-0xf044a0ff irq 17 at dev= ice 18.2 on pci0 usbus1: EHCI version 1.0 usbus1 on ehci0 ohci1: <AMD FCH USB Controller> mem 0xf0449000-0xf0449fff irq 18 at device = 19.0 on pci0 usbus2 on ohci1 ehci1: <AMD FCH USB 2.0 controller> mem 0xf0448000-0xf04480ff irq 17 at dev= ice 19.2 on pci0 usbus3: EHCI version 1.0 usbus3 on ehci1 hdac1: <AMD Hudson-2 HDA Controller> mem 0xf0440000-0xf0443fff irq 16 at de= vice 20.2 on pci0 isab0: <PCI-ISA bridge> at device 20.3 on pci0 isa0: <ISA bus> on isab0 pcib2: <ACPI PCI-PCI bridge> at device 20.4 on pci0 pci1: <ACPI PCI bus> on pcib2 pcib3: <ACPI PCI-PCI bridge> at device 21.0 on pci0 pci2: <ACPI PCI bus> on pcib3 re0: <RealTek 810xE PCIe 10/100baseTX> 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: <MII bus> on re0 rlphy0: <RTL8201E 10/100 media interface> 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: <ACPI PCI-PCI bridge> at device 21.1 on pci0 pci3: <ACPI PCI bus> on pcib4 ath0: <Atheros AR9485> 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: <ACPI PCI-PCI bridge> at device 21.2 on pci0 pci4: <ACPI PCI bus> on pcib5 pci4: <unknown> at device 0.0 (no driver attached) amdtemp0: <AMD CPU On-Die Thermal Sensors> on hostb4 acpi_acad0: <AC Adapter> on acpi0 battery0: <ACPI Control Method Battery> on acpi0 acpi_lid0: <Control Method Lid Switch> on acpi0 acpi_tz0: <Thermal Zone> on acpi0 atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0 atkbd0: <AT Keyboard> irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] psm0: <PS/2 Mouse> irq 12 on atkbdc0 psm0: [GIANT-LOCKED] psm0: model Synaptics Touchpad, device ID 3 ppc0: cannot reserve I/O port range hwpstate0: <Cool`n'Quiet 2.0> 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: <ATI R6xx HDA CODEC> at cad 0 on hdac0 hdaa0: <ATI R6xx Audio Function Group> at nid 1 on hdacc0 pcm0: <ATI R6xx (HDMI)> at nid 3 on hdaa0 hdacc1: <Realtek ALC269 HDA CODEC> at cad 0 on hdac1 hdaa1: <Realtek ALC269 Audio Function Group> at nid 1 on hdacc1 pcm1: <Realtek ALC269 (Analog 2.0+HP/2.0)> at nid 20,21 and 24 on hdaa1 pcm2: <Realtek ALC269 (Onboard Analog Mic)> at nid 18 on hdaa1 usbus0: 12Mbps Full Speed USB v1.0 usbus1: 480Mbps High Speed USB v2.0 ugen0.1: <AMD> at usbus0 uhub0: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0 ugen1.1: <AMD> at usbus1 uhub1: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1 usbus2: 12Mbps Full Speed USB v1.0 usbus3: 480Mbps High Speed USB v2.0 ugen2.1: <AMD> at usbus2 uhub2: <AMD OHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2 ugen3.1: <AMD> at usbus3 uhub3: <AMD EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus3 uhub0: 5 ports with 5 removable, self powered ada0 at ahcich0 bus 0 scbus0 target 0 lun 0 ada0: <ST500LM030-1RK17D SDM1> 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: <hp CDDVDW SN-208DB HH01> 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: <Chicony Electronics Co.,Ltd.> at usbus3 ugen0.2: <vendor 0x04f3> at usbus0 ugen0.3: <FTDI> at usbus0 --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-214705-8>