From owner-freebsd-current@freebsd.org Sat Sep 21 06:36:18 2019 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 58942F877D for ; Sat, 21 Sep 2019 06:36:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 46b17j12mNz4BGv for ; Sat, 21 Sep 2019 06:36:16 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.129.235]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 4B7992601E2; Sat, 21 Sep 2019 08:36:08 +0200 (CEST) Subject: Re: r351680 kernel panic in login To: KIRIYAMA Kazuhiko , freebsd-current@freebsd.org References: <201909210555.x8L5tw5U000784@kx.truefc.org> From: Hans Petter Selasky Message-ID: <5db31352-74a5-6945-6597-0b67c2f73f75@selasky.org> Date: Sat, 21 Sep 2019 08:35:21 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <201909210555.x8L5tw5U000784@kx.truefc.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 46b17j12mNz4BGv X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 88.99.82.50 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-5.48 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; IP_SCORE(-3.18)[ip: (-9.36), ipnet: 88.99.0.0/16(-4.75), asn: 24940(-1.79), country: DE(-0.01)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:88.99.0.0/16, country:DE]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 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: Sat, 21 Sep 2019 06:36:18 -0000 On 2019-09-21 07:55, KIRIYAMA Kazuhiko wrote: > Hi, > > I've installed r351680 in my note PC. But kernel panic at > login: > > Kernel page fault with the following non-sleepable locks held: > exclusive sleep mutex axe0 (axe0) r = (0xfffff80003989ea0) locked 0 /usr/src/sys/dev/usb/usb_transfer.c:2266 > stack backtrace: > #0 0xffffffff80c3dac3 at winess_debugger+0x73 > #1 0xffffffff80c3eae2 at winess_warn+0x442 > #2 0xffffffff81191943 at trap_pfault+0x53 > #3 0xffffffff81198f42 at trap+0x2b2 > #4 0xffffffff8116886c at caltrap+0x8 > #5 0xffffffff82f0dd82 at axe_bulk_read_callback+0x142 > #6 0xffffffff80a1e52a at usbd_callback_wrapoer+0x7aa > #7 0xffffffff80a1c273 at usb_command_wrapper+0xb3 > #8 0xffffffff80a1b0ae at usb_callback_proc+0x8e > #9 0xffffffff80a15dd5 at usb_process+0xe5 > #10 0xffffffff80b8f794 at fork_exit+0x84 > #11 0xffffffff811698ae at gork_trampoline+0xe > > > Fatal trap12: page fault while in kernel mode > cpuid = 3; apic id = 86 > fault virtual address = 0x0 > fault code = supervisor write data,page not present > instruction pointer = 0x20:0xffffffff82f0df41 > stack pointer = 0x28:0xfffffe0000513a40 > frame pointer = 0x28:0xfffffe0000513a80 > code segment = base 0x0, limit 0xfffff, type 0x1b > = DPL 0, pres 1, long 1, def32 0, gran 1 > processor eflags = interrupt enabled, resume, IOPL = 0 > current process = 15 (usbus0) > trap number = 12 > panic: page fault > cpuid = 3 > time = 1568969574 > KDB: stack backtrace: > db_trace_self_wrapper() at db_trace_self_wrapper+0x2b/frame 0xfffffe0000513700 > vpanic() at vpanic+0x19d/frame 0xfffffe0000513750 > panic() at panic+0x43/frame 0xfffffe00005137b0 > trap_fatal() at trap_fatal+0x39c/frame 0xfffffe0000513810 > trap_pfault() at trap_pfault+0x62/frame 0xfffffe0000513860 > trap() at trap+0x2b2/frame 0xfffffe0000513970 > calltrap() at calltrap+0x8/frame 0xfffffe0000513970 > --- trap 0xc, rip = 0xffffffff82f0d41, rsp = 0xfffffe0000513a40, rbp = 0xfffffe0000513a80 --- > axe_rxeof() at axa_rxeof+0x151/frame 0xfffffe0000513a80 > axe_bulk_read_callback() at axe_bulk_read_callback+0x142/frame 0xfffffe0000513af0 > usbd_callback_wrapper() at usbd_callback_wrapper+0x7aa/fram 0xfffffe0000513b30 > usb_command_wrapper() at usb_command_wrapper+0xb3/frame 0xfffffe0000513b50 > usb_callback_proc() at usb_callback_proc+0x8e/frame 0xfffffe0000513b70 > usb_process() at usb_process+0xe5/frame 0xfffffe0000513bb0 > fork_exit() at fork_exit+0x84/frame 0xfffffe0000513bf0 > fork_trampoline() at fork_trampoline+0xe/frame 0xfffffe0000513bf0 > --- trap 0, rip = 0, rsp = 0, rbp = 0 --- > KBD: enter: panic > [ thread pid 15 tid 100047 ] > Stopped at kbd_enter+0x3b: movq $0,kbd_why > db> > > I've rebooted and at single user mode I saved sevral specs > in usb as follows: > > # umane -a > FreeBSD 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r351680: Fri Sep 13 13:37:15 JST 2019 admin@tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > # dmesg > ---<>--- > Copyright (c) 1992-2019 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 13.0-CURRENT #0 r351680: Fri Sep 13 13:37:15 JST 2019 > admin@tbedfc:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 > FreeBSD clang version 8.0.1 (tags/RELEASE_801/final 366581) (based on LLVM 8.0.1) > WARNING: WITNESS option enabled, expect reduced performance. > VT(efifb): resolution 800x600 > CPU: Intel(R) Atom(TM) x5-Z8350 CPU @ 1.44GHz (1439.99-MHz K8-class CPU) > Origin="GenuineIntel" Id=0x406c4 Family=0x6 Model=0x4c Stepping=4 > Features=0xbfebfbff > Features2=0x43d8e3bf > AMD Features=0x28100800 > AMD Features2=0x101 > Structured Extended Features=0x2282 > VT-x: PAT,HLT,MTF,PAUSE,EPT,UG,VPID > TSC: P-state invariant, performance statistics > real memory = 4294967296 (4096 MB) > avail memory = 3974008832 (3789 MB) > Event timer "LAPIC" quality 600 > ACPI APIC Table: > WARNING: L1 data cache covers fewer APIC IDs than a core (0 < 1) > FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs > FreeBSD/SMP: 1 package(s) x 4 core(s) > random: registering fast source Intel Secure Key RNG > random: fast provider: "Intel Secure Key RNG" > random: unblocking device. > ioapic0 irqs 0-114 > Launching APs: 2 3 1 > Timecounter "TSC" frequency 1439990442 Hz quality 1000 > random: entropy device external interface > [ath_hal] loaded > kbd1 at kbdmux0 > 000.000046 [4335] netmap_init netmap: loaded module > module_register_init: MOD_LOAD (vesa, 0xffffffff811b9cc0, 0) error 19 > nexus0 > efirtc0: > efirtc0: registered as a time-of-day clock, resolution 1.000000s > cryptosoft0: > acpi0: > acpi0: Power Button (fixed) > unknown: I/O range not supported > cpu0: on acpi0 > attimer0: port 0x40-0x43,0x50-0x53 irq 0 on acpi0 > Timecounter "i8254" frequency 1193182 Hz quality 0 > Event timer "i8254" frequency 1193182 Hz quality 100 > atrtc0: port 0x70-0x77 on acpi0 > atrtc0: Warning: Couldn't map I/O. > atrtc0: registered as a time-of-day clock, resolution 1.000000s > Event timer "RTC" frequency 32768 Hz quality 0 > hpet0: iomem 0xfed00000-0xfed003ff irq 8 on acpi0 > Timecounter "HPET" frequency 14318180 Hz quality 950 > Event timer "HPET" frequency 14318180 Hz quality 450 > Event timer "HPET1" frequency 14318180 Hz quality 440 > Event timer "HPET2" frequency 14318180 Hz quality 440 > Timecounter "ACPI-fast" frequency 3579545 Hz quality 900 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > vgapci0: port 0xf000-0xf03f mem 0x90000000-0x90ffffff,0x80000000-0x8fffffff at device 2.0 on pci0 > vgapci0: Boot video device > pci0: at device 3.0 (no driver attached) > xhci0: mem 0x91800000-0x9180ffff at device 20.0 on pci0 > xhci0: 32 bytes context size, 64-bit DMA > usbus0 on xhci0 > usbus0: 5.0Gbps Super Speed USB v3.0 > pci0: at device 26.0 (no driver attached) > isab0: at device 31.0 on pci0 > isa0: on isab0 > acpi_button0: on acpi0 > acpi_lid0: on acpi0 > acpi_acad0: on acpi0 > acpi_tz0: on acpi0 > sdhci_acpi0: iomem 0x9183a000-0x9183afff irq 45 on acpi0 > mmc0: on sdhci_acpi0 > sdhci_acpi1: iomem 0x91836000-0x91836fff irq 47 on acpi0 > mmc1: on sdhci_acpi1 > uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > atkbdc0: at port 0x60,0x64 on isa0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > atkbd0: [GIANT-LOCKED] > atkbdc0: non-PNP ISA device will be removed from GENERIC in FreeBSD 12. > est0: on cpu0 > Timecounters tick every 1.000 msec > ugen0.1: <0x8086 XHCI root HUB> at usbus0 > uhub0 on usbus0 > uhub0: <0x8086 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 > mmcsd0: 63GB at mmc0 200.0MHz/8bit/8192-block > mmcsd0boot0: 4MB partition 1 at mmcsd0 > mmcsd0boot1: 4MB partition 2 at mmcsd0 > mmcsd0rpmb: 4MB partition 3 at mmcsd0 > mmcsd1: 128GB at mmc1 50.0MHz/4bit/65535-block > Trying to mount root from ufs:/dev/mmcsd0p2 [rw]... > WARNING: WITNESS option enabled, expect reduced performance. > uhub0: 13 ports with 13 removable, self powered > ugen0.2: at usbus0 > ugen0.3: at usbus0 > ukbd0 on uhub0 > ukbd0: on usbus0 > kbd2 at ukbd0 > ugen0.4: at usbus0 > umass0 on uhub0 > umass0: on usbus0 > umass0: SCSI over Bulk-Only; quirks = 0x8100 > umass0:0:0: Attached to scbus0 > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: Removable Direct Access SCSI device > da0: Serial Number 07BA1B081C742B8A > da0: 40.000MB/s transfers > da0: 1912MB (3915776 512 byte sectors) > da0: quirks=0x2 > ugen0.5: at usbus0 > # df > Filesystem 512-blocks Used Avail Capacity Mounted on > /dev/mmcsd0p2 111720120 6363664 96418848 6% / > devfs 2 2 0 100% /dev > /dev/mmcsd1p1 241710968 65672 222308424 0% /work > linprocfs 8 8 0 100% /compat/linux/proc > tmpfs 7636728 8 7636720 0% /compat/linux/dev/shm > /dev/da0s3 1868552 32 1719040 0% /mnt > # pciconf -lv > hostb0@pci0:0:0:0: class=0x060000 card=0x72708086 chip=0x22808086 rev=0x36 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series SoC Transaction Register' > class = bridge > subclass = HOST-PCI > vgapci0@pci0:0:2:0: class=0x030000 card=0x72708086 chip=0x22b08086 rev=0x36 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCI Configuration Registers' > class = display > subclass = VGA > none0@pci0:0:3:0: class=0x048000 card=0x72708086 chip=0x22b88086 rev=0x36 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Imaging Unit' > class = multimedia > none1@pci0:0:11:0: class=0x118000 card=0x72708086 chip=0x22dc8086 rev=0x36 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Power Management Controller' > class = dasp > xhci0@pci0:0:20:0: class=0x0c0330 card=0x72708086 chip=0x22b58086 rev=0x36 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series USB xHCI Controller' > class = serial bus > subclass = USB > none2@pci0:0:26:0: class=0x108000 card=0x72708086 chip=0x22988086 rev=0x36 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series Trusted Execution Engine' > class = encrypt/decrypt > isab0@pci0:0:31:0: class=0x060100 card=0x72708086 chip=0x229c8086 rev=0x36 hdr=0x00 > vendor = 'Intel Corporation' > device = 'Atom/Celeron/Pentium Processor x5-E8000/J3xxx/N3xxx Series PCU' > class = bridge > subclass = PCI-ISA > # > > Is there any suggetions? This issue is already fixed in: https://svnweb.freebsd.org/changeset/base/351692 --HPS