syzbot


WARNING in apparmor_secid_to_secctx

Status: fixed on 2018/09/26 21:51
Subsystems: apparmor
[Documentation on labels]
Reported-by: syzbot+21016130b0580a9de3b5@syzkaller.appspotmail.com
Fix commit: edf4e7b7b910 apparmor: fix bad debug check in apparmor_secid_to_secctx()
First crash: 2118d, last: 2103d
Discussions (3)
Title Replies (including bot) Last reply
[PATCH] LSM: Allow syzbot to ignore security= parameter. 12 (12) 2019/02/09 01:40
WARNING in apparmor_secid_to_secctx 33 (37) 2019/02/01 10:50
[PATCH 4.18 000/145] 4.18.7-stable review 145 (145) 2018/09/10 15:56

Sample crash report:
------------[ cut here ]------------
AppArmor WARN apparmor_secid_to_secctx: ((!secdata)): 
WARNING: CPU: 0 PID: 2035 at security/apparmor/secid.c:82 apparmor_secid_to_secctx+0x2b5/0x2f0 security/apparmor/secid.c:82
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 2035 Comm: kworker/0:2 Not tainted 4.19.0-rc1+ #216
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Workqueue: events_power_efficient gc_worker
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113
 panic+0x238/0x4e7 kernel/panic.c:184
 __warn.cold.8+0x163/0x1ba kernel/panic.c:536
 report_bug+0x252/0x2d0 lib/bug.c:186
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 do_error_trap+0x1fc/0x4d0 arch/x86/kernel/traps.c:296
 do_invalid_op+0x1b/0x20 arch/x86/kernel/traps.c:316
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:993
RIP: 0010:apparmor_secid_to_secctx+0x2b5/0x2f0 security/apparmor/secid.c:82
Code: c7 c7 c0 66 58 87 e8 0a 6c 0f fe 0f 0b e9 6c fe ff ff e8 de a8 44 fe 48 c7 c6 00 68 58 87 48 c7 c7 20 66 58 87 e8 eb 6b 0f fe <0f> 0b e9 3f fe ff ff 48 89 df e8 9c a6 83 fe e9 ed fe ff ff bb f4
RSP: 0018:ffff8801ce3f7028 EFLAGS: 00010282
RAX: 0000000000000000 RBX: ffff8801ce3f71e8 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff8163ac01 RDI: 0000000000000001
RBP: ffff8801ce3f7048 R08: ffff8801ce3ec540 R09: ffffed003b603eca
R10: ffffed003b603eca R11: ffff8801db01f657 R12: 0000000000000001
R13: 0000000000000000 R14: 0000000000000000 R15: ffff8801ce3f71e8
 security_secid_to_secctx+0x63/0xc0 security/security.c:1314
 ctnetlink_secctx_size net/netfilter/nf_conntrack_netlink.c:621 [inline]
 ctnetlink_nlmsg_size net/netfilter/nf_conntrack_netlink.c:659 [inline]
 ctnetlink_conntrack_event+0x303/0x1470 net/netfilter/nf_conntrack_netlink.c:706
 nf_conntrack_eventmask_report+0x55f/0x930 net/netfilter/nf_conntrack_ecache.c:151
 nf_conntrack_event_report include/net/netfilter/nf_conntrack_ecache.h:112 [inline]
 nf_ct_delete+0x33c/0x5d0 net/netfilter/nf_conntrack_core.c:601
 nf_ct_kill include/net/netfilter/nf_conntrack.h:216 [inline]
 nf_ct_gc_expired+0x3e3/0x4a0 net/netfilter/nf_conntrack_core.c:654
 gc_worker+0xd99/0x1190 net/netfilter/nf_conntrack_core.c:1173
 process_one_work+0xc73/0x1aa0 kernel/workqueue.c:2153
 worker_thread+0x189/0x13c0 kernel/workqueue.c:2296
 kthread+0x35a/0x420 kernel/kthread.c:246
 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:413
