WARNING in aa_policy_destroy

Status: upstream: reported C repro on 2026/08/22 00:35
Reported-by: syzbot+84d7369ef8280a132521@syzkaller.appspotmail.com
First crash: 55d, last: 45d
▶ ▼ Bug presence (1)
Date Name Commit Repro Result
2026/09/19 upstream (ToT) 40288c9206c1 C Didn't crash
▶ ▼ Similar bugs (2)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in aa_policy_destroy prio:low apparmor -1 syz 87 49d 53d 27/29 upstream: reported syz repro on 2026/08/24 06:07
linux-6.1 WARNING in aa_policy_destroy origin:lts-only -1 syz, C done 28 45d 56d 3/3 fixed on 2026/10/16 11:01

Sample crash report:
RBP: 00007f494b467090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f494d4d9218 R14: 00007f494d4d9180 R15: 00007ffce5a244b8
 </TASK>
------------[ cut here ]------------
AppArmor WARN aa_policy_destroy: (((!list_empty(&policy->profiles) && (&policy->profiles)->prev != ((void *) 0x122 + (0xdead000000000000UL))))): 
WARNING: CPU: 1 PID: 5345 at security/apparmor/lib.c:520 aa_policy_destroy+0x167/0x1b0 security/apparmor/lib.c:520
Modules linked in:
CPU: 1 PID: 5345 Comm: syz.3.265 Not tainted syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:aa_policy_destroy+0x167/0x1b0 security/apparmor/lib.c:520
Code: 85 ed 7e 4c e8 da 6d cd fd 5b 41 5c 41 5e 41 5f 5d c3 e8 cc 6d cd fd 48 c7 c7 60 5d 74 8a 48 c7 c6 46 11 d1 8b e8 e9 c7 09 06 <0f> 0b e9 07 ff ff ff e8 ad 6d cd fd 48 c7 c7 20 5e 74 8a 48 c7 c6
RSP: 0018:ffffc900034bf450 EFLAGS: 00010246
RAX: eda231b4af046e00 RBX: ffff888075bc2000 RCX: ffff8880222f9dc0
RDX: 0000000000000000 RSI: 0000000080000000 RDI: 0000000000000000
RBP: 0000000000000cc0 R08: ffffc900034bef87 R09: 1ffff92000697df0
R10: dffffc0000000000 R11: fffff52000697df1 R12: dead000000000122
R13: dffffc0000000000 R14: ffff888075bc2028 R15: dffffc0000000000
FS:  00007f494b4676c0(0000) GS:ffff8880b9100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f494b466ff8 CR3: 00000000185f7000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 aa_free_profile+0x5e/0x8a0 security/apparmor/policy.c:240
 aa_alloc_profile+0x11e/0x270 security/apparmor/policy.c:314
 unpack_profile security/apparmor/policy_unpack.c:727 [inline]
 aa_unpack+0x1214/0x4e30 security/apparmor/policy_unpack.c:1231
 aa_replace_profiles+0x20f/0x2ac0 security/apparmor/policy.c:931
 policy_update+0xce/0x160 security/apparmor/apparmorfs.c:506
 profile_replace+0x1ca/0x320 security/apparmor/apparmorfs.c:541
 vfs_write+0x304/0xd70 fs/read_write.c:592
 ksys_write+0x153/0x260 fs/read_write.c:647
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x4c/0xa0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x66/0xd0
RIP: 0033:0x7f494d251159
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f494b467028 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f494d4d9180 RCX: 00007f494d251159
RDX: 0000000000000052 RSI: 0000200000000300 RDI: 0000000000000006
RBP: 00007f494b467090 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007f494d4d9218 R14: 00007f494d4d9180 R15: 00007ffce5a244b8
 </TASK>

Crashes (10):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/09/01 09:17 linux-5.15.y 28c35638ec51 316d9396 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 13:25 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 11:43 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 10:02 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 04:59 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 03:14 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 01:51 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 01:45 linux-5.15.y 0eb903b5b519 1e72964b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 01:05 linux-5.15.y 0eb903b5b519 1e72964b .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
2026/08/22 00:34 linux-5.15.y 0eb903b5b519 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan WARNING in aa_policy_destroy
* Struck through repros no longer work on HEAD.