syzbot


WARNING in aa_sock_msg_perm (2)

Status: closed as dup on 2019/11/12 21:01
Subsystems: apparmor
[Documentation on labels]
Reported-by: syzbot+e3b328542d4adc02a975@syzkaller.appspotmail.com
First crash: 1843d, last: 1371d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KMSAN: use-after-free in rxrpc_send_keepalive afs net syz 2 1874d 1846d
Discussions (1)
Title Replies (including bot) Last reply
WARNING in aa_sock_msg_perm (2) 1 (2) 2019/11/12 21:00
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in aa_sock_msg_perm 3 1420d 1495d 0/1 auto-closed as invalid on 2021/05/08 00:28
upstream WARNING in aa_sock_msg_perm apparmor 1290 1865d 1934d 0/28 closed as dup on 2019/08/22 13:39

Sample crash report:
------------[ cut here ]------------
AppArmor WARN aa_sock_msg_perm: ((!sock)): 
WARNING: CPU: 1 PID: 7264 at security/apparmor/lsm.c:933 aa_sock_msg_perm.isra.0+0xd1/0x160 security/apparmor/lsm.c:933
Kernel panic - not syncing: panic_on_warn set ...
CPU: 1 PID: 7264 Comm: syz-executor397 Not tainted 5.7.0-rc7-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x188/0x20d lib/dump_stack.c:118
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x35 kernel/panic.c:582
 report_bug+0x27b/0x2f0 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:175 [inline]
 fixup_bug arch/x86/kernel/traps.c:170 [inline]
 do_error_trap+0x12b/0x220 arch/x86/kernel/traps.c:267
 do_invalid_op+0x32/0x40 arch/x86/kernel/traps.c:286
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1027
RIP: 0010:aa_sock_msg_perm.isra.0+0xd1/0x160 security/apparmor/lsm.c:933
Code: 89 ee 4c 89 e7 5b 5d 41 5c 41 5d 41 5e e9 d7 4d 03 00 e8 42 16 0e fe 48 c7 c6 e0 f0 6c 88 48 c7 c7 20 db 6c 88 e8 07 47 df fd <0f> 0b e9 4a ff ff ff e8 23 16 0e fe 48 c7 c6 e0 f0 6c 88 48 c7 c7
RSP: 0018:ffffc90001cefa38 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815cf181 RDI: fffff5200039df39
RBP: ffffc90001cefd78 R08: ffff88808ac46000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: ffffffff886cdae0
R13: 0000000000000004 R14: 0000000000001000 R15: 0000000040000000
 security_socket_recvmsg+0x78/0xc0 security/security.c:2082
 sock_recvmsg+0x47/0x110 net/socket.c:902
 mptcp_recvmsg+0xb3b/0xd90 net/mptcp/protocol.c:891
 inet_recvmsg+0x121/0x5d0 net/ipv4/af_inet.c:838
 sock_recvmsg_nosec net/socket.c:886 [inline]
 sock_recvmsg net/socket.c:904 [inline]
 sock_recvmsg+0xca/0x110 net/socket.c:900
 __sys_recvfrom+0x1c5/0x2f0 net/socket.c:2057
 __do_sys_recvfrom net/socket.c:2075 [inline]
 __se_sys_recvfrom net/socket.c:2071 [inline]
 __x64_sys_recvfrom+0xdd/0x1b0 net/socket.c:2071
 do_syscall_64+0xf6/0x7d0 arch/x86/entry/common.c:295
 entry_SYSCALL_64_after_hwframe+0x49/0xb3
