Bug 230008 - [panic] [fdescfs] Page fault in vn_finished_write+0x13
Summary: [panic] [fdescfs] Page fault in vn_finished_write+0x13
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: Dmitry Chagin
URL:
Keywords: crash
Depends on:
Blocks:
 
Reported: 2018-07-24 09:51 UTC by Peter Holm
Modified: 2022-10-12 00:48 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 Peter Holm freebsd_committer freebsd_triage 2018-07-24 09:51:26 UTC
20180724 11:01:27 all (5/573): fdescfs.sh

Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address	= 0x70
fault code		= supervisor read data, page not present
instruction pointer	= 0x20:0xffffffff80c82943
stack pointer	        = 0x28:0xfffffe002e0f97b0
frame pointer	        = 0x28:0xfffffe002e0f97c0
code segment		= base rx0, limit 0xfffff, type 0x1b
			= DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags	= interrupt enabled, resume, IOPL = 0
current process		= 76129 (ls)
[ thread pid 76129 tid 100138 ]
Stopped at      vn_finished_write+0x13: cmpq    $0,ll+0x4f(%rax)
db>

Details @ https://people.freebsd.org/~pho/stress/log/fdescfs-3.txt
Comment 1 Mark Johnston freebsd_committer freebsd_triage 2018-08-09 17:02:16 UTC
Looks like this occurred because mp->mnt_op == NULL (though it's non-null in the kernel core).  MNTK_REFEXPIRE|MNTK_UNMOUNTF is set on the mount, so it seems this was a race with a free of the mountpoint.
Comment 2 Dmitry Chagin freebsd_committer freebsd_triage 2021-03-24 11:49:10 UTC
grab it
Comment 3 Peter Holm freebsd_committer freebsd_triage 2021-03-24 15:24:34 UTC
I haven't seen any problems with this test for a long time.
I'm currently running the test in a loop, just to be sure.
Comment 4 Dmitry Chagin freebsd_committer freebsd_triage 2021-03-24 16:25:44 UTC
the same here, close ?
Comment 5 Peter Holm freebsd_committer freebsd_triage 2021-03-25 06:37:08 UTC
Not able to reproduce the problem on main-n245613-63f344024a0d.
Dmitry, thank you for looking at this.