syzbot


WARNING in aa_change_profile

Status: auto-closed as invalid on 2021/08/29 07:30
Reported-by: syzbot+b173aa254e7452b7ad2e@syzkaller.appspotmail.com
First crash: 1472d, last: 1302d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 WARNING in aa_change_profile (2) 11 825d 1049d 0/1 auto-obsoleted due to no activity on 2022/12/19 03:14
linux-4.14 WARNING in aa_change_profile (3) 1 665d 665d 0/1 upstream: reported on 2023/01/27 15:13

Sample crash report:
------------[ cut here ]------------
WARNING: CPU: 0 PID: 7673 at security/apparmor/file.c:136 aa_audit_file.cold+0x18/0x4f security/apparmor/file.c:136
 inet_create net/ipv4/af_inet.c:291 [inline]
 inet_create+0xae1/0xca0 net/ipv4/af_inet.c:244
Kernel panic - not syncing: panic_on_warn set ...

 __sock_create+0x303/0x620 net/socket.c:1275
 sock_create net/socket.c:1315 [inline]
 SYSC_socket net/socket.c:1345 [inline]
 SyS_socket+0xd1/0x1b0 net/socket.c:1325
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4665f9
RSP: 002b:00007f37dcc49188 EFLAGS: 00000246 ORIG_RAX: 0000000000000029
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000003 RSI: 0000000000000006 RDI: 0000000000000002
RBP: 00007f37dcc491d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffce27a7cff R14: 00007f37dcc49300 R15: 0000000000022000
CPU: 0 PID: 7673 Comm: syz-executor.1 Not tainted 4.14.232-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:964
RIP: 0010:aa_audit_file.cold+0x18/0x4f security/apparmor/file.c:136
RSP: 0018:ffff88820cbd77d0 EFLAGS: 00010282
RAX: 0000000000000049 RBX: 1ffff1104197aefd RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff81441a30 RDI: ffffed104197aef0
RBP: ffff88820cbd79f8 R08: 0000000000000049 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff88823f8b8d80 R14: ffff88820cbd7848 R15: 0000000000000000
 aa_change_profile+0xcd3/0x2440 security/apparmor/domain.c:1277
 apparmor_setprocattr+0x972/0xa80 security/apparmor/lsm.c:649
 security_setprocattr+0x74/0xb0 security/security.c:1272
 proc_pid_attr_write+0x1bd/0x280 fs/proc/base.c:2588
 __vfs_write+0xe4/0x630 fs/read_write.c:480
 vfs_write+0x17f/0x4d0 fs/read_write.c:544
 SYSC_write fs/read_write.c:590 [inline]
 SyS_write+0xf2/0x210 fs/read_write.c:582
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x4665f9
RSP: 002b:00007f5b15c81188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 00000000004665f9
RDX: 0000000000000007 RSI: 0000000020000080 RDI: 0000000000000003
RBP: 00007f5b15c811d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffffb8bc1ef R14: 00007f5b15c81300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2021/05/01 07:29 linux-4.14.y 7d7d1c0ab3eb 77e2b668 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2021/04/07 23:27 linux-4.14.y 0cc244011f40 6a81331a .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2021/03/13 22:03 linux-4.14.y c7150cd2fa8c 4a003785 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2021/03/13 15:12 linux-4.14.y c7150cd2fa8c 4a003785 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2021/02/22 09:46 linux-4.14.y 29c52025152b a659b3f1 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2021/01/28 17:27 linux-4.14.y 2d2791fce891 eefc07f2 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2020/12/25 18:36 linux-4.14.y 3f2ecb86cb90 b982b3ea .config console log report info ci2-linux-4-14
2020/12/05 16:11 linux-4.14.y c196b3a9c83a 0ef84591 .config console log report info ci2-linux-4-14
2020/11/30 06:03 linux-4.14.y 87335852c5d9 a0092f9d .config console log report info ci2-linux-4-14
2020/11/19 10:01 linux-4.14.y 8961076ed318 0767f13f .config console log report info ci2-linux-4-14
2020/11/12 03:45 linux-4.14.y 27ce4f2a6817 cca87986 .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.