syzbot


WARNING in aa_change_profile (3)

Status: upstream: reported on 2023/01/27 15:13
Reported-by: syzbot+7c7a38a4bdda344d1e6d@syzkaller.appspotmail.com
First crash: 505d, last: 505d
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 664d 888d 0/1 auto-obsoleted due to no activity on 2022/12/19 03:14
linux-4.14 WARNING in aa_change_profile 11 1141d 1311d 0/1 auto-closed as invalid on 2021/08/29 07:30

Sample crash report:
AppArmor WARN aa_audit_file: ((!((&sa)->apparmor_audit_data)->request)): 
 fail_dump lib/fault-inject.c:51 [inline]
 should_fail.cold+0x10a/0x149 lib/fault-inject.c:149
 should_fail_alloc_page mm/page_alloc.c:2898 [inline]
 prepare_alloc_pages mm/page_alloc.c:4165 [inline]
 __alloc_pages_nodemask+0x21e/0x2900 mm/page_alloc.c:4213
 __alloc_pages include/linux/gfp.h:484 [inline]
 __alloc_pages_node include/linux/gfp.h:497 [inline]
 kmem_getpages mm/slab.c:1419 [inline]
 cache_grow_begin+0x91/0x700 mm/slab.c:2676
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8900 at security/apparmor/file.c:136 aa_audit_file.cold+0x18/0x4f security/apparmor/file.c:136
 cache_alloc_refill+0x273/0x350 mm/slab.c:3043
Kernel panic - not syncing: panic_on_warn set ...

 ____cache_alloc mm/slab.c:3125 [inline]
 __do_cache_alloc mm/slab.c:3347 [inline]
 slab_alloc mm/slab.c:3382 [inline]
 kmem_cache_alloc+0x333/0x3c0 mm/slab.c:3550
 getname_flags+0xc8/0x550 fs/namei.c:138
 user_path_at_empty+0x2a/0x50 fs/namei.c:2631
 user_path_at include/linux/namei.h:57 [inline]
 SYSC_fchownat fs/open.c:655 [inline]
 SyS_fchownat+0xc5/0x190 fs/open.c:641
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f3752f720c9
RSP: 002b:00007f37514e4168 EFLAGS: 00000246 ORIG_RAX: 0000000000000104
RAX: ffffffffffffffda RBX: 00007f3753091f80 RCX: 00007f3752f720c9
RDX: ffffffffffffffff RSI: 0000000020000000 RDI: 0000000000000003
RBP: 00007f37514e41d0 R08: 0000000000001000 R09: 0000000000000000
R10: ffffffffffffffff R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd41287c7f R14: 00007f37514e4300 R15: 0000000000022000
CPU: 0 PID: 8900 Comm: syz-executor.0 Not tainted 4.14.304-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
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:183
 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:967
RIP: 0010:aa_audit_file.cold+0x18/0x4f security/apparmor/file.c:136
RSP: 0018:ffff8880b396f7c8 EFLAGS: 00010282
RAX: 0000000000000049 RBX: 1ffff1101672defc RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff81444260 RDI: ffffed101672deef
RBP: ffff8880b396f9f0 R08: 0000000000000049 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff88823f8bd680 R14: ffff8880b396f840 R15: 0000000000000000
 aa_change_profile+0xcd3/0x2440 security/apparmor/domain.c:1277
 apparmor_setprocattr+0x98c/0xa80 security/apparmor/lsm.c:651
 security_setprocattr+0x74/0xb0 security/security.c:1272
 proc_pid_attr_write+0x22b/0x320 fs/proc/base.c:2599
 __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+0x5e/0xd3
RIP: 0033:0x7f6da1fa70c9
RSP: 002b:00007f6da0519168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f6da20c6f80 RCX: 00007f6da1fa70c9
RDX: 0000000000000008 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00007f6da05191d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffd0514b8ef R14: 00007f6da0519300 R15: 0000000000022000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/27 15:13 linux-4.14.y 3949d1610004 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in aa_change_profile
* Struck through repros no longer work on HEAD.