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: 1047 Comm: khugepaged Not tainted 5.0.0-rc1-next-20190108 #7 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__read_once_size include/linux/compiler.h:197 [inline] RIP: 0010:mm_match_cgroup include/linux/memcontrol.h:474 [inline] RIP: 0010:try_charge+0x12a8/0x1d00 mm/memcontrol.c:2332 Code: c0 e8 dc bf fe ff 4c 89 f2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 c6 04 02 00 49 8d bc 24 40 05 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 20 0a 00 00 4c 89 f2 4d 8b a4 24 40 05 00 00 48 RSP: 0018:ffff8880a78673e0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8880993aad40 RCX: 1ffff11014f0ce6a RDX: 00000000000000a8 RSI: 0000000000000000 RDI: 0000000000000540 RBP: ffff8880a78675e8 R08: 1ffff11015cc5b8f R09: ffffed1015cc5b90 R10: ffffed1015cc5b8f R11: ffff8880ae62dc7b R12: 0000000000000000 R13: ffff8880a78675c0 R14: ffff8880a7867580 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2d327000 CR3: 00000000915fb000 CR4: 00000000001426e0 Call Trace: mem_cgroup_try_charge+0x43a/0xdb0 mm/memcontrol.c:5917 collapse_huge_page+0x17d/0x2280 mm/khugepaged.c:968 khugepaged_scan_pmd+0x165f/0x1f00 mm/khugepaged.c:1215 khugepaged_scan_mm_slot mm/khugepaged.c:1724 [inline] khugepaged_do_scan mm/khugepaged.c:1805 [inline] khugepaged+0xcfe/0x18a0 mm/khugepaged.c:1850 kthread+0x357/0x430 kernel/kthread.c:247 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Modules linked in: ---[ end trace 0c5a78de45e276ad ]--- RIP: 0010:__read_once_size include/linux/compiler.h:197 [inline] RIP: 0010:mm_match_cgroup include/linux/memcontrol.h:474 [inline] RIP: 0010:try_charge+0x12a8/0x1d00 mm/memcontrol.c:2332 Code: c0 e8 dc bf fe ff 4c 89 f2 48 b8 00 00 00 00 00 fc ff df 48 c1 ea 03 c6 04 02 00 49 8d bc 24 40 05 00 00 48 89 fa 48 c1 ea 03 <80> 3c 02 00 0f 85 20 0a 00 00 4c 89 f2 4d 8b a4 24 40 05 00 00 48 RSP: 0018:ffff8880a78673e0 EFLAGS: 00010202 RAX: dffffc0000000000 RBX: ffff8880993aad40 RCX: 1ffff11014f0ce6a RDX: 00000000000000a8 RSI: 0000000000000000 RDI: 0000000000000540 RBP: ffff8880a78675e8 R08: 1ffff11015cc5b8f R09: ffffed1015cc5b90 R10: ffffed1015cc5b8f R11: ffff8880ae62dc7b R12: 0000000000000000 R13: ffff8880a78675c0 R14: ffff8880a7867580 R15: 0000000000000000 FS: 0000000000000000(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000625208 CR3: 000000008f75c000 CR4: 00000000001426f0