================================================================== BUG: KASAN: slab-out-of-bounds in __read_once_size include/linux/compiler.h:188 [inline] BUG: KASAN: slab-out-of-bounds in list_empty include/linux/list.h:203 [inline] BUG: KASAN: slab-out-of-bounds in shrink_slab_memcg mm/vmscan.c:595 [inline] BUG: KASAN: slab-out-of-bounds in shrink_slab+0xa04/0xa60 mm/vmscan.c:671 kasan: CONFIG_KASAN_INLINE enabled Read of size 8 at addr ffff8801c5576858 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: 22870 Comm: syz-executor0 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:list_lru_from_memcg_idx mm/list_lru.c:59 [inline] RIP: 0010:list_lru_count_one+0x2d8/0x460 mm/list_lru.c:201 Code: print_address_description+0x6c/0x20b mm/kasan/report.c:256 48 8d 65 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.7+0x242/0x30d mm/kasan/report.c:412 d8 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 5b __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 41 5c 41 5d shrink_node+0x429/0x16a0 mm/vmscan.c:2735 41 5e 41 5f 5d c3 e8 fe 33 kswapd_shrink_node mm/vmscan.c:3457 [inline] balance_pgdat+0x7ca/0x1010 mm/vmscan.c:3567 d2 ff 4b 8d kswapd+0x82e/0x12f0 mm/vmscan.c:3789 7c fd 10 48 b8 00 00 00 00 00 fc kthread+0x345/0x410 kernel/kthread.c:246 ff df 48 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:415 89 fa Allocated by task 21573: 48 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 c1 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc4/0xe0 mm/kasan/kasan.c:553 ea 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 65 01 Freed by task 21573: 00 00 save_stack+0x43/0xd0 mm/kasan/kasan.c:448 4b set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x11a/0x170 mm/kasan/kasan.c:521 8b kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 5c __cache_free mm/slab.c:3498 [inline] kmem_cache_free+0x86/0x2d0 mm/slab.c:3756 fd putname+0xf2/0x130 fs/namei.c:261 10 filename_lookup+0x397/0x510 fs/namei.c:2371 e9 user_path_at_empty+0x40/0x50 fs/namei.c:2625 18 user_path_at include/linux/namei.h:57 [inline] do_faccessat+0x252/0x7e0 fs/open.c:378 ff __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 ff do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 ff entry_SYSCALL_64_after_hwframe+0x49/0xbe e8 cf The buggy address belongs to the object at ffff8801c5576ec0 which belongs to the cache names_cache of size 4096 RSP: 0018:ffff8801244e69d0 EFLAGS: 00010206 The buggy address is located 1640 bytes to the left of 4096-byte region [ffff8801c5576ec0, ffff8801c5577ec0) The buggy address belongs to the page: RAX: dffffc0000000000 RBX: ffff8801840b6b00 RCX: ffffc90002005000 page:ffffea0007155d80 count:1 mapcount:0 mapping:ffff8801da987dc0 index:0x0 RDX: 0000000000000003 RSI: ffffffff81aa3c52 RDI: 000000000000001a compound_mapcount: 0 RBP: ffff8801244e6a60 R08: ffff880197634000 R09: 0000000000000000 R10: ffffed003ae3c3b8 R11: ffff8801d71e1dc7 R12: 1ffff1002489cd3b flags: 0x2fffc0000008100(slab|head) R13: 0000000000000002 R14: 0000000000000000 R15: 0000000000000001 raw: 02fffc0000008100 ffffea00063a7f08 ffffea0006e00208 ffff8801da987dc0 FS: 00007f5132059700(0000) GS:ffff8801daf00000(0000) knlGS:0000000000000000 raw: 0000000000000000 ffff8801c5576ec0 0000000100000001 0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 page dumped because: kasan: bad access detected CR2: 00007ffeb4471000 CR3: 00000001be726000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000400 Memory state around the buggy address: DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: ffff8801c5576700: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801c5576780: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc list_lru_shrink_count include/linux/list_lru.h:122 [inline] super_cache_count+0x153/0x2e0 fs/super.c:146 >ffff8801c5576800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc do_shrink_slab+0x148/0xc50 mm/vmscan.c:458 ^ ffff8801c5576880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8801c5576900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================