syzbot


WARNING in aa_change_profile (2)

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

Sample crash report:
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 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:4131 [inline]
 __alloc_pages_nodemask+0x22c/0x2720 mm/page_alloc.c:4179
------------[ cut here ]------------
WARNING: CPU: 0 PID: 12832 at security/apparmor/file.c:136 aa_audit_file.cold+0x18/0x4f security/apparmor/file.c:136
Kernel panic - not syncing: panic_on_warn set ...

 alloc_pages_current+0x155/0x260 mm/mempolicy.c:2107
 alloc_pages include/linux/gfp.h:520 [inline]
 alloc_skb_with_frags+0x170/0x500 net/core/skbuff.c:5283
 sock_alloc_send_pskb+0x577/0x6d0 net/core/sock.c:2101
 unix_stream_sendmsg+0x502/0x820 net/unix/af_unix.c:1920
 sock_sendmsg_nosec net/socket.c:646 [inline]
 sock_sendmsg+0xb5/0x100 net/socket.c:656
 sock_write_iter+0x22c/0x370 net/socket.c:925
 call_write_iter include/linux/fs.h:1780 [inline]
 new_sync_write fs/read_write.c:469 [inline]
 __vfs_write+0x44c/0x630 fs/read_write.c:482
 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:0x7f7d3d46b279
RSP: 002b:00007f7d3bde0168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f7d3d57df80 RCX: 00007f7d3d46b279
RDX: 0000000000001001 RSI: 00000000200001c0 RDI: 0000000000000004
RBP: 00007f7d3bde01d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffcc295362f R14: 00007f7d3bde0300 R15: 0000000000022000
CPU: 0 PID: 12832 Comm: syz-executor.0 Not tainted 4.14.290-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022
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:964
RIP: 0010:aa_audit_file.cold+0x18/0x4f security/apparmor/file.c:136
RSP: 0018:ffff88809f7177c8 EFLAGS: 00010282
RAX: 0000000000000049 RBX: 1ffff11013ee2efc RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff814430d0 RDI: ffffed1013ee2eef
RBP: ffff88809f7179f0 R08: 0000000000000049 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 00000000fffffff4
R13: ffff88823f8bd680 R14: ffff88809f717840 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+0x46/0xbb
RIP: 0033:0x7fc50390e279
RSP: 002b:00007fc502283168 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007fc503a20f80 RCX: 00007fc50390e279
RDX: 0000000000000135 RSI: 0000000020000040 RDI: 0000000000000003
RBP: 00007fc5022831d0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffda74bd1ff R14: 00007fc502283300 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
2022/08/21 03:13 linux-4.14.y b641242202ed 26a13b38 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/08/12 17:41 linux-4.14.y b641242202ed 402cd70d .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/08/04 14:05 linux-4.14.y b641242202ed 1c9013ac .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/07/28 17:01 linux-4.14.y 9c3bf9cf362f fb95c74d .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/06/12 11:30 linux-4.14.y b8f3be299d51 0d5abf15 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/04/30 02:30 linux-4.14.y e3a56aaade89 44a5ca63 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/04/21 09:16 linux-4.14.y 15a1c6b6f516 d4befee1 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/04/21 05:37 linux-4.14.y 15a1c6b6f516 d4befee1 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/03/01 18:52 linux-4.14.y fa33f9094f36 45a13a73 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/02/28 10:41 linux-4.14.y fa33f9094f36 45a13a73 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
2022/01/09 00:47 linux-4.14.y bfdef05c8da4 2ca0d385 .config console log report info ci2-linux-4-14 WARNING in aa_change_profile
* Struck through repros no longer work on HEAD.