And with 5.19.0-45-generic:
sudo ./stress-ng --apparmor 1 --klog-check [sudo] password for cking: stress-ng: info: [1179] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor stress-ng: info: [1179] dispatching hogs: 1 apparmor stress-ng: info: [1180] klog-check: kernel cmdline: 'BOOT_IMAGE=/vmlinuz-5.19.0-45-generic root=/dev/mapper/ubuntu--vg-ubuntu--lv ro' stress-ng: error: [1180] klog-check: error: [93.527396] 'AppArmor DFA next/check upper bounds error' stress-ng: error: [1180] klog-check: error: [93.827976] 'AppArmor DFA state with invalid match flags' stress-ng: error: [1180] klog-check: error: [93.991395] 'AppArmor DFA next/check upper bounds error' stress-ng: error: [1180] klog-check: error: [93.992189] 'AppArmor DFA next/check upper bounds error' stress-ng: error: [1180] klog-check: error: [94.007400] 'AppArmor DFA state with invalid match flags' stress-ng: error: [1180] klog-check: error: [94.059345] 'AppArmor DFA state with invalid match flags' stress-ng: error: [1180] klog-check: error: [94.104414] 'AppArmor DFA next/check upper bounds error' stress-ng: error: [1180] klog-check: alert: [94.128617] 'BUG: kernel NULL pointer dereference, address: 0000000000000130' stress-ng: error: [1180] klog-check: alert: [94.128644] '#PF: supervisor read access in kernel mode' stress-ng: error: [1180] klog-check: alert: [94.128659] '#PF: error_code(0x0000) - not-present page' stress-ng: info: [1180] klog-check: warning: [94.128685] 'Oops: 0000 [#1] PREEMPT SMP PTI' stress-ng: info: [1180] klog-check: warning: [94.128698] 'CPU: 7 PID: 1185 Comm: stress-ng-appar Not tainted 5.19.0-45-generic #46-Ubuntu' stress-ng: info: [1180] klog-check: warning: [94.128722] 'Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.0-debian-1.16.0-5 04/01/2014' stress-ng: info: [1180] klog-check: warning: [94.128745] 'RIP: 0010:aa_unpack+0x11f/0x530' stress-ng: info: [1180] klog-check: warning: [94.128762] 'Code: 00 48 85 c0 0f 84 15 04 00 00 48 8d 75 a8 48 8d 7d b0 4c 8b 7d c0 e8 80 ec 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' stress-ng: info: [1180] klog-check: warning: [94.128807] 'RSP: 0018:ffffb1fdc0f57ce0 EFLAGS: 00010207' stress-ng: info: [1180] klog-check: warning: [94.129378] 'RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.129928] 'RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.130443] 'RBP: ffffb1fdc0f57d40 R08: 0000000000000000 R09: 0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.131056] 'R10: 0000000000000000 R11: 0000000000000000 R12: ffffb1fdc0f57da8' stress-ng: info: [1180] klog-check: warning: [94.131572] 'R13: ffffb1fdc0f57da0 R14: ffff9da384835962 R15: ffff9da384820010' stress-ng: info: [1180] klog-check: warning: [94.132090] 'FS: 00007fa65a059740(0000) GS:ffff9da3fbdc0000(0000) knlGS:0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.132652] 'CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033' stress-ng: info: [1180] klog-check: warning: [94.133206] 'CR2: 0000000000000130 CR3: 000000010d432006 CR4: 0000000000370ee0' stress-ng: info: [1180] klog-check: warning: [94.133739] 'DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.134282] 'DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400' stress-ng: info: [1180] klog-check: warning: [94.134868] 'Call Trace:' stress-ng: info: [1180] klog-check: warning: [94.135388] ' <TASK>' stress-ng: info: [1180] klog-check: warning: [94.135933] ' aa_replace_profiles+0xa1/0x10b0' stress-ng: info: [1180] klog-check: warning: [94.136471] ' ? check_heap_object+0x29/0x1e0' stress-ng: info: [1180] klog-check: warning: [94.137018] ' ? __check_object_size.part.0+0x4c/0xf0' stress-ng: info: [1180] klog-check: warning: [94.137528] ' policy_update+0xd0/0x170' stress-ng: info: [1180] klog-check: warning: [94.138061] ' profile_replace+0xb9/0x150' stress-ng: info: [1180] klog-check: warning: [94.138612] ' vfs_write+0xb7/0x290' stress-ng: info: [1180] klog-check: warning: [94.139124] ' ksys_write+0x73/0x100' stress-ng: info: [1180] klog-check: warning: [94.139616] ' __x64_sys_write+0x19/0x30' stress-ng: info: [1180] klog-check: warning: [94.140104] ' do_syscall_64+0x58/0x90' stress-ng: info: [1180] klog-check: warning: [94.140651] ' ? syscall_exit_to_user_mode+0x29/0x50' stress-ng: info: [1180] klog-check: warning: [94.141130] ' ? do_syscall_64+0x67/0x90' stress-ng: info: [1180] klog-check: warning: [94.141630] ' ? do_syscall_64+0x67/0x90' stress-ng: info: [1180] klog-check: warning: [94.142117] ' ? do_syscall_64+0x67/0x90' stress-ng: info: [1180] klog-check: warning: [94.142627] ' entry_SYSCALL_64_after_hwframe+0x63/0xcd' stress-ng: info: [1180] klog-check: warning: [94.143095] 'RIP: 0033:0x7fa65ad0cd94' stress-ng: info: [1180] klog-check: warning: [94.143563] 'Code: 15 71 90 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 80 3d 4d 18 0f 00 00 74 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 48 83 ec 28 48 89 54 24 18 48' stress-ng: info: [1180] klog-check: warning: [94.144647] 'RSP: 002b:00007fff859cc118 EFLAGS: 00000202 ORIG_RAX: 0000000000000001' stress-ng: info: [1180] klog-check: warning: [94.145158] 'RAX: ffffffffffffffda RBX: 00005558200f6220 RCX: 00007fa65ad0cd94' stress-ng: info: [1180] klog-check: warning: [94.145709] 'RDX: 0000000000015962 RSI: 00005558200f8870 RDI: 0000000000000005' stress-ng: info: [1180] klog-check: warning: [94.146216] 'RBP: 0000000000015962 R08: 000055582012eb00 R09: 0000000000000073' stress-ng: info: [1180] klog-check: warning: [94.146753] 'R10: 0000000000000000 R11: 0000000000000202 R12: 00005558200f8870' stress-ng: info: [1180] klog-check: warning: [94.147265] 'R13: 0000000000000005 R14: 0000000000000005 R15: 0000000000000005' stress-ng: info: [1180] klog-check: warning: [94.147834] ' </TASK>' stress-ng: info: [1180] klog-check: warning: [94.148346] 'Modules linked in: cfg80211 binfmt_misc intel_rapl_msr intel_rapl_common snd_hda_codec_generic ledtrig_audio kvm_intel snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi kvm snd_hda_codec snd_hda_core input_leds rapl snd_hwdep joydev snd_pcm serio_raw snd_timer snd soundcore mac_hid dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua msr ramoops reed_solomon pstore_blk pstore_zone efi_pstore qemu_fw_cfg ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crct10dif_pclmul qxl drm_ttm_helper crc32_pclmul ttm ghash_clmulni_intel drm_kms_helper aesni_intel syscopyarea sysfillrect crypto_simd sysimgblt cryptd virtio_net fb_sys_fops net_failover i2c_i801 failover virtio_rng virtio_blk psmouse drm i2c_smbus ahci xhci_pci libahci xhci_pci_renesas lpc_ich' stress-ng: info: [1180] klog-check: warning: [94.153225] 'CR2: 0000000000000130' stress-ng: info: [1180] klog-check: warning: [94.153805] '---[ end trace 0000000000000000 ]---' stress-ng: info: [1180] klog-check: warning: [94.154368] 'RIP: 0010:aa_unpack+0x11f/0x530' stress-ng: info: [1180] klog-check: warning: [94.154957] 'Code: 00 48 85 c0 0f 84 15 04 00 00 48 8d 75 a8 48 8d 7d b0 4c 8b 7d c0 e8 80 ec 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' stress-ng: info: [1180] klog-check: warning: [94.156159] 'RSP: 0018:ffffb1fdc0f57ce0 EFLAGS: 00010207' stress-ng: info: [1180] klog-check: warning: [94.156745] 'RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.157088] 'RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.157422] 'RBP: ffffb1fdc0f57d40 R08: 0000000000000000 R09: 0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.157751] 'R10: 0000000000000000 R11: 0000000000000000 R12: ffffb1fdc0f57da8' stress-ng: info: [1180] klog-check: warning: [94.158076] 'R13: ffffb1fdc0f57da0 R14: ffff9da384835962 R15: ffff9da384820010' stress-ng: info: [1180] klog-check: warning: [94.158406] 'FS: 00007fa65a059740(0000) GS:ffff9da3fbdc0000(0000) knlGS:0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.158739] 'CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033' stress-ng: info: [1180] klog-check: warning: [94.159070] 'CR2: 0000000000000130 CR3: 000000010d432006 CR4: 0000000000370ee0' stress-ng: info: [1180] klog-check: warning: [94.159405] 'DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000' stress-ng: info: [1180] klog-check: warning: [94.159741] 'DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400'
And with 5.19.0-45-generic:
sudo ./stress-ng --apparmor 1 --klog-check /vmlinuz- 5.19.0- 45-generic root=/dev/ mapper/ ubuntu- -vg-ubuntu- -lv ro' debian- 1.16.0- 5 04/01/2014' unpack+ 0x11f/0x530' f57ce0 EFLAGS: 00010207' 0(0000) GS:ffff9da3fbdc 0000(0000) knlGS:000000000 0000000' profiles+ 0xa1/0x10b0' object+ 0x29/0x1e0' object_ size.part. 0+0x4c/ 0xf0' update+ 0xd0/0x170' replace+ 0xb9/0x150' 0xb7/0x290' 0x73/0x100' write+0x19/ 0x30' 64+0x58/ 0x90' exit_to_ user_mode+ 0x29/0x50' 64+0x67/ 0x90' 64+0x67/ 0x90' 64+0x67/ 0x90' 64_after_ hwframe+ 0x63/0xcd' cd94' 9cc118 EFLAGS: 00000202 ORIG_RAX: 0000000000000001' codec_generic ledtrig_audio kvm_intel snd_hda_intel snd_intel_dspcfg snd_intel_sdw_acpi kvm snd_hda_codec snd_hda_core input_leds rapl snd_hwdep joydev snd_pcm serio_raw snd_timer snd soundcore mac_hid dm_multipath scsi_dh_rdac scsi_dh_emc scsi_dh_alua msr ramoops reed_solomon pstore_blk pstore_zone efi_pstore qemu_fw_cfg ip_tables x_tables autofs4 btrfs blake2b_generic raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear hid_generic usbhid hid crct10dif_pclmul qxl drm_ttm_helper crc32_pclmul ttm ghash_clmulni_intel drm_kms_helper aesni_intel syscopyarea sysfillrect crypto_simd sysimgblt cryptd virtio_net fb_sys_fops net_failover i2c_i801 failover virtio_rng virtio_blk psmouse drm i2c_smbus ahci xhci_pci libahci xhci_pci_renesas lpc_ich' unpack+ 0x11f/0x530' f57ce0 EFLAGS: 00010207' 0(0000) GS:ffff9da3fbdc 0000(0000) knlGS:000000000 0000000'
[sudo] password for cking:
stress-ng: info: [1179] defaulting to a 86400 second (1 day, 0.00 secs) run per stressor
stress-ng: info: [1179] dispatching hogs: 1 apparmor
stress-ng: info: [1180] klog-check: kernel cmdline: 'BOOT_IMAGE=
stress-ng: error: [1180] klog-check: error: [93.527396] 'AppArmor DFA next/check upper bounds error'
stress-ng: error: [1180] klog-check: error: [93.827976] 'AppArmor DFA state with invalid match flags'
stress-ng: error: [1180] klog-check: error: [93.991395] 'AppArmor DFA next/check upper bounds error'
stress-ng: error: [1180] klog-check: error: [93.992189] 'AppArmor DFA next/check upper bounds error'
stress-ng: error: [1180] klog-check: error: [94.007400] 'AppArmor DFA state with invalid match flags'
stress-ng: error: [1180] klog-check: error: [94.059345] 'AppArmor DFA state with invalid match flags'
stress-ng: error: [1180] klog-check: error: [94.104414] 'AppArmor DFA next/check upper bounds error'
stress-ng: error: [1180] klog-check: alert: [94.128617] 'BUG: kernel NULL pointer dereference, address: 0000000000000130'
stress-ng: error: [1180] klog-check: alert: [94.128644] '#PF: supervisor read access in kernel mode'
stress-ng: error: [1180] klog-check: alert: [94.128659] '#PF: error_code(0x0000) - not-present page'
stress-ng: info: [1180] klog-check: warning: [94.128685] 'Oops: 0000 [#1] PREEMPT SMP PTI'
stress-ng: info: [1180] klog-check: warning: [94.128698] 'CPU: 7 PID: 1185 Comm: stress-ng-appar Not tainted 5.19.0-45-generic #46-Ubuntu'
stress-ng: info: [1180] klog-check: warning: [94.128722] 'Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.0-
stress-ng: info: [1180] klog-check: warning: [94.128745] 'RIP: 0010:aa_
stress-ng: info: [1180] klog-check: warning: [94.128762] 'Code: 00 48 85 c0 0f 84 15 04 00 00 48 8d 75 a8 48 8d 7d b0 4c 8b 7d c0 e8 80 ec 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'
stress-ng: info: [1180] klog-check: warning: [94.128807] 'RSP: 0018:ffffb1fdc0
stress-ng: info: [1180] klog-check: warning: [94.129378] 'RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000'
stress-ng: info: [1180] klog-check: warning: [94.129928] 'RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000'
stress-ng: info: [1180] klog-check: warning: [94.130443] 'RBP: ffffb1fdc0f57d40 R08: 0000000000000000 R09: 0000000000000000'
stress-ng: info: [1180] klog-check: warning: [94.131056] 'R10: 0000000000000000 R11: 0000000000000000 R12: ffffb1fdc0f57da8'
stress-ng: info: [1180] klog-check: warning: [94.131572] 'R13: ffffb1fdc0f57da0 R14: ffff9da384835962 R15: ffff9da384820010'
stress-ng: info: [1180] klog-check: warning: [94.132090] 'FS: 00007fa65a05974
stress-ng: info: [1180] klog-check: warning: [94.132652] 'CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033'
stress-ng: info: [1180] klog-check: warning: [94.133206] 'CR2: 0000000000000130 CR3: 000000010d432006 CR4: 0000000000370ee0'
stress-ng: info: [1180] klog-check: warning: [94.133739] 'DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000'
stress-ng: info: [1180] klog-check: warning: [94.134282] 'DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400'
stress-ng: info: [1180] klog-check: warning: [94.134868] 'Call Trace:'
stress-ng: info: [1180] klog-check: warning: [94.135388] ' <TASK>'
stress-ng: info: [1180] klog-check: warning: [94.135933] ' aa_replace_
stress-ng: info: [1180] klog-check: warning: [94.136471] ' ? check_heap_
stress-ng: info: [1180] klog-check: warning: [94.137018] ' ? __check_
stress-ng: info: [1180] klog-check: warning: [94.137528] ' policy_
stress-ng: info: [1180] klog-check: warning: [94.138061] ' profile_
stress-ng: info: [1180] klog-check: warning: [94.138612] ' vfs_write+
stress-ng: info: [1180] klog-check: warning: [94.139124] ' ksys_write+
stress-ng: info: [1180] klog-check: warning: [94.139616] ' __x64_sys_
stress-ng: info: [1180] klog-check: warning: [94.140104] ' do_syscall_
stress-ng: info: [1180] klog-check: warning: [94.140651] ' ? syscall_
stress-ng: info: [1180] klog-check: warning: [94.141130] ' ? do_syscall_
stress-ng: info: [1180] klog-check: warning: [94.141630] ' ? do_syscall_
stress-ng: info: [1180] klog-check: warning: [94.142117] ' ? do_syscall_
stress-ng: info: [1180] klog-check: warning: [94.142627] ' entry_SYSCALL_
stress-ng: info: [1180] klog-check: warning: [94.143095] 'RIP: 0033:0x7fa65ad0
stress-ng: info: [1180] klog-check: warning: [94.143563] 'Code: 15 71 90 0e 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 80 3d 4d 18 0f 00 00 74 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 48 83 ec 28 48 89 54 24 18 48'
stress-ng: info: [1180] klog-check: warning: [94.144647] 'RSP: 002b:00007fff85
stress-ng: info: [1180] klog-check: warning: [94.145158] 'RAX: ffffffffffffffda RBX: 00005558200f6220 RCX: 00007fa65ad0cd94'
stress-ng: info: [1180] klog-check: warning: [94.145709] 'RDX: 0000000000015962 RSI: 00005558200f8870 RDI: 0000000000000005'
stress-ng: info: [1180] klog-check: warning: [94.146216] 'RBP: 0000000000015962 R08: 000055582012eb00 R09: 0000000000000073'
stress-ng: info: [1180] klog-check: warning: [94.146753] 'R10: 0000000000000000 R11: 0000000000000202 R12: 00005558200f8870'
stress-ng: info: [1180] klog-check: warning: [94.147265] 'R13: 0000000000000005 R14: 0000000000000005 R15: 0000000000000005'
stress-ng: info: [1180] klog-check: warning: [94.147834] ' </TASK>'
stress-ng: info: [1180] klog-check: warning: [94.148346] 'Modules linked in: cfg80211 binfmt_misc intel_rapl_msr intel_rapl_common snd_hda_
stress-ng: info: [1180] klog-check: warning: [94.153225] 'CR2: 0000000000000130'
stress-ng: info: [1180] klog-check: warning: [94.153805] '---[ end trace 0000000000000000 ]---'
stress-ng: info: [1180] klog-check: warning: [94.154368] 'RIP: 0010:aa_
stress-ng: info: [1180] klog-check: warning: [94.154957] 'Code: 00 48 85 c0 0f 84 15 04 00 00 48 8d 75 a8 48 8d 7d b0 4c 8b 7d c0 e8 80 ec 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'
stress-ng: info: [1180] klog-check: warning: [94.156159] 'RSP: 0018:ffffb1fdc0
stress-ng: info: [1180] klog-check: warning: [94.156745] 'RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000'
stress-ng: info: [1180] klog-check: warning: [94.157088] 'RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000'
stress-ng: info: [1180] klog-check: warning: [94.157422] 'RBP: ffffb1fdc0f57d40 R08: 0000000000000000 R09: 0000000000000000'
stress-ng: info: [1180] klog-check: warning: [94.157751] 'R10: 0000000000000000 R11: 0000000000000000 R12: ffffb1fdc0f57da8'
stress-ng: info: [1180] klog-check: warning: [94.158076] 'R13: ffffb1fdc0f57da0 R14: ffff9da384835962 R15: ffff9da384820010'
stress-ng: info: [1180] klog-check: warning: [94.158406] 'FS: 00007fa65a05974
stress-ng: info: [1180] klog-check: warning: [94.158739] 'CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033'
stress-ng: info: [1180] klog-check: warning: [94.159070] 'CR2: 0000000000000130 CR3: 000000010d432006 CR4: 0000000000370ee0'
stress-ng: info: [1180] klog-check: warning: [94.159405] 'DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000'
stress-ng: info: [1180] klog-check: warning: [94.159741] 'DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400'