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: 5736 Comm: syz-executor313 Not tainted 4.19.0-rc6+ #170 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:ffff8801bc37ef48 EFLAGS: 00010296 RAX: dffffc0000000000 RBX: 0000000041b58ab3 RCX: 000000000836b156 RDX: 0000000000000002 RSI: ffffffff883ba540 RDI: 0000000041b58ab3 kasan: CONFIG_KASAN_INLINE enabled RBP: ffff8801bc37ef70 R08: ffff8801d9780040 R09: 0000000000000000 R10: ffffed003786fe50 R11: 0000000000000000 R12: 0000000000000002 R13: ffffffff883ba540 R14: ffff8801fded7db3 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8801daf00000(0063) knlGS:0000000009c28840 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 kasan: GPF could be caused by NULL-ptr deref or user memory access CR2: 00000000080d6a40 CR3: 00000001cfa5a000 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] __ia32_sys_write+0x71/0xb0 fs/read_write.c:607 do_syscall_32_irqs_on arch/x86/entry/common.c:326 [inline] do_fast_syscall_32+0x34d/0xfb2 arch/x86/entry/common.c:397 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f5eca9 Code: 85 d2 74 02 89 0a 5b 5d c3 8b 04 24 c3 8b 0c 24 c3 8b 1c 24 c3 90 90 90 90 90 90 90 90 90 90 90 90 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000ffcea43c EFLAGS: 00000246 ORIG_RAX: 0000000000000004 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 0000000020000000 RDX: 0000000000000008 RSI: 00000000ffcea584 RDI: 00000000ffcea58c RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: general protection fault: 0000 [#2] PREEMPT SMP KASAN ---[ end trace 26b739f734691ce6 ]--- CPU: 0 PID: 5791 Comm: syz-executor313 Tainted: G D 4.19.0-rc6+ #170 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:memcmp+0x28/0x160 lib/string.c:856 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:ffff8801c09fef48 EFLAGS: 00010296 RAX: dffffc0000000000 RBX: 00000001815f0880 RCX: 00000000302be110 RDX: 0000000000000002 RSI: ffffffff883ba540 RDI: 00000001815f0880 RBP: ffff8801c09fef70 R08: ffff8801bc166440 R09: 0000000000000000 R10: ffffed003813fe50 R11: 0000000000000000 R12: 0000000000000002 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 R13: ffffffff883ba540 R14: ffff880341fefb80 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8801dae00000(0063) knlGS:0000000009c28840 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000080d6a40 CR3: 00000001ce5fa000 CR4: 00000000001406f0 RSP: 0018:ffff8801bc37ef48 EFLAGS: 00010296 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 RAX: dffffc0000000000 RBX: 0000000041b58ab3 RCX: 000000000836b156 aa_lookupn_ns+0x88/0x1e0 security/apparmor/policy_ns.c:240 RDX: 0000000000000002 RSI: ffffffff883ba540 RDI: 0000000041b58ab3 aa_fqlookupn_profile+0x1b9/0x1010 security/apparmor/policy.c:468 RBP: ffff8801bc37ef70 R08: ffff8801d9780040 R09: 0000000000000000 fqlookupn_profile+0x80/0xc0 security/apparmor/label.c:1844 aa_label_strn_parse+0xa3a/0x1230 security/apparmor/label.c:1908 R10: ffffed003786fe50 R11: 0000000000000000 R12: 0000000000000002 R13: ffffffff883ba540 R14: ffff8801fded7db3 R15: dffffc0000000000 FS: 0000000000000000(0000) GS:ffff8801daf00000(0063) knlGS:0000000009c28840 aa_label_parse+0x42/0x50 security/apparmor/label.c:1943 aa_change_profile+0x513/0x3260 security/apparmor/domain.c:1362 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 00000000080d6a40 CR3: 00000001cfa5a000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400