================================================================== BUG: KASAN: slab-out-of-bounds in class_equal+0x40/0x50 kernel/locking/lockdep.c:1579 Read of size 8 at addr ffff888084aaff90 by task syz-executor.1/9788 CPU: 1 PID: 9788 Comm: syz-executor.1 Not tainted 5.2.0+ #97 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: Allocated by task 9113: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_kmalloc mm/kasan/common.c:487 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:460 kasan_slab_alloc+0xf/0x20 mm/kasan/common.c:495 slab_post_alloc_hook mm/slab.h:520 [inline] slab_alloc mm/slab.c:3319 [inline] kmem_cache_alloc+0x121/0x710 mm/slab.c:3483 getname_flags fs/namei.c:138 [inline] getname_flags+0xd6/0x5b0 fs/namei.c:128 user_path_at_empty+0x2f/0x50 fs/namei.c:2606 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x129/0x200 fs/stat.c:187 vfs_fstatat include/linux/fs.h:3193 [inline] __do_sys_newfstatat+0xad/0x130 fs/stat.c:368 __se_sys_newfstatat fs/stat.c:362 [inline] __x64_sys_newfstatat+0x97/0xf0 fs/stat.c:362 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 9113: save_stack+0x23/0x90 mm/kasan/common.c:69 set_track mm/kasan/common.c:77 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:449 kasan_slab_free+0xe/0x10 mm/kasan/common.c:457 __cache_free mm/slab.c:3425 [inline] kmem_cache_free+0x86/0x320 mm/slab.c:3693 putname+0xef/0x130 fs/namei.c:259 filename_lookup+0x28f/0x410 fs/namei.c:2355 user_path_at_empty+0x43/0x50 fs/namei.c:2606 user_path_at include/linux/namei.h:60 [inline] vfs_statx+0x129/0x200 fs/stat.c:187 vfs_fstatat include/linux/fs.h:3193 [inline] __do_sys_newfstatat+0xad/0x130 fs/stat.c:368 __se_sys_newfstatat fs/stat.c:362 [inline] __x64_sys_newfstatat+0x97/0xf0 fs/stat.c:362 do_syscall_64+0xfd/0x6a0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff888084aae300 which belongs to the cache names_cache of size 4096 The buggy address is located 3216 bytes to the right of 4096-byte region [ffff888084aae300, ffff888084aaf300) The buggy address belongs to the page: page:ffffea000212ab80 refcount:1 mapcount:0 mapping:ffff88821bc46380 index:0x0 compound_mapcount: 0 flags: 0x1fffc0000010200(slab|head) raw: 01fffc0000010200 ffffea000224f488 ffffea0002242688 ffff88821bc46380 raw: 0000000000000000 ffff888084aae300 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888084aafe80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888084aaff00: fc fc fc fc fc fc fc fc f1 f1 f1 f1 00 f2 f2 f2 >ffff888084aaff80: fc fc fc fc 00 00 00 f3 f3 f3 f3 f3 00 00 00 00 ^ ffff888084ab0000: fb fb fb fb fb fb fb fc fc fc fc fb fb fb fb fb ffff888084ab0080: fb fb fc fc fc fc fb fb fb fb f1 f1 f1 f1 00 f3 ==================================================================