syzbot


WARNING in aa_sock_msg_perm

Status: closed as dup on 2019/08/22 13:39
Subsystems: apparmor
[Documentation on labels]
Reported-by: syzbot+cda1ac91660a61b51495@syzkaller.appspotmail.com
First crash: 1937d, last: 1865d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: use-after-free Read in rxrpc_send_keepalive afs net C error 694 1865d 1937d
Discussions (1)
Title Replies (including bot) Last reply
WARNING in aa_sock_msg_perm 2 (3) 2019/08/12 22: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 (2) apparmor C 59 1371d 1842d 0/28 closed as dup on 2019/11/12 21:01

Sample crash report:
------------[ cut here ]------------
AppArmor WARN aa_sock_msg_perm: ((!sock)): 
WARNING: CPU: 0 PID: 4927 at security/apparmor/lsm.c:920 aa_sock_msg_perm.isra.0+0xdd/0x170 security/apparmor/lsm.c:920
Kernel panic - not syncing: panic_on_warn set ...
CPU: 0 PID: 4927 Comm: kworker/0:3 Not tainted 5.4.0-rc3+ #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: krxrpcd rxrpc_peer_keepalive_worker
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x172/0x1f0 lib/dump_stack.c:113
 panic+0x2e3/0x75c kernel/panic.c:221
 __warn.cold+0x2f/0x35 kernel/panic.c:582
 report_bug+0x289/0x300 lib/bug.c:195
 fixup_bug arch/x86/kernel/traps.c:179 [inline]
 fixup_bug arch/x86/kernel/traps.c:174 [inline]
 do_error_trap+0x11b/0x200 arch/x86/kernel/traps.c:272
 do_invalid_op+0x37/0x50 arch/x86/kernel/traps.c:291
 invalid_op+0x23/0x30 arch/x86/entry/entry_64.S:1028
