IPv6: ADDRCONF(NETDEV_CHANGE): hsr_slave_1: link becomes ready ================================================================== BUG: KASAN: use-after-free in d_inode /./include/linux/dcache.h:515 [inline] BUG: KASAN: use-after-free in debugfs_remove+0x6d/0xf0 /fs/debugfs/inode.c:706 Read of size 8 at addr ffff8880aa09ebd8 by task kworker/0:2/2946 CPU: 0 PID: 2946 Comm: kworker/0:2 Not tainted 5.2.0+ #37 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: events __blk_release_queue Call Trace: __dump_stack /lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x2f8 /lib/dump_stack.c:113 print_address_description+0x75/0x5b0 /mm/kasan/report.c:351 __kasan_report+0x14b/0x1c0 /mm/kasan/report.c:482 kasan_report+0x26/0x50 /mm/kasan/common.c:612 __asan_report_load8_noabort+0x14/0x20 /mm/kasan/generic_report.c:132 d_inode /./include/linux/dcache.h:515 [inline] debugfs_remove+0x6d/0xf0 /fs/debugfs/inode.c:706 blk_trace_free /kernel/trace/blktrace.c:312 [inline] blk_trace_cleanup /kernel/trace/blktrace.c:339 [inline] __blk_trace_remove+0xa5/0x180 /kernel/trace/blktrace.c:352 blk_trace_shutdown+0x20b/0x260 /kernel/trace/blktrace.c:747 __blk_release_queue+0x1bd/0x250 /block/blk-sysfs.c:902 process_one_work+0x83b/0x1150 /kernel/workqueue.c:2269 worker_thread+0xc01/0x1630 /kernel/workqueue.c:2415 kthread+0x332/0x350 /kernel/kthread.c:255 ret_from_fork+0x24/0x30 /arch/x86/entry/entry_64.S:352 Allocated by task 7839: save_stack /mm/kasan/common.c:69 [inline] set_track /mm/kasan/common.c:77 [inline] __kasan_kmalloc+0x11c/0x1b0 /mm/kasan/common.c:487 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+0x1e9/0x2e0 /mm/slab.c:3483 __d_alloc+0x2d/0x6e0 /fs/dcache.c:1688 d_alloc /fs/dcache.c:1767 [inline] d_alloc_parallel+0xcc/0x15a0 /fs/dcache.c:2519 __lookup_slow+0xfc/0x410 /fs/namei.c:1652 lookup_one_len+0x173/0x2a0 /fs/namei.c:2541 start_creating+0xd3/0x270 /fs/debugfs/inode.c:312 debugfs_create_dir+0x27/0x440 /fs/debugfs/inode.c:521 blk_mq_debugfs_register+0x8a/0x890 /block/blk-mq-debugfs.c:826 blk_register_queue+0x24b/0x370 /block/blk-sysfs.c:987 __device_add_disk+0xc3f/0x1180 /block/genhd.c:738 device_add_disk+0x2a/0x40 /block/genhd.c:754 add_disk /./include/linux/genhd.h:429 [inline] loop_add+0x5d1/0x780 /drivers/block/loop.c:2048 loop_probe+0x1e8/0x2f0 /drivers/block/loop.c:2120 kobj_lookup+0x3da/0x450 /drivers/base/map.c:124 get_gendisk+0xe7/0x400 /block/genhd.c:869 bdev_get_gendisk /fs/block_dev.c:1100 [inline] __blkdev_get+0x12c/0x1400 /fs/block_dev.c:1493 blkdev_get+0x889/0x9d0 /fs/block_dev.c:1652 blkdev_open+0x1e3/0x2c0 /fs/block_dev.c:1810 do_dentry_open+0x7d1/0x1080 /fs/open.c:778 vfs_open+0x73/0x80 /fs/open.c:887 do_last /fs/namei.c:3416 [inline] path_openat+0x136d/0x4440 /fs/namei.c:3533 do_filp_open+0x1f7/0x430 /fs/namei.c:3563 do_sys_open+0x343/0x620 /fs/open.c:1070 __do_sys_open /fs/open.c:1088 [inline] __se_sys_open /fs/open.c:1083 [inline] __x64_sys_open+0x87/0x90 /fs/open.c:1083 do_syscall_64+0xfe/0x140 /arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 7828: save_stack /mm/kasan/common.c:69 [inline] set_track /mm/kasan/common.c:77 [inline] __kasan_slab_free+0x12a/0x1e0 /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+0x81/0xf0 /mm/slab.c:3693 __d_free+0x20/0x30 /fs/dcache.c:271 __rcu_reclaim /kernel/rcu/rcu.h:222 [inline] rcu_do_batch /kernel/rcu/tree.c:2114 [inline] rcu_core+0x7e2/0xf00 /kernel/rcu/tree.c:2314 rcu_core_si+0x9/0x10 /kernel/rcu/tree.c:2323 __do_softirq+0x307/0x774 /./arch/x86/include/asm/paravirt.h:778 The buggy address belongs to the object at ffff8880aa09eb80 which belongs to the cache dentry(17:syz0) of size 288 The buggy address is located 88 bytes inside of 288-byte region [ffff8880aa09eb80, ffff8880aa09eca0) The buggy address belongs to the page: page:ffffea0002a82780 refcount:1 mapcount:0 mapping:ffff8880a4316c40 index:0x0 flags: 0x1fffc0000000200(slab) raw: 01fffc0000000200 ffffea0002527f88 ffffea00022411c8 ffff8880a4316c40 raw: 0000000000000000 ffff8880aa09e080 000000010000000b 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8880aa09ea80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880aa09eb00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc >ffff8880aa09eb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880aa09ec00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880aa09ec80: fb fb fb fb fc fc fc fc fc fc fc fc fb fb fb fb ==================================================================