Dumping ftrace buffer:
   (ftrace buffer empty)
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (3344):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/08/31 09:48 upstream 217c3e019675 a4718693 .config console log report syz C ci-upstream-kasan-gce-root
2018/08/30 12:30 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-root
2018/08/30 12:11 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-root
2018/08/30 11:25 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-root
2018/08/30 10:48 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce
2018/08/30 09:49 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce
2018/08/30 09:10 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce
2018/08/30 08:51 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce
2018/08/30 07:07 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce
2018/08/30 05:46 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-root
2018/08/30 05:19 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-root
2018/08/30 04:13 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-root
2018/08/31 09:10 upstream 217c3e019675 a4718693 .config console log report syz C ci-upstream-kasan-gce-386
2018/08/30 16:13 upstream 58c3f14f86c9 938220fd .config console log report syz C ci-upstream-kasan-gce-386
2018/08/30 12:38 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-386
2018/08/30 12:07 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-386
2018/08/30 11:13 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-386
2018/08/30 10:24 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-386
2018/08/30 09:17 upstream ff69279a44e9 6c7e9d3d .config console log report syz C ci-upstream-kasan-gce-386
2018/08/31 08:04 net-old dc6417949297 a4718693 .config console log report syz C ci-upstream-net-this-kasan-gce
2018/08/30 10:11 net-old bd583fe30427 6c7e9d3d .config console log report syz C ci-upstream-net-this-kasan-gce
2018/08/30 05:26 net-old bd583fe30427 6c7e9d3d .config console log report syz C ci-upstream-net-this-kasan-gce
2018/08/30 04:54 net-old bd583fe30427 6c7e9d3d .config console log report syz C ci-upstream-net-this-kasan-gce
2018/08/30 04:36 net-old bd583fe30427 6c7e9d3d .config console log report syz C ci-upstream-net-this-kasan-gce
2018/08/30 10:11 net-next-old 817e60a7a2bb 6c7e9d3d .config console log report syz C ci-upstream-net-kasan-gce
2018/08/30 04:55 net-next-old 817e60a7a2bb 6c7e9d3d .config console log report syz C ci-upstream-net-kasan-gce
2018/08/30 04:37 net-next-old 817e60a7a2bb 6c7e9d3d .config console log report syz C ci-upstream-net-kasan-gce
2018/08/30 03:42 net-next-old 817e60a7a2bb 6c7e9d3d .config console log report syz C ci-upstream-net-kasan-gce
2018/08/31 12:55 linux-next a880148cb2af a4718693 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/31 11:22 https://github.com/google/kmsan.git master ab98bd30a4ba a4718693 .config console log report syz C ci-upstream-kmsan-gce
2018/08/31 07:14 https://github.com/google/kmsan.git master ab98bd30a4ba a4718693 .config console log report syz C ci-upstream-kmsan-gce
2018/08/31 06:38 https://github.com/google/kmsan.git master ab98bd30a4ba a4718693 .config console log report syz C ci-upstream-kmsan-gce
2018/08/30 17:49 https://github.com/google/kmsan.git master 25114c64b719 938220fd .config console log report syz C ci-upstream-kmsan-gce
2018/08/30 11:55 linux-next 87b93b43da14 6c7e9d3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/30 09:52 https://github.com/google/kmsan.git master 2dca2cbde67a 6c7e9d3d .config console log report syz C ci-upstream-kmsan-gce
2018/08/30 09:41 linux-next 87b93b43da14 6c7e9d3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/30 08:15 linux-next 87b93b43da14 6c7e9d3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/30 07:14 linux-next 87b93b43da14 6c7e9d3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/30 06:56 linux-next 87b93b43da14 6c7e9d3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/30 06:27 linux-next 87b93b43da14 6c7e9d3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/30 05:25 linux-next 87b93b43da14 6c7e9d3d .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/08/30 06:02 upstream ff69279a44e9 6c7e9d3d .config console log report syz ci-upstream-kasan-gce
2018/08/30 10:55 upstream ff69279a44e9 6c7e9d3d .config console log report syz ci-upstream-kasan-gce-386
2018/09/06 19:50 upstream b36fdc6853a3 0bb7a7eb .config console log report ci-upstream-kasan-gce-root
2018/09/06 15:06 upstream b36fdc6853a3 0bb7a7eb .config console log report ci-upstream-kasan-gce
2018/09/06 19:58 upstream b36fdc6853a3 0bb7a7eb .config console log report ci-upstream-kasan-gce-386
2018/09/13 00:28 net-old cc4dfb7f70a3 71907daf .config console log report ci-upstream-net-this-kasan-gce
2018/09/12 23:26 net-old cc4dfb7f70a3 71907daf .config console log report ci-upstream-net-this-kasan-gce
2018/09/12 22:07 net-old cc4dfb7f70a3 71907daf .config console log report ci-upstream-net-this-kasan-gce
2018/09/12 20:57 net-old cc4dfb7f70a3 71907daf .config console log report ci-upstream-net-this-kasan-gce
2018/09/12 18:40 net-old cc4dfb7f70a3 71907daf .config console log report ci-upstream-net-this-kasan-gce
2018/09/12 15:05 net-old 4ecdf7709143 3c88136c .config console log report ci-upstream-net-this-kasan-gce
2018/09/12 12:55 net-old 4ecdf7709143 3c88136c .config console log report ci-upstream-net-this-kasan-gce
2018/09/12 11:03 net-old 4ecdf7709143 3c88136c .config console log report ci-upstream-net-this-kasan-gce
2018/09/13 23:24 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 23:15 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 22:14 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 21:13 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 20:12 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 19:09 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 19:06 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 17:55 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 16:55 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 15:54 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 14:47 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 13:14 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 12:14 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 11:12 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 10:46 net-next-old a20625e49dde 19e9088b .config console log report ci-upstream-net-kasan-gce
2018/09/13 09:04 net-next-old a20625e49dde 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/13 07:57 net-next-old a20625e49dde 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/13 03:49 net-next-old 0041195d55bc 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/13 02:50 net-next-old 0041195d55bc 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/13 01:44 net-next-old 0041195d55bc 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/13 01:29 net-next-old 0041195d55bc 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/12 22:04 net-next-old 0041195d55bc 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/12 19:52 net-next-old 0041195d55bc 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/12 18:01 net-next-old 0041195d55bc 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/12 16:56 net-next-old 0041195d55bc 71907daf .config console log report ci-upstream-net-kasan-gce
2018/09/12 13:59 net-next-old aad06d1104e8 3c88136c .config console log report ci-upstream-net-kasan-gce
2018/09/12 12:13 net-next-old aad06d1104e8 3c88136c .config console log report ci-upstream-net-kasan-gce
2018/08/30 01:38 net-next-old 817e60a7a2bb 6c7e9d3d .config console log report ci-upstream-net-kasan-gce
2018/09/11 17:11 linux-next f2b6e66e9885 4ae17b1f .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/05 05:13 https://github.com/google/kmsan.git master 28f0ca98eadf a4718693 .config console log report ci-upstream-kmsan-gce
* Struck through repros no longer work on HEAD.