RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 000000000072bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f513b22f6d4 R13: 00000000004c32cb R14: 00000000004d4ef0 R15: 0000000000000006 ================================================================== BUG: KASAN: slab-out-of-bounds in string+0x298/0x2d0 lib/vsprintf.c:604 Read of size 1 at addr ffff8801c42a3bba by task syz-executor0/11336 CPU: 1 PID: 11336 Comm: syz-executor0 Not tainted 4.19.0-rc6-next-20181002+ #85 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+0x1d3/0x2c4 lib/dump_stack.c:113 print_address_description.cold.8+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.9+0x242/0x309 mm/kasan/report.c:412 __asan_report_load1_noabort+0x14/0x20 mm/kasan/report.c:430 string+0x298/0x2d0 lib/vsprintf.c:604 vsnprintf+0x48e/0x1b60 lib/vsprintf.c:2298 vscnprintf+0x2d/0x80 lib/vsprintf.c:2401 vprintk_store+0x43/0x510 kernel/printk/printk.c:1846 vprintk_emit+0x1c1/0x930 kernel/printk/printk.c:1904 vprintk_default+0x28/0x30 kernel/printk/printk.c:1962 vprintk_func+0x7e/0x181 kernel/printk/printk_safe.c:398 printk+0xa7/0xcf kernel/printk/printk.c:1995 ovl_lookup_index.cold.14+0xe8/0x1f8 fs/overlayfs/namei.c:689 ovl_lookup+0x9f2/0x29c0 fs/overlayfs/namei.c:1022 __lookup_hash+0x12e/0x190 fs/namei.c:1546 do_rmdir+0x3b3/0x630 fs/namei.c:3930 __do_sys_rmdir fs/namei.c:3959 [inline] __se_sys_rmdir fs/namei.c:3957 [inline] __x64_sys_rmdir+0x36/0x40 fs/namei.c:3957 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457579 Code: 1d b4 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 eb b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f513b22ec78 EFLAGS: 00000246 ORIG_RAX: 0000000000000054 RAX: ffffffffffffffda RBX: 00007f513b22ec90 RCX: 0000000000457579 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000140 RBP: 000000000072bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f513b22f6d4 R13: 00000000004c32cb R14: 00000000004d4ef0 R15: 0000000000000006 Allocated by task 11336: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc+0xc7/0xe0 mm/kasan/kasan.c:553 __do_kmalloc mm/slab.c:3718 [inline] __kmalloc+0x14e/0x760 mm/slab.c:3727 kmalloc_array include/linux/slab.h:669 [inline] kcalloc include/linux/slab.h:680 [inline] ovl_get_index_name_fh+0x57/0x180 fs/overlayfs/namei.c:596 ovl_get_index_name+0x5c/0x80 fs/overlayfs/namei.c:631 ovl_lookup_index+0xe4/0x700 fs/overlayfs/namei.c:678 ovl_lookup+0x9f2/0x29c0 fs/overlayfs/namei.c:1022 __lookup_hash+0x12e/0x190 fs/namei.c:1546 do_rmdir+0x3b3/0x630 fs/namei.c:3930 __do_sys_rmdir fs/namei.c:3959 [inline] __se_sys_rmdir fs/namei.c:3957 [inline] __x64_sys_rmdir+0x36/0x40 fs/namei.c:3957 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 3421: save_stack+0x43/0xd0 mm/kasan/kasan.c:448 set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 __cache_free mm/slab.c:3498 [inline] kfree+0xcf/0x230 mm/slab.c:3813 inotify_free_event+0x15/0x20 fs/notify/inotify/inotify_fsnotify.c:187 fsnotify_destroy_event.part.1+0x1ad/0x280 fs/notify/notification.c:87 fsnotify_destroy_event+0x69/0x80 fs/notify/notification.c:74 inotify_read+0x5c3/0x9d0 fs/notify/inotify/inotify_user.c:247 __vfs_read+0x117/0x9b0 fs/read_write.c:416 vfs_read+0x17f/0x3c0 fs/read_write.c:452 ksys_read+0x101/0x260 fs/read_write.c:578 __do_sys_read fs/read_write.c:588 [inline] __se_sys_read fs/read_write.c:586 [inline] __x64_sys_read+0x73/0xb0 fs/read_write.c:586 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 ffff8801c42a3b80 which belongs to the cache kmalloc-64 of size 64 The buggy address is located 58 bytes inside of 64-byte region [ffff8801c42a3b80, ffff8801c42a3bc0) The buggy address belongs to the page: page:ffffea000710a8c0 count:1 mapcount:0 mapping:ffff8801da800340 index:0x0 flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffffea000723e948 ffffea00071ec248 ffff8801da800340 raw: 0000000000000000 ffff8801c42a3000 0000000100000020 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8801c42a3a80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8801c42a3b00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8801c42a3b80: 00 00 00 00 00 00 00 02 fc fc fc fc fc fc fc fc ^ ffff8801c42a3c00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8801c42a3c80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ==================================================================