Re: page fault due to close(2), possibly drm and i915kms related

From: Mateusz Guzik <mjguzik_at_gmail.com>
Date: Thu, 3 Dec 2020 11:45:56 +0100
This should be fixed by r368271

On 12/3/20, Trond Endrestøl <trond.endrestol_at_ximalas.info> wrote:
> Fam,
>
> After close(2) got fixed in r368006 last week, my laptop at home has
> been acting up.
>
> It currently runs:
>
> FreeBSD E590T.ufp 13.0-CURRENT FreeBSD 13.0-CURRENT #870 r368192: Mon Nov 30
> 20:29:15 CET 2020     root_at_E590T.ufp:/usr/obj/usr/src/amd64.amd64/sys/E590T
> amd64 1300130 1300130 a5c28607a47e84c68f4c8063d23189c475e61ac8
>
> The DRM and KMS drivers (i915kms) are compiled from the source code of
> graphics/drm-kmod and are automatically installed along with the
> kernel.
>
> From time to time whenever I'm logged in using X.org, I sometimes get
> crashes like this one:
>
> Script started on Thu Dec  3 07:13:33 2020
> Command: kkgdb /boot/kernel/kernel /var/crash/vmcore.2
> GNU gdb 6.1.1 [FreeBSD]
> Copyright 2004 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you
> are
> welcome to change it and/or distribute copies of it under certain
> conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "amd64-marcel-freebsd"...
>
> Unread portion of the kernel message buffer:
> [160176]
> [160176]
> [160176] Fatal trap 12: page fault while in kernel mode
> [160176] cpuid = 0; apic id = 00
> [160176] fault virtual address	= 0x440
> [160176] fault code		= supervisor read data, page not present
> [160176] instruction pointer	= 0x20:0xffffffff808cbd2c
> [160176] stack pointer	        = 0x28:0xfffffe018500e700
> [160176] frame pointer	        = 0x28:0xfffffe018500e780
> [160176] code segment		= base 0x0, limit 0xfffff, type 0x1b
> [160176] 			= DPL 0, pres 1, long 1, def32 0, gran 1
> [160176] processor eflags	= interrupt enabled, resume, IOPL = 0
> [160176] current process		= 3874 (wc)
> [160176] trap number		= 12
> [160176] WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:621
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fb3c3 at drm_atomic_helper_check_modeset+0xb3
> [160176] #2 0xffffffff831dfd9d at intel_atomic_check+0x8d
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:621
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fb3c3 at drm_atomic_helper_check_modeset+0xb3
> [160176] #2 0xffffffff831dfd9d at intel_atomic_check+0x8d
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:621
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fb3c3 at drm_atomic_helper_check_modeset+0xb3
> [160176] #2 0xffffffff831dfd9d at intel_atomic_check+0x8d
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&dev->mode_config.connection_mutex)
> failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:666
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fb553 at drm_atomic_helper_check_modeset+0x243
> [160176] #2 0xffffffff831dfd9d at intel_atomic_check+0x8d
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> [160176] WARNING !drm_modeset_is_locked(&plane->mutex) failed at
> /usr/local/sys/modules/drm-current-kmod/drivers/gpu/drm/drm_atomic_helper.c:871
> [160176] #0 0xffffffff82766583 at linux_dump_stack+0x23
> [160176] #1 0xffffffff830fc620 at drm_atomic_helper_check_planes+0xb0
> [160176] #2 0xffffffff831e0f11 at intel_atomic_check+0x1201
> [160176] #3 0xffffffff830fa360 at drm_atomic_check_only+0x400
> [160176] #4 0xffffffff830fa793 at drm_atomic_commit+0x13
> [160176] #5 0xffffffff83107948 at drm_client_modeset_commit_atomic+0x148
> [160176] #6 0xffffffff83107671 at drm_client_modeset_commit_force+0x71
> [160176] #7 0xffffffff8314a7d7 at
> drm_fb_helper_restore_fbdev_mode_unlocked+0x77
> [160176] #8 0xffffffff831445d1 at vt_kms_postswitch+0x191
> [160176] #9 0xffffffff8076202b at vt_window_switch+0x12b
> [160176] #10 0xffffffff8075f12f at vtterm_cngrab+0x1f
> [160176] #11 0xffffffff80887c36 at cngrab+0x16
> [160176] #12 0xffffffff808ee35c at vpanic+0xec
> [160176] #13 0xffffffff808ee263 at panic+0x43
> [160176] #14 0xffffffff80cf7af7 at trap_fatal+0x387
> [160176] #15 0xffffffff80cf7b4f at trap_pfault+0x4f
> [160176] #16 0xffffffff80cf71ad at trap+0x27d
> [160176] #17 0xffffffff80ccf3e8 at calltrap+0x8
> <4>[160176] WARN_ON(!mutex_is_locked(&dev->struct_mutex))
> [160176]
> <4>[160176] WARN_ON(!mutex_is_locked(&fbc->lock))
> [160176]
> <4>[160176]
> WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))
> [160176] panic: page fault
> [160176] cpuid = 0
> [160176] time = 1606962312
> [160176] KDB: stack backtrace:
> [160176] db_trace_self_wrapper() at 0xffffffff805df8bb =
> db_trace_self_wrapper+0x2b/frame 0xfffffe018500e3b0
> [160176] vpanic() at 0xffffffff808ee3f1 = vpanic+0x181/frame
> 0xfffffe018500e400
> [160176] panic() at 0xffffffff808ee263 = panic+0x43/frame
> 0xfffffe018500e460
> [160176] trap_fatal() at 0xffffffff80cf7af7 = trap_fatal+0x387/frame
> 0xfffffe018500e4c0
> [160176] trap_pfault() at 0xffffffff80cf7b4f = trap_pfault+0x4f/frame
> 0xfffffe018500e520
> [160176] trap() at 0xffffffff80cf71ad = trap+0x27d/frame 0xfffffe018500e630
> [160176] calltrap() at 0xffffffff80ccf3e8 = calltrap+0x8/frame
> 0xfffffe018500e630
> [160176] --- trap 0xc, rip = 0xffffffff808cbd2c, rsp = 0xfffffe018500e700,
> rbp = 0xfffffe018500e780 ---
> [160176] __mtx_lock_sleep() at 0xffffffff808cbd2c =
> __mtx_lock_sleep+0xfc/frame 0xfffffe018500e780
> [160176] doselwakeup() at 0xffffffff8095fbee = doselwakeup+0xde/frame
> 0xfffffe018500e7c0
> [160176] sowakeup() at 0xffffffff80988c7e = sowakeup+0x1e/frame
> 0xfffffe018500e7f0
> [160176] soisdisconnected() at 0xffffffff8099235a =
> soisdisconnected+0x8a/frame 0xfffffe018500e810
> [160176] unp_disconnect() at 0xffffffff8099a9fe = unp_disconnect+0x12e/frame
> 0xfffffe018500e850
> [160176] uipc_disconnect() at 0xffffffff809982a2 =
> uipc_disconnect+0x42/frame 0xfffffe018500e870
> [160176] soclose() at 0xffffffff8098cc96 = soclose+0x76/frame
> 0xfffffe018500e8d0
> [160176] _fdrop() at 0xffffffff80891eb1 = _fdrop+0x11/frame
> 0xfffffe018500e8f0
> [160176] closef() at 0xffffffff80895098 = closef+0x278/frame
> 0xfffffe018500e980
> [160176] closefp() at 0xffffffff808921d9 = closefp+0x89/frame
> 0xfffffe018500e9c0
> [160176] amd64_syscall() at 0xffffffff80cf8a45 = amd64_syscall+0x755/frame
> 0xfffffe018500eaf0
> [160176] fast_syscall_common() at 0xffffffff80ccfd0e =
> fast_syscall_common+0xf8/frame 0xfffffe018500eaf0
> [160176] --- syscall (6, FreeBSD ELF64, sys_close), rip = 0x8003b0d7a, rsp =
> 0x7fffffffe998, rbp = 0x7fffffffe9b0 ---
> [160176] Uptime: 1d20h29m36s
> [160176] Dumping 6415 out of 32449
> MB:..1%..11%..21%..31%..41%..51%..61%..71%..81%..91%
>
> No symbol "zombproc" in current context.
> Reading symbols from /boot/kernel/dtraceall.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/dtraceall.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/dtraceall.ko
> Reading symbols from /boot/kernel/profile.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/profile.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/profile.ko
> Reading symbols from /boot/kernel/opensolaris.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/opensolaris.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/opensolaris.ko
> Reading symbols from /boot/kernel/dtrace.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/dtrace.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/dtrace.ko
> Reading symbols from /boot/kernel/systrace_freebsd32.ko...Reading symbols
> from /usr/lib/debug//boot/kernel/systrace_freebsd32.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/systrace_freebsd32.ko
> Reading symbols from /boot/kernel/systrace.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/systrace.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/systrace.ko
> Reading symbols from /boot/kernel/sdt.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/sdt.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/sdt.ko
> Reading symbols from /boot/kernel/fasttrap.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/fasttrap.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/fasttrap.ko
> Reading symbols from /boot/kernel/fbt.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/fbt.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/fbt.ko
> Reading symbols from /boot/kernel/dtnfscl.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/dtnfscl.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/dtnfscl.ko
> Reading symbols from /boot/kernel/dtmalloc.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/dtmalloc.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/dtmalloc.ko
> Reading symbols from /boot/modules/sysctlinfo.ko...done.
> Loaded symbols for /boot/modules/sysctlinfo.ko
> Reading symbols from /boot/kernel/cc_htcp.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/cc_htcp.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/cc_htcp.ko
> Reading symbols from /boot/kernel/lindebugfs.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/lindebugfs.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/lindebugfs.ko
> Reading symbols from /boot/kernel/linuxkpi.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/linuxkpi.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/linuxkpi.ko
> Reading symbols from /boot/kernel/pchtherm.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/pchtherm.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/pchtherm.ko
> Reading symbols from /boot/kernel/drm.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/drm.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/drm.ko
> Reading symbols from /boot/kernel/linuxkpi_gplv2.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/linuxkpi_gplv2.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/linuxkpi_gplv2.ko
> Reading symbols from /boot/kernel/i915kms.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/i915kms.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/i915kms.ko
> Reading symbols from /boot/modules/i915_kbl_dmc_ver1_04_bin.ko...done.
> Loaded symbols for /boot/modules/i915_kbl_dmc_ver1_04_bin.ko
> Reading symbols from /boot/kernel/mac_ntpd.ko...Reading symbols from
> /usr/lib/debug//boot/kernel/mac_ntpd.ko.debug...done.
> done.
> Loaded symbols for /boot/kernel/mac_ntpd.ko
> #0  doadump (textdump=1) at src/sys/amd64/include/pcpu_aux.h:55
> 55		__asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct pcpu,
> (kgdb) q
>
> Command exit status: 0
> Script done on Thu Dec  3 07:13:48 2020
>
> kkgdb is a shell script of mine that prepends /usr/libexec to PATH and
> exec's kgdb with the given command line. That shell script makes life
> in kgdb bearable.
>
> The minidump is available on request.
>
> Is this a known case?
>
> --
> Trond.
> _______________________________________________
> freebsd-current_at_freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
>


-- 
Mateusz Guzik <mjguzik gmail.com>
Received on Thu Dec 03 2020 - 09:46:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:26 UTC