Bug 223770 - After FreeBSD 11.1 Update: Fatal trap 12: page fault while in kernel mode
Summary: After FreeBSD 11.1 Update: Fatal trap 12: page fault while in kernel mode
Status: Closed Unable to Reproduce
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 11.1-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2017-11-20 16:53 UTC by Torsten Zuehlsdorff
Modified: 2018-07-11 10:05 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Zuehlsdorff freebsd_committer freebsd_triage 2017-11-20 16:53:56 UTC
Hello,

after upgrading my Laptop to FreeBSD 11.1 it had a problem when starting. From time to time i got a page fault and it restarts. Its not every time. Sometimes it reboots up to 5 times, sometimes there is just a single reboot.

In /var/log/messages i found this error-log:

Nov 15 18:36:46 kara kernel: cd0 at ahcich1 bus 0 scbus1 target 0 lun 0
Nov 15 18:36:46 kara kernel: kernel trap 12 with interrupts disabled
Nov 15 18:36:46 kara kernel: 
Nov 15 18:36:46 kara kernel: 
Nov 15 18:36:46 kara kernel: Fatal trap 12: page fault while in kernel mode
Nov 15 18:36:46 kara kernel: cpuid = 1; apic id = 01
Nov 15 18:36:46 kara kernel: fault virtual address	= 0x1e8
Nov 15 18:36:46 kara kernel: fault code		= supervisor read data, page not present
Nov 15 18:36:46 kara kernel: instruction pointer	= 0x20:0xffffffff808ea31e
Nov 15 18:36:46 kara kernel: stack pointer	        = 0x28:0xfffffe00003c4f00
Nov 15 18:36:46 kara kernel: frame pointer	        = 0x28:0xfffffe00003c4f70
Nov 15 18:36:46 kara kernel: code segment		= base rx0, limit 0xfffff, type 0x1b
Nov 15 18:36:46 kara kernel: = DPL 0, pres 1, long 1, def32 0, gran 1
Nov 15 18:36:46 kara kernel: processor eflags	= resume, IOPL = 0
Nov 15 18:36:46 kara kernel: current process		= 12 (irq263: ahci0:ch1)
Nov 15 18:36:46 kara kernel: trap number		= 12
Nov 15 18:36:46 kara kernel: panic: page fault
Nov 15 18:36:46 kara kernel: cpuid = 1
Nov 15 18:36:46 kara kernel: KDB: stack backtrace:
Nov 15 18:36:46 kara kernel: #0 0xffffffff80aada97 at kdb_backtrace+0x67
Nov 15 18:36:46 kara kernel: #1 0xffffffff80a6bb76 at vpanic+0x186
Nov 15 18:36:46 kara kernel: #2 0xffffffff80a6b9e3 at panic+0x43
Nov 15 18:36:46 kara kernel: #3 0xffffffff80edf832 at trap_fatal+0x322
Nov 15 18:36:46 kara kernel: #4 0xffffffff80edf889 at trap_pfault+0x49
Nov 15 18:36:46 kara kernel: #5 0xffffffff80edf0c6 at trap+0x286
Nov 15 18:36:46 kara kernel: #6 0xffffffff80ec3641 at calltrap+0x8
Nov 15 18:36:46 kara kernel: #7 0xffffffff808f26d8 at vt_flush+0x398
Nov 15 18:36:46 kara kernel: #8 0xffffffff80ac09cf at termcn_cnputc+0xff
Nov 15 18:36:46 kara kernel: #9 0xffffffff80a100ed at cnputc+0x7d
Nov 15 18:36:46 kara kernel: #10 0xffffffff80a103f8 at cnputs+0xb8
Nov 15 18:36:46 kara kernel: #11 0xffffffff80ab36ad at putchar+0x14d
Nov 15 18:36:46 kara kernel: #12 0xffffffff80ab323d at kvprintf+0x103d
Nov 15 18:36:46 kara kernel: #13 0xffffffff80ab3ea7 at vprintf+0x87
Nov 15 18:36:46 kara kernel: #14 0xffffffff80ab3e13 at printf+0x43
Nov 15 18:36:46 kara kernel: #15 0xffffffff80307c52 at xpt_announce_periph+0x62
Nov 15 18:36:46 kara kernel: #16 0xffffffff8032e089 at cddone+0x249
Nov 15 18:36:46 kara kernel: #17 0xffffffff8030dbe7 at xpt_done_process+0x677
Nov 15 18:36:46 kara kernel: Uptime: 1s

I'm not familiar with such errors or how to solve them. If you need any more information i'm glad to help!

Greetings,
Torsten
Comment 1 Ed Maste freebsd_committer freebsd_triage 2017-11-21 04:05:58 UTC
What version were you running before the upgrade (that was presumably stable for you)?
Comment 2 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2017-11-21 09:28:24 UTC
It was a FreeBSD 11.0. 
11.0 was a fresh installation so no artifacts or what so ever should have occurred.
Comment 3 Toshimichi Masubuchi 2017-12-01 15:04:54 UTC
It may be resolved by adding the kern.cam.scsi_delay option.
Please see bug #220923, comment #17.
Comment 4 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2017-12-05 10:12:44 UTC
(In reply to Toshimichi Masubuchi from comment #3)

> It may be resolved by adding the kern.cam.scsi_delay option.
> Please see bug #220923, comment #17.

I tested the option with various values, but nothing change. The Laptop still restarts from time to time.
Comment 5 Torsten Zuehlsdorff freebsd_committer freebsd_triage 2018-07-11 10:05:31 UTC
I did not experience this issue for more than 2 or 3 months. Maybe a minor patch update has fixed it. Maybe something other. I really have no idea. Therefore i'm closing the issue, since it is no longer reproducible.