syzbot


general protection fault in __aa_lookupn_ns

Status: closed as dup on 2018/09/28 15:02
Subsystems: apparmor
[Documentation on labels]
Reported-by: syzbot+9b37e75e781b5e400f65@syzkaller.appspotmail.com
First crash: 2252d, last: 2212d
Duplicate of
Title Repro Cause bisect Fix bisect Count Last Reported
KASAN: stack-out-of-bounds Read in __aa_lookupn_ns apparmor C 52 2219d 2250d
Discussions (1)
Title Replies (including bot) Last reply
general protection fault in __aa_lookupn_ns 2 (3) 2018/09/28 15:02

Sample crash report:
kasan: CONFIG_KASAN_INLINE enabled
kasan: GPF could be caused by NULL-ptr deref or user memory access
general protection fault: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 10925 Comm: syz-executor257 Not tainted 4.19.0-rc6+ #268
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:memcmp+0x28/0x160 lib/string.c:856
Code: 00 00 48 85 d2 0f 84 0a 01 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 f9 48 89 e5 48 c1 e9 03 41 54 53 48 89 fb 48 83 ec 18 <0f> b6 04 01 48 89 f9 83 e1 07 38 c8 7f 08 84 c0 0f 85 98 00 00 00
RSP: 0018:ffff8801d9b96f98 EFLAGS: 00010292
RAX: dffffc0000000000 RBX: 04d1413aac0f0c00 RCX: 009a28275581e180
RDX: 0000000000000002 RSI: ffffffff883ba580 RDI: 04d1413aac0f0c00
RBP: ffff8801d9b96fc0 R08: ffff8801d9290200 R09: 0000000000000000
R10: ffffed003b372e5a R11: 0000000000000000 R12: 0000000000000002
R13: ffffffff883ba580 R14: 04d0c93c85c87f50 R15: dffffc0000000000
FS:  00000000023a0880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cb090 CR3: 00000001c98c9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 strnstr+0x4b/0x70 lib/string.c:934
 __aa_lookupn_ns+0xc1/0x570 security/apparmor/policy_ns.c:209
 aa_lookupn_ns+0x88/0x1e0 security/apparmor/policy_ns.c:240
 aa_fqlookupn_profile+0x1b9/0x1010 security/apparmor/policy.c:468
 fqlookupn_profile+0x80/0xc0 security/apparmor/label.c:1844
 aa_label_strn_parse+0xa3a/0x1230 security/apparmor/label.c:1908
 aa_label_parse+0x42/0x50 security/apparmor/label.c:1943
 aa_change_profile+0x513/0x3260 security/apparmor/domain.c:1362
 apparmor_setprocattr+0xa8b/0x1150 security/apparmor/lsm.c:656
 security_setprocattr+0x66/0xc0 security/security.c:1298
 proc_pid_attr_write+0x301/0x540 fs/proc/base.c:2555
 __vfs_write+0x119/0x9f0 fs/read_write.c:485
 vfs_write+0x1fc/0x560 fs/read_write.c:549
 ksys_write+0x101/0x260 fs/read_write.c:598
 __do_sys_write fs/read_write.c:610 [inline]
 __se_sys_write fs/read_write.c:607 [inline]
 __x64_sys_write+0x73/0xb0 fs/read_write.c:607
 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x440d49
