================================================================== BUG: KASAN: slab-out-of-bounds in __list_del_entry_valid+0xf1/0x100 lib/list_debug.c:51 Read of size 8 at addr ffff888179b59930 by task kworker/0:3/6360 CPU: 0 PID: 6360 Comm: kworker/0:3 Not tainted 4.20.0-rc6-next-20181210+ #164 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events_power_efficient neigh_periodic_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.4+0x9/0x1ff mm/kasan/report.c:187 kasan_report.cold.5+0x1b/0x39 mm/kasan/report.c:317 __asan_report_load8_noabort+0x14/0x20 mm/kasan/generic_report.c:135 __list_del_entry_valid+0xf1/0x100 lib/list_debug.c:51 __list_del_entry include/linux/list.h:117 [inline] list_del_init include/linux/list.h:159 [inline] neigh_mark_dead+0x13b/0x410 net/core/neighbour.c:125 neigh_periodic_work+0x89a/0xc30 net/core/neighbour.c:905 process_one_work+0xc90/0x1c40 kernel/workqueue.c:2153 worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 Allocated by task 13829: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] kasan_kmalloc+0xcb/0xd0 mm/kasan/common.c:482 kasan_slab_alloc+0x12/0x20 mm/kasan/common.c:397 kmem_cache_alloc+0x130/0x730 mm/slab.c:3541 getname_flags+0xd0/0x590 fs/namei.c:140 user_path_at_empty+0x2d/0x50 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] inotify_find_inode+0x2d/0xe0 fs/notify/inotify/inotify_user.c:349 __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:741 [inline] __se_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:696 [inline] __x64_sys_inotify_add_watch+0x20c/0x390 fs/notify/inotify/inotify_user.c:696 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 13829: save_stack+0x43/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:444 kasan_slab_free+0xe/0x10 mm/kasan/common.c:452 __cache_free mm/slab.c:3485 [inline] kmem_cache_free+0x83/0x290 mm/slab.c:3747 putname+0xf2/0x130 fs/namei.c:261 filename_lookup+0x39a/0x520 fs/namei.c:2357 user_path_at_empty+0x40/0x50 fs/namei.c:2608 user_path_at include/linux/namei.h:57 [inline] inotify_find_inode+0x2d/0xe0 fs/notify/inotify/inotify_user.c:349 __do_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:741 [inline] __se_sys_inotify_add_watch fs/notify/inotify/inotify_user.c:696 [inline] __x64_sys_inotify_add_watch+0x20c/0x390 fs/notify/inotify/inotify_user.c:696 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888179b58300 which belongs to the cache names_cache of size 4096 The buggy address is located 1584 bytes to the right of 4096-byte region [ffff888179b58300, ffff888179b59300) The buggy address belongs to the page: page:ffffea0005e6d600 count:1 mapcount:0 mapping:ffff8881da980e00 index:0x0 compound_mapcount: 0 flags: 0x2fffc0000010200(slab|head) raw: 02fffc0000010200 ffffea0006121988 ffffea00061a9a88 ffff8881da980e00 raw: 0000000000000000 ffff888179b58300 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888179b59800: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888179b59880: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888179b59900: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ^ ffff888179b59980: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888179b59a00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================