================================================================== kasan: CONFIG_KASAN_INLINE enabled BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:188 [inline] BUG: KASAN: use-after-free in list_empty include/linux/list.h:203 [inline] BUG: KASAN: use-after-free in shrink_slab_memcg mm/vmscan.c:595 [inline] BUG: KASAN: use-after-free in shrink_slab+0xa04/0xa60 mm/vmscan.c:671 Read of size 8 at addr ffff8801b3d0b258 by task kswapd0/1534 CPU: 0 PID: 1534 Comm: kswapd0 Not tainted 4.18.0-rc4-next-20180713+ #7 kasan: GPF could be caused by NULL-ptr deref or user memory access Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1c9/0x2b4 lib/dump_stack.c:113 general protection fault: 0000 [#1] SMP KASAN CPU: 1 PID: 22463 Comm: syz-executor3 Not tainted 4.18.0-rc4-next-20180713+ #7 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__read_once_size include/linux/compiler.h:188 [inline] RIP: 0010:list_lru_from_memcg_idx mm/list_lru.c:56 [inline] RIP: 0010:list_lru_count_one+0x156/0x460 mm/list_lru.c:201 Code: print_address_description+0x6c/0x20b mm/kasan/report.c:256 08 3c kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412 03 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 0f __read_once_size include/linux/compiler.h:188 [inline] list_empty include/linux/list.h:203 [inline] shrink_slab_memcg mm/vmscan.c:595 [inline] shrink_slab+0xa04/0xa60 mm/vmscan.c:671 8e b5 02 00 00 4d shrink_node+0x429/0x16a0 mm/vmscan.c:2735 63 bd d8 0a 00 00 e8 7f 35 d2 kswapd_shrink_node mm/vmscan.c:3457 [inline] balance_pgdat+0x7ca/0x1010 mm/vmscan.c:3567 ff 48 8d 7b kswapd+0x82e/0x12f0 mm/vmscan.c:3789 50 48 b8 00 00 00 00 00 fc ff kthread+0x345/0x410 kernel/kthread.c:246 df 48 89 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 fa 48 Allocated by task 21824: c1 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 ea set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 03 kmem_cache_alloc+0x12e/0x760 mm/slab.c:3554 <80> getname_flags+0xd0/0x5a0 fs/namei.c:140 3c user_path_at_empty+0x2d/0x50 fs/namei.c:2625 02 user_path_at include/linux/namei.h:57 [inline] do_faccessat+0x252/0x7e0 fs/open.c:378 00 __do_sys_access fs/open.c:430 [inline] __se_sys_access fs/open.c:428 [inline] __x64_sys_access+0x59/0x80 fs/open.c:428 0f do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 85 entry_SYSCALL_64_after_hwframe+0x49/0xbe d8 02 Freed by task 21824: 00 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 00 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 49 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 8d __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x86/0x2d0 mm/slab.c:3756 46 putname+0xf2/0x130 fs/namei.c:261 c0 filename_lookup+0x397/0x510 fs/namei.c:2371 4c user_path_at_empty+0x40/0x50 fs/namei.c:2625 8b user_path_at include/linux/namei.h:57 [inline] do_faccessat+0x252/0x7e0 fs/open.c:378 6b __do_sys_access fs/open.c:430 [inline] __se_sys_access fs/open.c:428 [inline] __x64_sys_access+0x59/0x80 fs/open.c:428 50 48 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 ba entry_SYSCALL_64_after_hwframe+0x49/0xbe 00 00 The buggy address belongs to the object at ffff8801b3d0ac80 which belongs to the cache names_cache of size 4096 The buggy address is located 1496 bytes inside of 4096-byte region [ffff8801b3d0ac80, ffff8801b3d0bc80) RSP: 0018:ffff8801b88d5d28 EFLAGS: 00010206 The buggy address belongs to the page: page:ffffea0006cf4280 count:1 mapcount:0 mapping:ffff8801da987dc0 index:0x0 RAX: dffffc0000000000 RBX: 0000000000000000 RCX: ffffc90005a42000 compound_mapcount: 0 RDX: 000000000000000a RSI: ffffffff81aa3ad1 RDI: 0000000000000050 RBP: ffff8801b88d5db8 R08: ffff8801a8550540 R09: 0000000000000000 flags: 0x2fffc0000008100(slab|head) R10: ffffed003ae15010 R11: ffff8801d70a8087 R12: 1ffff1003711aba6 raw: 02fffc0000008100 ffffea0006bb3388 ffffea000658e408 ffff8801da987dc0 R13: ffff88019a9a4500 R14: ffff8801b88d5d90 R15: 0000000000000003 FS: 00007f84864c6700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 raw: 0000000000000000 ffff8801b3d0ac80 0000000100000001 0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 page dumped because: kasan: bad access detected CR2: ffffffffff600400 CR3: 00000001d6da5000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 Memory state around the buggy address: ffff8801b3d0b100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 ffff8801b3d0b180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb Call Trace: >ffff8801b3d0b200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801b3d0b280: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb list_lru_shrink_count include/linux/list_lru.h:122 [inline] super_cache_count+0x153/0x2e0 fs/super.c:146 ffff8801b3d0b300: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb do_shrink_slab+0x148/0xc50 mm/vmscan.c:458 ==================================================================