Comment 9 for bug 2048951

Revision history for this message
Pavel Malyshev (afunix) wrote : Re: NUC12WSHi7 hangs few minutes after boot with linux-image-6.5.0-14-generic (linux-image-generic-hwe-22.04)

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