Code: e8 cc ab 02 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 bb 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffc2a959aa8 EFLAGS: 00000213 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440d49
RDX: 000000000000ffd5 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8
R10: 00000000023a0880 R11: 0000000000000213 R12: 000000000000eb8c
R13: 0000000000401d20 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace d3efa97c5e6a4d8f ]---
RIP: 0010:memcmp+0x28/0x160 lib/string.c:856
Code: 00 00 48 85 d2 0f 84 0a 01 00 00 48 b8 00 00 00 00 00 fc ff df 55 48 89 f9 48 89 e5 48 c1 e9 03 41 54 53 48 89 fb 48 83 ec 18 <0f> b6 04 01 48 89 f9 83 e1 07 38 c8 7f 08 84 c0 0f 85 98 00 00 00
RSP: 0018:ffff8801d9b96f98 EFLAGS: 00010292
RAX: dffffc0000000000 RBX: 04d1413aac0f0c00 RCX: 009a28275581e180
RDX: 0000000000000002 RSI: ffffffff883ba580 RDI: 04d1413aac0f0c00
RBP: ffff8801d9b96fc0 R08: ffff8801d9290200 R09: 0000000000000000
R10: ffffed003b372e5a R11: 0000000000000000 R12: 0000000000000002
R13: ffffffff883ba580 R14: 04d0c93c85c87f50 R15: dffffc0000000000
FS:  00000000023a0880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000006cb090 CR3: 00000001c98c9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (117):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2018/10/05 09:02 upstream befad944e231 8b311eaf .config console log report syz C ci-upstream-kasan-gce
2018/10/05 05:09 upstream d2467adb6610 8b311eaf .config console log report syz C ci-upstream-kasan-gce-root
2018/10/05 05:08 upstream d2467adb6610 8b311eaf .config console log report syz C ci-upstream-kasan-gce
2018/10/05 08:24 upstream befad944e231 8b311eaf .config console log report syz C ci-upstream-kasan-gce-386
2018/10/05 05:08 upstream d2467adb6610 8b311eaf .config console log report syz C ci-upstream-kasan-gce-386
2018/09/30 19:30 linux-next 4794a36bf08d 41e4b329 .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/09/28 02:33 linux-next 9e27e2c2d003 0c2fa87b .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/09/24 21:06 linux-next dad486875956 2f485cdf .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/09/24 18:55 linux-next dad486875956 2f485cdf .config console log report syz C ci-upstream-linux-next-kasan-gce-root
2018/11/03 06:03 upstream 8adcc59974b8 8bd6bd63 .config console log report ci-upstream-kasan-gce-root
2018/11/02 06:10 upstream e468f5c06b5e 1f38e9ae .config console log report ci-upstream-kasan-gce
2018/11/02 00:16 upstream 5b7449810ae6 1f38e9ae .config console log report ci-upstream-kasan-gce
2018/10/31 22:06 upstream 59fc453b21f7 89781090 .config console log report ci-upstream-kasan-gce
2018/10/31 14:29 upstream 310c7585e830 89781090 .config console log report ci-upstream-kasan-gce
2018/10/28 07:22 upstream 69d5b97c5973 8efba39a .config console log report ci-upstream-kasan-gce
2018/10/26 20:35 upstream 18d0eae30e6a a8292de9 .config console log report ci-upstream-kasan-gce-root
2018/10/26 17:19 upstream e5f6d9afa341 a8292de9 .config console log report ci-upstream-kasan-gce
2018/10/26 12:34 upstream e5f6d9afa341 a8292de9 .config console log report ci-upstream-kasan-gce
2018/10/26 10:28 upstream e5f6d9afa341 a8292de9 .config console log report ci-upstream-kasan-gce-root
2018/10/25 09:00 upstream 01aa9d518eae a8292de9 .config console log report ci-upstream-kasan-gce
2018/10/21 16:18 upstream 23469de647c4 ecb386fe .config console log report ci-upstream-kasan-gce
2018/10/21 07:07 upstream b0d04fb56b31 ecb386fe .config console log report ci-upstream-kasan-gce-root
2018/10/21 02:51 upstream b0d04fb56b31 ecb386fe .config console log report ci-upstream-kasan-gce
2018/10/17 14:55 upstream c0cff31be705 1ba7fd7e .config console log report ci-upstream-kasan-gce-root
2018/10/16 22:13 upstream b955a910d7fd 1ba7fd7e .config console log report ci-upstream-kasan-gce-root
2018/10/16 03:05 upstream f0a7d1883d9f 8cd30605 .config console log report ci-upstream-kasan-gce
2018/10/15 09:22 upstream 35a7f35ad1b1 caf12900 .config console log report ci-upstream-kasan-gce
2018/10/11 16:27 upstream 9dcd936c5312 5f818b4b .config console log report ci-upstream-kasan-gce
2018/10/09 17:37 upstream 64c5e530ac2c 8b311eaf .config console log report ci-upstream-kasan-gce-root
2018/10/08 08:25 upstream 0238df646e62 8b311eaf .config console log report ci-upstream-kasan-gce-root
2018/10/06 07:39 upstream b2e45b46d85b 8b311eaf .config console log report ci-upstream-kasan-gce
2018/10/05 19:38 upstream b2e45b46d85b 8b311eaf .config console log report ci-upstream-kasan-gce-root
2018/10/05 18:16 upstream befad944e231 8b311eaf .config console log report ci-upstream-kasan-gce-root
2018/10/05 13:31 upstream befad944e231 8b311eaf .config console log report ci-upstream-kasan-gce-root
2018/10/05 03:27 upstream d2467adb6610 8b311eaf .config console log report ci-upstream-kasan-gce-root
2018/10/03 04:07 upstream 1d2ba7fee28b 0f3e0261 .config console log report ci-upstream-kasan-gce-root
2018/10/02 05:12 upstream 385afbf8c3e8 e06f7713 .config console log report ci-upstream-kasan-gce
2018/10/02 01:20 upstream 17b57b1883c1 e06f7713 .config console log report ci-upstream-kasan-gce-root
2018/10/01 23:07 upstream 17b57b1883c1 e06f7713 .config console log report ci-upstream-kasan-gce
2018/10/01 16:09 upstream 17b57b1883c1 48a50c6b .config console log report ci-upstream-kasan-gce
2018/09/30 23:39 upstream 17b57b1883c1 41e4b329 .config console log report ci-upstream-kasan-gce-root
2018/09/24 17:43 upstream 02214bfc89c7 2f485cdf .config console log report ci-upstream-kasan-gce
2018/10/16 22:13 upstream b955a910d7fd 1ba7fd7e .config console log report ci-upstream-kasan-gce-386
2018/10/16 01:46 upstream f0a7d1883d9f 8cd30605 .config console log report ci-upstream-kasan-gce-386
2018/10/11 22:00 upstream 9dcd936c5312 ba6ddb43 .config console log report ci-upstream-kasan-gce-386
2018/10/11 18:31 upstream 9dcd936c5312 ba6ddb43 .config console log report ci-upstream-kasan-gce-386
2018/10/07 23:48 upstream fb1c592cf4c9 8b311eaf .config console log report ci-upstream-kasan-gce-386
2018/10/05 04:42 upstream d2467adb6610 8b311eaf .config console log report ci-upstream-kasan-gce-386
2018/10/02 21:11 linux-next 62f3d25900c9 a316a2af .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 19:50 linux-next 4794a36bf08d 48a50c6b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 18:06 linux-next 4794a36bf08d 48a50c6b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 16:09 linux-next 4794a36bf08d 48a50c6b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 09:25 linux-next 4794a36bf08d 48a50c6b .config console log report ci-upstream-linux-next-kasan-gce-root
2018/10/01 06:57 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
2018/09/30 21:15 linux-next 4794a36bf08d 41e4b329 .config console log report ci-upstream-linux-next-kasan-gce-root
* Struck through repros no longer work on HEAD.