[Bug 259555] Fatal trap 12: page fault while in kernel mode WARNING !drm_modeset_is_locked(&crtc->mutex) failed at /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/drivers/gpu/drm/drm_atomic_helper.c:577

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 30 Oct 2021 17:12:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259555

            Bug ID: 259555
           Summary: Fatal trap 12: page fault while in kernel mode WARNING
                    !drm_modeset_is_locked(&crtc->mutex) failed at
                    /wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms
                    -drm-8843e1fc5/drivers/gpu/drm/drm_atomic_helper.c:577
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: freebsd@sysctl.cz

Created attachment 229151
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=229151&action=edit
core.txt.0

Fatal trap 12: page fault while in kernel mode
cpuid = 2; apic id = 02
fault virtual address   = 0xfffff801c23fe2c0
fault code              = supervisor read instruction, protection violation
instruction pointer     = 0x20:0xfffff801c23fe2c0
stack pointer           = 0x28:0xfffffe008423b2c8
frame pointer           = 0x28:0xfffffe008423b360
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         = 56695 (VirtualBoxVM)
trap number             = 12
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
/wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/drivers/gpu/drm/drm_atomic_helper.c:577
#0 0xffffffff82cdd483 at linux_dump_stack+0x23
#1 0xffffffff82c676bd at drm_atomic_helper_check_modeset+0xcd
#2 0xffffffff82bb11cf at intel_atomic_check+0x1f
#3 0xffffffff82c656bb at drm_atomic_check_only+0x2ab
#4 0xffffffff82c65a63 at drm_atomic_commit+0x13
#5 0xffffffff82c91a38 at restore_fbdev_mode_atomic+0x1c8
#6 0xffffffff82c8dd5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a
#7 0xffffffff82cb3717 at vt_kms_postswitch+0x127
#8 0xffffffff80a2af9a at vt_window_switch+0x13a
#9 0xffffffff80a2800f at vtterm_cngrab+0x1f
#10 0xffffffff80b5eb36 at cngrab+0x16
#11 0xffffffff80bbf055 at vpanic+0xe5
#12 0xffffffff80bbef63 at panic+0x43
#13 0xffffffff8108f941 at trap_fatal+0x391
#14 0xffffffff8108f99f at trap_pfault+0x4f
#15 0xffffffff8108efe6 at trap+0x286
#16 0xffffffff81066d48 at calltrap+0x8
#17 0xffffffff82ea61d5 at vboxNetFltPortXmit+0x145
WARNING !drm_modeset_is_locked(&crtc->mutex) failed at
/wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/drivers/gpu/drm/drm_atomic_helper.c:577
#0 0xffffffff82cdd483 at linux_dump_stack+0x23
#1 0xffffffff82c676bd at drm_atomic_helper_check_modeset+0xcd
#2 0xffffffff82bb11cf at intel_atomic_check+0x1f
#3 0xffffffff82c656bb at drm_atomic_check_only+0x2ab
#4 0xffffffff82c65a63 at drm_atomic_commit+0x13
#5 0xffffffff82c91a38 at restore_fbdev_mode_atomic+0x1c8
#6 0xffffffff82c8dd5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a
#7 0xffffffff82cb3717 at vt_kms_postswitch+0x127
#8 0xffffffff80a2af9a at vt_window_switch+0x13a
#9 0xffffffff80a2800f at vtterm_cngrab+0x1f
#10 0xffffffff80b5eb36 at cngrab+0x16
#11 0xffffffff80bbf055 at vpanic+0xe5
#12 0xffffffff80bbef63 at panic+0x43
#13 0xffffffff8108f941 at trap_fatal+0x391
#14 0xffffffff8108f99f at trap_pfault+0x4f
#15 0xffffffff8108efe6 at trap+0x286
#16 0xffffffff81066d48 at calltrap+0x8
#17 0xffffffff82ea61d5 at vboxNetFltPortXmit+0x145
WARNING !drm_modeset_is_locked(&plane->mutex) failed at
/wrkdirs/usr/ports/graphics/drm-fbsd12.0-kmod/work/kms-drm-8843e1fc5/drivers/gpu/drm/drm_atomic_helper.c:821
#0 0xffffffff82cdd483 at linux_dump_stack+0x23
#1 0xffffffff82c68917 at drm_atomic_helper_check_planes+0xa7
#2 0xffffffff82bb1eec at intel_atomic_check+0xd3c
#3 0xffffffff82c656bb at drm_atomic_check_only+0x2ab
#4 0xffffffff82c65a63 at drm_atomic_commit+0x13
#5 0xffffffff82c91a38 at restore_fbdev_mode_atomic+0x1c8
#6 0xffffffff82c8dd5a at drm_fb_helper_restore_fbdev_mode_unlocked+0x7a
#7 0xffffffff82cb3717 at vt_kms_postswitch+0x127
#8 0xffffffff80a2af9a at vt_window_switch+0x13a
#9 0xffffffff80a2800f at vtterm_cngrab+0x1f
#10 0xffffffff80b5eb36 at cngrab+0x16
#11 0xffffffff80bbf055 at vpanic+0xe5
#12 0xffffffff80bbef63 at panic+0x43
#13 0xffffffff8108f941 at trap_fatal+0x391
#14 0xffffffff8108f99f at trap_pfault+0x4f
#15 0xffffffff8108efe6 at trap+0x286
#16 0xffffffff81066d48 at calltrap+0x8
#17 0xffffffff82ea61d5 at vboxNetFltPortXmit+0x145
<4>WARN_ON(!mutex_is_locked(&dev->struct_mutex))

