Decklink - blackmagic kernel module SEGFAULT - 6.0.6-arch1-1

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

reinism

  • Posts: 4
  • Joined: Wed Nov 02, 2022 4:27 pm
  • Real Name: Reinis Muiznieks

Decklink - blackmagic kernel module SEGFAULT - 6.0.6-arch1-1

PostWed Nov 02, 2022 4:31 pm

Seems like kernel driver is broken again :/

Code: Select all
traps: Missing ENDBR: nothing+0x0/0x10 [blackmagic]
------------[ cut here ]------------
kernel BUG at arch/x86/kernel/traps.c:253!
invalid opcode: 0000 [#1] PREEMPT SMP NOPTI
CPU: 2 PID: 9263 Comm: insmod Tainted: P           OE      6.0.6-arch1-1 #1 a46cc4b882cfc11c3bbb09d6a0fab3dcad53b5c2
Hardware name: Framework Laptop/FRANBMCP0C, BIOS 03.06 10/18/2021
RIP: 0010:exc_control_protection+0xc2/0xd0
Code: fb ff 45 31 c9 49 89 d8 b9 09 00 00 00 48 8b 93 80 00 00 00 be fa 00 00 00 48 c7 c7 31 68 a9 ba e8 13 40 4b ff e9 64 ff ff ff <0f> 0b 66 66 2e 0f 1f 84 00 00 00 00 00 90 66 0f 1f 00 55 53 48 89
RSP: 0018:ffffb5350893fc28 EFLAGS: 00010002
RAX: 0000000000000033 RBX: ffffb5350893fc48 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffff89196faa1660 RDI: ffff89196faa1660
RBP: 0000000000000003 R08: 0000000000000000 R09: ffffb5350893fac0
R10: 0000000000000003 R11: ffffffffbb2cb508 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
FS:  00007f7cc2bf0740(0000) GS:ffff89196fa80000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055601fa87d98 CR3: 00000001ed510006 CR4: 0000000000f70ee0
PKRU: 55555554
Call Trace:
 <TASK>
 asm_exc_control_protection+0x26/0x30
RIP: 0010:nothing+0x0/0x10 [blackmagic]
Code: 41 5c 41 5d 41 5e 41 5f e9 cd 40 f2 f8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 <55> 48 89 e5 5d c3 66 2e 0f 1f 84 00 00 00 00 00 55 c7 05 dd 78 08
RSP: 0018:ffffb5350893fcf8 EFLAGS: 00010246
RAX: 0000000000000000 RBX: ffffffffc1362000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffb5350893fd10
RBP: ffffb5350893fd08 R08: ffffb5350893fd58 R09: 0000000000000010
R10: ffff890a0450ba10 R11: ffff8919afbfc000 R12: 0000000000000000
R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000
 __do_global_ctors_aux+0x22/0x60 [blackmagic e03d7b7388e10730af3d9b844e1d0d1d60427d22]
 ? blackmagic_serial_init+0xb3/0xb3 [blackmagic e03d7b7388e10730af3d9b844e1d0d1d60427d22]
 blackmagic_lib_init+0x9/0x10 [blackmagic e03d7b7388e10730af3d9b844e1d0d1d60427d22]
 pci_blackmagic_init+0xe/0xf4d [blackmagic e03d7b7388e10730af3d9b844e1d0d1d60427d22]
 do_one_initcall+0x5a/0x220
 do_init_module+0x4a/0x1e0
 __do_sys_finit_module+0xac/0x120
 do_syscall_64+0x5c/0x90
 ? syscall_exit_to_user_mode+0x1b/0x40
 ? do_syscall_64+0x6b/0x90
 ? syscall_exit_to_user_mode+0x1b/0x40
 ? do_syscall_64+0x6b/0x90
 ? do_syscall_64+0x6b/0x90
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f7cc27197fd


Has anyone already made a patch to fix this?

Thanks!
Offline

reinism

  • Posts: 4
  • Joined: Wed Nov 02, 2022 4:27 pm
  • Real Name: Reinis Muiznieks

Re: Decklink - blackmagic kernel module SEGFAULT - 6.0.6-arc

PostWed Nov 16, 2022 12:50 pm

I think I found the issue. Seems to be the same issue that Nvidia driver had. https://wiki.archlinux.org/title/NVIDIA#Installation
nvidia may not boot on Linux 5.18 (or later) on systems with Intel CPUs due to FS#74886/FS#74891. Until this is fixed, a workaround is disabling the Indirect Branch Tracking CPU security feature by setting the ibt=off kernel parameter from the bootloader. This security feature is responsible for mitigating a class of exploit techniques, but is deemed safe as a temporary stopgap solution. You can alternatively try nvidia-open and continue using IBT.


I fixed my Nvidia driver issues and decklink card works as well now.

So for anyone struggling as well run linux with `ibt=off` kernal parameters until there is official fix for it.

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 16 guests