RIP: 0010:aa_sock_msg_perm.isra.0+0xdd/0x170 security/apparmor/lsm.c:920
Code: 89 ef e8 26 e4 02 00 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 36 4f 60 fe 48 c7 c6 60 39 e1 87 48 c7 c7 60 24 e1 87 e8 ab 91 31 fe <0f> 0b e9 43 ff ff ff e8 17 4f 60 fe 48 c7 c6 60 39 e1 87 48 c7 c7
RSP: 0018:ffff888031c379b0 EFLAGS: 00010286
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815cb646 RDI: ffffed1006386f28
RBP: ffff888031c379d8 R08: ffff888055522300 R09: fffffbfff14efd4f
R10: fffffbfff14efd4e R11: ffffffff8a77ea77 R12: ffff888031c37b20
R13: ffffffff87e128a0 R14: 0000000000000002 R15: 000000000000001d
 apparmor_socket_sendmsg+0x2a/0x30 security/apparmor/lsm.c:936
 security_socket_sendmsg+0x77/0xc0 security/security.c:2013
 sock_sendmsg+0x45/0x130 net/socket.c:654
 kernel_sendmsg+0x44/0x50 net/socket.c:677
 rxrpc_send_keepalive+0x1ff/0x940 net/rxrpc/output.c:655
 rxrpc_peer_keepalive_dispatch net/rxrpc/peer_event.c:376 [inline]
 rxrpc_peer_keepalive_worker+0x7be/0xd02 net/rxrpc/peer_event.c:437
 process_one_work+0x9af/0x1740 kernel/workqueue.c:2269
 worker_thread+0x98/0xe40 kernel/workqueue.c:2415
 kthread+0x361/0x430 kernel/kthread.c:255
 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:352
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (1290):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2019/10/20 23:13 upstream 4fe34d61a3a9 8c88c9c1 .config console log report ci-upstream-kasan-gce
2019/10/09 07:51 upstream eda57a0e4299 b1ebbfef .config console log report ci-upstream-kasan-gce
2019/09/17 18:59 upstream ad062195731b 13dcda9b .config console log report ci-upstream-kasan-gce
2019/09/14 20:29 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce
2019/09/13 21:18 upstream a7f89616b737 32d59357 .config console log report ci-upstream-kasan-gce
2019/09/13 08:05 upstream 505a8ec7e11a 40fa42bc .config console log report ci-upstream-kasan-gce
2019/09/13 05:32 upstream 505a8ec7e11a 40fa42bc .config console log report ci-upstream-kasan-gce
2019/09/13 02:48 upstream 505a8ec7e11a 40fa42bc .config console log report ci-upstream-kasan-gce
2019/09/12 14:52 upstream ad32b4800c2b 0b7672ee .config console log report ci-upstream-kasan-gce
2019/09/11 21:17 upstream 3120b9a6a3f7 f4e53c10 .config console log report ci-upstream-kasan-gce
2019/09/11 14:16 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/11 03:18 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/10 13:01 upstream 3120b9a6a3f7 a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/09 20:59 upstream 56037cadf604 a60cb4cd .config console log report ci-upstream-kasan-gce-root
2019/09/09 20:15 upstream 56037cadf604 a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/08 16:38 upstream 950b07c14e8c a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/07 07:27 upstream 1e3778cb223e a60cb4cd .config console log report ci-upstream-kasan-gce
2019/09/06 14:26 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce
2019/09/05 00:39 upstream 3b47fd5ca9ea 040fda58 .config console log report ci-upstream-kasan-gce
2019/09/02 16:40 upstream 9f159ae07f07 14544a56 .config console log report ci-upstream-kasan-gce
2019/09/02 13:26 upstream 9f159ae07f07 db7c31ca .config console log report ci-upstream-kasan-gce
2019/09/02 00:08 upstream 9f159ae07f07 bad3cce2 .config console log report ci-upstream-kasan-gce
2019/09/01 23:32 upstream 9f159ae07f07 bad3cce2 .config console log report ci-upstream-kasan-gce
2019/09/01 22:26 upstream eea173097dfb bad3cce2 .config console log report ci-upstream-kasan-gce
2019/09/01 20:00 upstream eea173097dfb bad3cce2 .config console log report ci-upstream-kasan-gce
2019/09/22 03:32 net-old 7b09c2d052db d96e88f3 .config console log report ci-upstream-net-this-kasan-gce
2019/09/09 23:29 net-old 28abe5796252 a60cb4cd .config console log report ci-upstream-net-this-kasan-gce
2019/09/09 10:15 net-old 28abe5796252 a60cb4cd .config console log report ci-upstream-net-this-kasan-gce
2019/09/08 00:37 net-old 0c04eb72d332 a60cb4cd .config console log report ci-upstream-net-this-kasan-gce
2019/09/27 01:14 net-next-old b41dae061bbd 2f1548bc .config console log report ci-upstream-net-kasan-gce
2019/09/15 11:08 net-next-old 1ba569fc2250 32d59357 .config console log report ci-upstream-net-kasan-gce
2019/09/11 20:02 net-next-old 747f3cf4bf71 a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/11 18:18 net-next-old 747f3cf4bf71 a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/10 08:25 net-next-old db63864786c7 a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/10 03:56 net-next-old 6703a605b5ab a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/08 19:14 net-next-old 6703a605b5ab a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/07 21:10 net-next-old 742ca7812bcc a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/06 22:03 net-next-old 1e46c09ec100 a60cb4cd .config console log report ci-upstream-net-kasan-gce
2019/09/04 22:17 net-next-old 2c1f9e263444 040fda58 .config console log report ci-upstream-net-kasan-gce
2019/09/04 09:12 net-next-old 2c1f9e263444 12381952 .config console log report ci-upstream-net-kasan-gce
2019/09/02 15:36 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 14:30 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 12:12 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 11:04 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 11:01 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 09:53 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 07:52 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 06:47 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 04:20 net-next-old 4bc61b0b1695 db7c31ca .config console log report ci-upstream-net-kasan-gce
2019/09/02 03:03 net-next-old 4bc61b0b1695 bad3cce2 .config console log report ci-upstream-net-kasan-gce
2019/09/02 01:39 net-next-old 4bc61b0b1695 bad3cce2 .config console log report ci-upstream-net-kasan-gce
2019/09/01 21:19 net-next-old 38320f69403d bad3cce2 .config console log report ci-upstream-net-kasan-gce
2019/08/09 15:51 net-next-old fcc32a21655e ede31a9b .config console log report ci-upstream-net-kasan-gce
2019/09/24 11:03 linux-next b5b3bd898ba9 c68252d2 .config console log report ci-upstream-linux-next-kasan-gce-root
2019/08/15 23:54 linux-next 17da61ae48ec 0d298d6b .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.