<4>WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))WARN_ON(!mutex_is_locked(&fbc->lock))
panic: page fault
cpuid = 2
time = 1635612191
KDB: stack backtrace:
#0 0xffffffff80c0ae35 at kdb_backtrace+0x65
#1 0xffffffff80bbf0eb at vpanic+0x17b
#2 0xffffffff80bbef63 at panic+0x43
#3 0xffffffff8108f941 at trap_fatal+0x391
#4 0xffffffff8108f99f at trap_pfault+0x4f
#5 0xffffffff8108efe6 at trap+0x286
#6 0xffffffff81066d48 at calltrap+0x8
#7 0xffffffff82ea61d5 at vboxNetFltPortXmit+0x145
#8 0xffffffff82fdb91e at marker_response_tlv_template+0x1237c2
#9 0xffffffff82fdb78c at marker_response_tlv_template+0x123630
#10 0xffffffff82fd65ca at marker_response_tlv_template+0x11e46e
#11 0xffffffff82fd5bf8 at marker_response_tlv_template+0x11da9c
#12 0xffffffff82ee9dac at marker_response_tlv_template+0x31c50
#13 0xffffffff8247e771 at supdrvIOCtlInnerUnrestricted+0x14c1
#14 0xffffffff8248d97b at VBoxDrvFreeBSDIOCtl+0xdb
#15 0xffffffff80a793c0 at devfs_ioctl+0xb0
#16 0xffffffff8124725b at VOP_IOCTL_APV+0x7b
#17 0xffffffff80c9cffa at vn_ioctl+0x16a
Uptime: 9h26m57s
Dumping 1407 out of 7838 MB:..2%..11%..21%..31%..41%..51%..61%..71%..81%..91%

__curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
55              __asm("movq %%gs:%P1,%0" : "=r" (td) : "n" (offsetof(struct
pcpu,
(kgdb) #0  __curthread () at /usr/src/sys/amd64/include/pcpu_aux.h:55
#1  doadump (textdump=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:371
#2  0xffffffff80bbed05 in kern_reboot (howto=260)
    at /usr/src/sys/kern/kern_shutdown.c:451
#3  0xffffffff80bbf143 in vpanic (fmt=<optimized out>, ap=<optimized out>)
    at /usr/src/sys/kern/kern_shutdown.c:880
#4  0xffffffff80bbef63 in panic (fmt=<unavailable>)
    at /usr/src/sys/kern/kern_shutdown.c:807
#5  0xffffffff8108f941 in trap_fatal (frame=0xfffffe008423b200, 
    eva=18446735285170463424) at /usr/src/sys/amd64/amd64/trap.c:921
#6  0xffffffff8108f99f in trap_pfault (frame=0xfffffe008423b200, 
    usermode=<optimized out>, signo=<optimized out>, ucode=<optimized out>)
    at /usr/src/sys/amd64/amd64/trap.c:739
#7  0xffffffff8108efe6 in trap (frame=0xfffffe008423b200)
    at /usr/src/sys/amd64/amd64/trap.c:405
#8  <signal handler called>
#9  0xfffff801c23fe2c0 in ?? ()
#10 0xffffffff82ea4241 in vboxNetFltPortOsXmit ()
   from /boot/modules/vboxnetflt.ko
#11 0xffffffff82ea61d5 in vboxNetFltPortXmit ()
   from /boot/modules/vboxnetflt.ko
#12 0xffffffff82fdb91e in ?? ()
#13 0xffffffffffffffff in ?? ()
#14 0x0000000000000003 in ?? ()
#15 0x0000000100000002 in ?? ()
#16 0x00000000000001e4 in ?? ()
#17 0xfffffe008423b448 in ?? ()
#18 0x0000000000000000 in ?? ()
(kgdb)

-- 
You are receiving this mail because:
You are the assignee for the bug.