RIP: 0033:0x448ef9
Code: e8 cc 14 03 00 48 83 c4 18 c3 0f 1f 80 00 00 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 0f 83 9b 0c fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f1267996da8 EFLAGS: 00000246 ORIG_RAX: 000000000000002d
RAX: ffffffffffffffda RBX: 00000000006dec28 RCX: 0000000000448ef9
RDX: 0000000000001000 RSI: 00000000200004c0 RDI: 0000000000000003
RBP: 00000000006dec20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000040000000 R11: 0000000000000246 R12: 00000000006dec2c
R13: 00007ffefeafb0ff R14: 00007f12679979c0 R15: 00000000006dec2c
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (59):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2020/05/26 12:01 upstream 9cb1fd0efd19 8ca3b7d2 .config console log report syz C ci-upstream-kasan-gce-root
2020/05/23 11:44 upstream 444565650a5f 9682898d .config console log report syz C ci-upstream-kasan-gce
2019/11/26 14:17 upstream 0be0ee71816b f746151a .config console log report syz C ci-upstream-kasan-gce
2019/11/26 14:13 upstream 0be0ee71816b f746151a .config console log report syz C ci-upstream-kasan-gce-root
2020/05/23 08:18 net-old d3e8e4c11870 9682898d .config console log report syz C ci-upstream-net-this-kasan-gce
2019/11/26 14:10 net-old 32085f25d7b6 f746151a .config console log report syz C ci-upstream-net-this-kasan-gce
2020/05/23 11:04 net-next-old 199671eadd47 9682898d .config console log report syz C ci-upstream-net-kasan-gce
2019/11/26 14:10 net-next-old adf6f8cb3f4c f746151a .config console log report syz C ci-upstream-net-kasan-gce
2020/05/23 08:30 linux-next c11d28ab4a69 9682898d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2019/12/09 19:52 linux-next 6cf8298daad0 b31eda3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2021/02/25 09:01 upstream 719bbd4a509f fcc6d71b .config console log report info ci-upstream-kasan-gce WARNING in aa_sock_msg_perm
2021/02/26 01:47 upstream 29c395c77a9a 76f7fc95 .config console log report info ci-upstream-kasan-gce-386 WARNING in aa_sock_msg_perm
2020/05/29 11:18 upstream 75caf310d16c d19ed305 .config console log report ci-upstream-kasan-gce
2020/05/22 15:00 upstream d2f8825ab78e 5afa2ddd .config console log report ci-upstream-kasan-gce
2020/05/21 21:39 upstream b85051e755b0 1f30020f .config console log report ci-upstream-kasan-gce
2020/05/21 17:04 upstream b85051e755b0 1f30020f .config console log report ci-upstream-kasan-gce
2019/11/12 06:17 upstream de620fb99ef2 048f2d49 .config console log report ci-upstream-kasan-gce
2019/11/12 02:02 upstream 31f4f5b495a6 048f2d49 .config console log report ci-upstream-kasan-gce
2020/10/09 10:48 upstream 583090b1b823 fa79ed2a .config console log report info ci-qemu-upstream-386
2020/05/28 14:03 upstream b0c3ba31be3e 142a0957 .config console log report ci-upstream-kasan-gce-386
2020/05/26 08:51 upstream 9cb1fd0efd19 8ca3b7d2 .config console log report ci-upstream-kasan-gce-386
2020/05/09 13:30 upstream d5eeab8d7e26 e97b06d3 .config console log report ci-upstream-kasan-gce-386
2020/01/29 06:00 upstream c677124e631d c8e81ce4 .config console log report ci-qemu-upstream-386
2020/01/29 05:58 upstream c677124e631d c8e81ce4 .config console log report ci-qemu-upstream-386
2020/01/29 05:57 upstream c677124e631d c8e81ce4 .config console log report ci-qemu-upstream-386
2020/01/12 12:38 upstream 6327edceb62b 4c04afaa .config console log report ci-qemu-upstream-386
2020/01/10 05:05 upstream 4a3033ef6e6b 4de4e9f0 .config console log report ci-qemu-upstream-386
2019/12/27 12:26 upstream 46cf053efec6 8b967267 .config console log report ci-qemu-upstream-386
2019/12/26 17:58 upstream 46cf053efec6 8b967267 .config console log report ci-qemu-upstream-386
2019/12/26 17:56 upstream 46cf053efec6 8b967267 .config console log report ci-qemu-upstream-386
2019/12/26 17:54 upstream 46cf053efec6 8b967267 .config console log report ci-qemu-upstream-386
2019/12/25 14:07 upstream 46cf053efec6 8b967267 .config console log report ci-qemu-upstream-386
2019/12/06 21:37 upstream b0d4beaa5a4b 4906fbb6 .config console log report ci-qemu-upstream-386
2020/05/22 05:23 net-old 57ebc8f08504 5afa2ddd .config console log report ci-upstream-net-this-kasan-gce
2020/05/21 15:04 net-old d69100b8eee2 1f30020f .config console log report ci-upstream-net-this-kasan-gce
2020/05/21 13:20 net-old d69100b8eee2 1f30020f .config console log report ci-upstream-net-this-kasan-gce
2020/05/20 19:26 net-old 20a785aa52c8 1255f02a .config console log report ci-upstream-net-this-kasan-gce
2020/05/16 17:53 net-old f85c1598ddfe 37bccd4e .config console log report ci-upstream-net-this-kasan-gce
2020/05/15 09:46 net-old e776af608f69 2d572622 .config console log report ci-upstream-net-this-kasan-gce
2020/05/12 23:00 net-old 64d950ae0b01 a44eb8f7 .config console log report ci-upstream-net-this-kasan-gce
2020/05/09 06:09 net-old cc4de047b33b e97b06d3 .config console log report ci-upstream-net-this-kasan-gce
2020/05/07 01:12 net-old 722c0f00d4fe 4618eb2d .config console log report ci-upstream-net-this-kasan-gce
2020/05/30 09:15 net-next-old bc183dec08f9 954bd312 .config console log report ci-upstream-net-kasan-gce
2020/05/29 01:26 net-next-old 7c741868ceab 0d951763 .config console log report ci-upstream-net-kasan-gce
2020/05/23 06:02 net-next-old 199671eadd47 9682898d .config console log report ci-upstream-net-kasan-gce
2020/05/23 00:55 net-next-old 199671eadd47 9682898d .config console log report ci-upstream-net-kasan-gce
2020/05/16 05:30 net-next-old ea6119aa67c7 37bccd4e .config console log report ci-upstream-net-kasan-gce
2020/05/14 06:32 net-next-old 6cb7576710ae a885920d .config console log report ci-upstream-net-kasan-gce
2020/05/14 05:20 net-next-old 6cb7576710ae a885920d .config console log report ci-upstream-net-kasan-gce
2020/05/13 02:14 net-next-old 51fa960d3b51 a44eb8f7 .config console log report ci-upstream-net-kasan-gce
2020/05/09 19:27 net-next-old 5eb2bcf247de 88cb3e92 .config console log report ci-upstream-net-kasan-gce
2020/05/09 06:18 net-next-old 790709f24972 e97b06d3 .config console log report ci-upstream-net-kasan-gce
2020/04/14 02:49 net-next-old 63bef48fd6c9 7c54686a .config console log report ci-upstream-net-kasan-gce
2020/05/24 12:18 linux-next c11d28ab4a69 96c92ad3 .config console log report ci-upstream-linux-next-kasan-gce-root
2020/05/22 20:32 linux-next c11d28ab4a69 9682898d .config console log report ci-upstream-linux-next-kasan-gce-root
2020/05/22 16:29 linux-next c11d28ab4a69 9682898d .config console log report ci-upstream-linux-next-kasan-gce-root
2019/12/21 10:23 linux-next 7ddd09fc4b74 bc586918 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.