IPv6: ADDRCONF(NETDEV_CHANGE): veth0_to_batadv: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready hrtimer: interrupt took 52629 ns ================================================================== BUG: KASAN: use-after-free in disk_unblock_events+0x55/0x60 block/genhd.c:1644 Read of size 8 at addr ffff88808e286ec8 by task syz-executor.4/7779 CPU: 0 PID: 7779 Comm: syz-executor.4 Not tainted 4.14.166-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x142/0x197 lib/dump_stack.c:58 print_address_description.cold+0x7c/0x1dc mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report mm/kasan/report.c:409 [inline] kasan_report.cold+0xa9/0x2af mm/kasan/report.c:393 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 disk_unblock_events+0x55/0x60 block/genhd.c:1644 __blkdev_get+0x7d6/0x1120 fs/block_dev.c:1556 blkdev_get+0xa8/0x8e0 fs/block_dev.c:1612 blkdev_open+0x1d1/0x260 fs/block_dev.c:1770 do_dentry_open+0x73b/0xeb0 fs/open.c:777 vfs_open+0x105/0x220 fs/open.c:891 do_last fs/namei.c:3425 [inline] path_openat+0x8bd/0x3f70 fs/namei.c:3566 do_filp_open+0x18e/0x250 fs/namei.c:3600 do_sys_open+0x2c5/0x430 fs/open.c:1084 SYSC_openat fs/open.c:1111 [inline] SyS_openat+0x30/0x40 fs/open.c:1105 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45b349 RSP: 002b:00007fbb93561c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000101 RAX: ffffffffffffffda RBX: 00007fbb935626d4 RCX: 000000000045b349 RDX: 0000000000000000 RSI: 0000000020000080 RDI: ffffffffffffff9c RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 000000000000077f R14: 00000000004c8e65 R15: 000000000075bf2c Allocated by task 7566: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc mm/kasan/kasan.c:551 [inline] kasan_kmalloc+0xce/0xf0 mm/kasan/kasan.c:529 kmem_cache_alloc_node_trace+0x153/0x770 mm/slab.c:3661 kmalloc_node include/linux/slab.h:526 [inline] kzalloc_node include/linux/slab.h:672 [inline] alloc_disk_node+0x64/0x3e0 block/genhd.c:1387 alloc_disk+0x1b/0x20 block/genhd.c:1371 md_alloc+0x219/0x840 drivers/md/md.c:5322 md_probe+0x31/0x40 drivers/md/md.c:5379 kobj_lookup+0x21c/0x400 drivers/base/map.c:124 get_gendisk+0x3b/0x240 block/genhd.c:785 __blkdev_get+0x3af/0x1120 fs/block_dev.c:1451 blkdev_get+0xa8/0x8e0 fs/block_dev.c:1612 blkdev_open+0x1d1/0x260 fs/block_dev.c:1770 do_dentry_open+0x73b/0xeb0 fs/open.c:777 vfs_open+0x105/0x220 fs/open.c:891 do_last fs/namei.c:3425 [inline] path_openat+0x8bd/0x3f70 fs/namei.c:3566 do_filp_open+0x18e/0x250 fs/namei.c:3600 do_sys_open+0x2c5/0x430 fs/open.c:1084 SYSC_openat fs/open.c:1111 [inline] SyS_openat+0x30/0x40 fs/open.c:1105 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 7779: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack+0x45/0xd0 mm/kasan/kasan.c:447 set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0x75/0xc0 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 disk_release+0x24b/0x2d0 block/genhd.c:1230 device_release+0xf6/0x1a0 drivers/base/core.c:823 kobject_cleanup lib/kobject.c:646 [inline] kobject_release lib/kobject.c:675 [inline] kref_put include/linux/kref.h:70 [inline] kobject_put+0x14e/0x210 lib/kobject.c:692 put_disk+0x23/0x30 block/genhd.c:1452 __blkdev_get+0x73c/0x1120 fs/block_dev.c:1549 blkdev_get+0xa8/0x8e0 fs/block_dev.c:1612 blkdev_open+0x1d1/0x260 fs/block_dev.c:1770 do_dentry_open+0x73b/0xeb0 fs/open.c:777 vfs_open+0x105/0x220 fs/open.c:891 do_last fs/namei.c:3425 [inline] path_openat+0x8bd/0x3f70 fs/namei.c:3566 do_filp_open+0x18e/0x250 fs/namei.c:3600 do_sys_open+0x2c5/0x430 fs/open.c:1084 SYSC_openat fs/open.c:1111 [inline] SyS_openat+0x30/0x40 fs/open.c:1105 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 The buggy address belongs to the object at ffff88808e286940 which belongs to the cache kmalloc-2048 of size 2048 The buggy address is located 1416 bytes inside of 2048-byte region [ffff88808e286940, ffff88808e287140) The buggy address belongs to the page: page:ffffea000238a180 count:1 mapcount:0 mapping:ffff88808e2860c0 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff88808e2860c0 0000000000000000 0000000100000003 raw: ffffea00020b19a0 ffffea0002364620 ffff8880aa800c40 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88808e286d80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808e286e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88808e286e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88808e286f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88808e286f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================