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: 5839 Comm: syz-executor733 Not tainted 4.19.0-rc6+ #267 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:ffff8801cdecef98 EFLAGS: 00010292 RAX: dffffc0000000000 RBX: c5b1e0c5fb1d7c00 RCX: 18b63c18bf63af80 RDX: 0000000000000002 RSI: ffffffff883ba540 RDI: c5b1e0c5fb1d7c00 RBP: ffff8801cdecefc0 R08: ffff8801d9062580 R09: 0000000000000000 R10: ffffed0039bd9e5a R11: 0000000000000000 R12: 0000000000000002 R13: ffffffff883ba540 R14: c5b168c7c90a6f50 R15: dffffc0000000000 FS: 0000000001e6a880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffdc3874404 CR3: 00000001bc224000 CR4: 00000000001406e0 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:0x440e59 Code: e8 ac e8 ff ff 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 0b 0a fc ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007ffdc38743f8 EFLAGS: 00000213 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 0000000000440e59 RDX: 0000000000000008 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 0000000000000000 R08: 00000000004002c8 R09: 00000000004002c8 R10: 0000000001e6a880 R11: 0000000000000213 R12: 000000000000b172 R13: 0000000000401d80 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: kauditd_printk_skb: 3 callbacks suppressed audit: type=1400 audit(1538715927.026:31): apparmor="DENIED" operation="change_onexec" info="label not found" error=-2 profile="unconfined" name="&&" pid=5873 comm="syz-executor733" ---[ end trace 69cf4b00d0e8e2bf ]--- 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:ffff8801cdecef98 EFLAGS: 00010292 kasan: CONFIG_KASAN_INLINE enabled RAX: dffffc0000000000 RBX: c5b1e0c5fb1d7c00 RCX: 18b63c18bf63af80 kasan: GPF could be caused by NULL-ptr deref or user memory access RDX: 0000000000000002 RSI: ffffffff883ba540 RDI: c5b1e0c5fb1d7c00 general protection fault: 0000 [#2] PREEMPT SMP KASAN CPU: 1 PID: 5894 Comm: syz-executor733 Tainted: G D 4.19.0-rc6+ #267 RBP: ffff8801cdecefc0 R08: ffff8801d9062580 R09: 0000000000000000 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:ffff8801cebb6f98 EFLAGS: 00010292 R10: ffffed0039bd9e5a R11: 0000000000000000 R12: 0000000000000002 R13: ffffffff883ba540 R14: c5b168c7c90a6f50 R15: dffffc0000000000 RAX: dffffc0000000000 RBX: dffffc0000000000 RCX: 1bffff8000000000 RDX: 0000000000000002 RSI: ffffffff883ba540 RDI: dffffc0000000000 RBP: ffff8801cebb6fc0 R08: ffff8801bc2b8280 R09: 0000000000000000 R10: ffffed0039d76e5a R11: 0000000000000000 R12: 0000000000000002 R13: ffffffff883ba540 R14: dfff8401cebb7350 R15: dffffc0000000000 FS: 0000000001e6a880(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 FS: 0000000001e6a880(0000) GS:ffff8801dae00000(0000) knlGS:0000000000000000 CR2: 0000000000414ad0 CR3: 00000001d7124000 CR4: 00000000001406e0 Call Trace: strnstr+0x4b/0x70 lib/string.c:934 __aa_lookupn_ns+0xc1/0x570 security/apparmor/policy_ns.c:209 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000414ad0 CR3: 00000001bc224000 CR4: 00000000001406f0