I was able to disable mode switch and record a video with the kernel attempting to output the oops. It seems to be an issue with apparmor.
The text I manually recovered from the video:
--- BUG: kernel NULL pointer dereference, address: 0000000000000008 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page P?D 0 P4D 0 Ooops: 0000 [#1] PREEMPT SMP WDPTI ... Call Trace: <TASK> ? show_regs+0x6d/0x80 ? __die+0x24/0x80 ? page_fault_oops+0x99/0x1b0 ? do_user_addr_fault+0x31d/0x6b0 ? exc_page_fault+0x83/0x1b0 ? asm_exc_page_fault+0x27/0x30 ? find_attach+0x11a/0x5e0 ? d_namespace_path_constprop.0+0xa3/0x310 profile_transition+0x5e0/0x910 apparmor_bprm_creds_for_exec+0x3b9/0xc00 security_bprm_creds_for_exec+0x2e/0x50 bprm_execve.part.0+0x12f/0x250 bprm_execve+0x5d/0xa0 do_execveat_common.isra.0+0x1a9/0x260 __x64_sys_execve+0x87/0x60 do_syscall_64+0x58/0x?0 ? syscall_exit_to_user_mode+0x37/0x60 ? do_syscall_64+0x67/0x90 entry_SYSCALL_64_after_hwframe+0x6r/0xd8 ---
I will also attach screenshots from the video
I was able to disable mode switch and record a video with the kernel attempting to output the oops.
It seems to be an issue with apparmor.
The text I manually recovered from the video:
--- oops+0x99/ 0x1b0 addr_fault+ 0x31d/0x6b0 fault+0x83/ 0x1b0 page_fault+ 0x27/0x30 0x11a/0x5e0 path_constprop. 0+0xa3/ 0x310 transition+ 0x5e0/0x910 bprm_creds_ for_exec+ 0x3b9/0xc00 bprm_creds_ for_exec+ 0x2e/0x50 part.0+ 0x12f/0x250 0x5d/0xa0 common. isra.0+ 0x1a9/0x260 sys_execve+ 0x87/0x60 64+0x58/ 0x?0 exit_to_ user_mode+ 0x37/0x60 64+0x67/ 0x90 SYSCALL_ 64_after_ hwframe+ 0x6r/0xd8
BUG: kernel NULL pointer dereference, address: 0000000000000008
#PF: supervisor read access in kernel mode
#PF: error_code(0x0000) - not-present page
P?D 0 P4D 0
Ooops: 0000 [#1] PREEMPT SMP WDPTI
...
Call Trace:
<TASK>
? show_regs+0x6d/0x80
? __die+0x24/0x80
? page_fault_
? do_user_
? exc_page_
? asm_exc_
? find_attach+
? d_namespace_
profile_
apparmor_
security_
bprm_execve.
bprm_execve+
do_execveat_
__x64_
do_syscall_
? syscall_
? do_syscall_
entry_
---
I will also attach screenshots from the video