kernel NULL pointer dereference in apparmor_parser
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-meta-hwe-5.19 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Since about a month or so, I get many oopses from apparmor, such as this one:
[ 14.620816] BUG: kernel NULL pointer dereference, address: 0000000000000130
[ 14.620822] #PF: supervisor read access in kernel mode
[ 14.620825] #PF: error_code(0x0000) - not-present page
[ 14.620829] PGD 0 P4D 0
[ 14.620834] Oops: 0000 [#1] PREEMPT SMP PTI
[ 14.620838] CPU: 0 PID: 1105 Comm: apparmor_parser Not tainted 5.19.0-38-generic #39~22.04.1-Ubuntu
[ 14.620842] Hardware name: LENOVO 20FES3TE00/
[ 14.620845] RIP: 0010:aa_
[ 14.620853] Code: 00 48 85 c0 0f 84 29 04 00 00 48 8d 75 a0 48 8d 7d b0 4c 8b 7d c0 e8 e8 ea ff ff 48 89 c3 48 3d 00 f0 ff ff 0f 87 00 02 00 00 <4c> 8b b0 30 01 00 00 4d 85 f6 0f 84 38 01 00 00 49 8b 86 c8 00 00
[ 14.620857] RSP: 0018:ffffb07141
[ 14.620861] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 14.620864] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 14.620867] RBP: ffffb07141cc3d48 R08: 0000000000000000 R09: 0000000000000000
[ 14.620869] R10: 0000000000000000 R11: 0000000000000000 R12: ffffb07141cc3da8
[ 14.620872] R13: ffffb07141cc3da0 R14: ffff9755c5518000 R15: ffff9755c5500010
[ 14.620875] FS: 00007f53ef09174
[ 14.620879] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 14.620882] CR2: 0000000000000130 CR3: 0000000106b64006 CR4: 00000000003706f0
[ 14.620886] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 14.620888] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 14.620891] Call Trace:
[ 14.620893] <TASK>
[ 14.620899] aa_replace_
[ 14.620906] ? _copy_from_
[ 14.620913] policy_
[ 14.620918] profile_
[ 14.620923] vfs_write+
[ 14.620929] ksys_write+
[ 14.620933] __x64_sys_
[ 14.620937] do_syscall_
[ 14.620941] ? irqentry_
[ 14.620946] ? irqentry_
[ 14.620949] ? exc_page_
[ 14.620954] entry_SYSCALL_
[ 14.620960] RIP: 0033:0x7f53eef14a37
[ 14.620964] Code: 10 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
[ 14.620968] RSP: 002b:00007fffa3
[ 14.620972] RAX: ffffffffffffffda RBX: 00005628aad3df60 RCX: 00007f53eef14a37
[ 14.620975] RDX: 0000000000018000 RSI: 00005628aad6e810 RDI: 0000000000000006
[ 14.620978] RBP: 0000000000018000 R08: 0000000000000000 R09: 00005628aad6e810
[ 14.620980] R10: 0000000000000000 R11: 0000000000000246 R12: 00005628aad6e810
[ 14.620983] R13: 0000000000018000 R14: 00005628a9b26c5b R15: 0000000000000006
[ 14.620989] </TASK>
[ 14.620991] Modules linked in: snd_soc_avs snd_soc_skl snd_soc_hdac_hda snd_hda_ext_core snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_
[ 14.621071] hid_sensor_trigger iwlwifi snd_timer industrialio_
[ 14.621163] CR2: 0000000000000130
[ 14.621166] ---[ end trace 0000000000000000 ]---
[ 14.826766] RIP: 0010:aa_
[ 14.826791] Code: 00 48 85 c0 0f 84 29 04 00 00 48 8d 75 a0 48 8d 7d b0 4c 8b 7d c0 e8 e8 ea ff ff 48 89 c3 48 3d 00 f0 ff ff 0f 87 00 02 00 00 <4c> 8b b0 30 01 00 00 4d 85 f6 0f 84 38 01 00 00 49 8b 86 c8 00 00
[ 14.826794] RSP: 0018:ffffb07141
[ 14.826799] RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
[ 14.826801] RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
[ 14.826803] RBP: ffffb07141cc3d48 R08: 0000000000000000 R09: 0000000000000000
[ 14.826806] R10: 0000000000000000 R11: 0000000000000000 R12: ffffb07141cc3da8
[ 14.826808] R13: ffffb07141cc3da0 R14: ffff9755c5518000 R15: ffff9755c5500010
[ 14.826810] FS: 00007f53ef09174
[ 14.826813] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 14.826816] CR2: 0000000000000130 CR3: 0000000106b64006 CR4: 00000000003706f0
[ 14.826819] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 14.826821] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
It's always 0000000000000130. Going through old logs, it started happening around 2023-03-18, so that would be 5.19.0-35-generic. But it didn't start with the upgrade to 5.19.0-35-generic, I have earlier boots with that version that don't error.
It doesn't error if I boot the non-HWE kernel (5.15.0-
It doesn't seem to impact normal usage, but my firmware sometimes shows the message that the nonvolatile UEFI storage is almost full on boot, which seems to be caused by this.
$ lsb_release -rd
Description: Ubuntu 22.04.2 LTS
Release: 22.04
$ apt-cache policy linux-generic-
linux-generic-
Installed: 5.19.0.
Candidate: 5.19.0.
Version table:
*** 5.19.0.
500 http://
500 http://
100 /var/lib/
5.15.0.25.27 500
500 http://
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-generic-
ProcVersionSign
Uname: Linux 5.19.0-38-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: KDE
Date: Sat Apr 15 13:07:40 2023
InstallationDate: Installed on 2015-12-11 (2681 days ago)
InstallationMedia: Kubuntu 14.04.3 LTS "Trusty Tahr" - Beta amd64 (20150805)
SourcePackage: linux-meta-hwe-5.19
UpgradeStatus: No upgrade log present (probably fresh install)
Status changed to 'Confirmed' because the bug affects multiple users.