IPv6: ADDRCONF(NETDEV_CHANGE): veth1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth0: link becomes ready 8021q: adding VLAN 0 to HW filter on device team0 8021q: adding VLAN 0 to HW filter on device team0 ================================================================== BUG: KASAN: use-after-free in debugfs_remove+0x10b/0x130 fs/debugfs/inode.c:684 Read of size 8 at addr ffff8801c67dc1a0 by task kworker/0:3/3113 CPU: 0 PID: 3113 Comm: kworker/0:3 Not tainted 4.19.0-rc8-next-20181019+ #98 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+0x244/0x39d lib/dump_stack.c:113 print_address_description.cold.7+0x9/0x1ff mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.8+0x242/0x309 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 debugfs_remove+0x10b/0x130 fs/debugfs/inode.c:684 blk_trace_free+0x35/0x130 kernel/trace/blktrace.c:312 blk_trace_cleanup kernel/trace/blktrace.c:339 [inline] __blk_trace_remove+0x7a/0xa0 kernel/trace/blktrace.c:352 blk_trace_shutdown+0x63/0x80 kernel/trace/blktrace.c:752 __blk_release_queue+0x22d/0x500 block/blk-sysfs.c:852 process_one_work+0xc8b/0x1c40 kernel/workqueue.c:2153 kobject: 'loop0' (00000000c6fa7511): fill_kobj_path: path = '/devices/virtual/block/loop0' kobject: 'queue' (0000000077b3fe2d): kobject_add_internal: parent: 'loop0', set: '' worker_thread+0x17f/0x1390 kernel/workqueue.c:2296 kobject: 'mq' (00000000ae5ce67b): kobject_add_internal: parent: 'loop0', set: '' kobject: 'mq' (00000000ae5ce67b): kobject_uevent_env kobject: 'mq' (00000000ae5ce67b): kobject_uevent_env: filter function caused the event to drop! kthread+0x35a/0x440 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 kobject: '0' (000000000c49c0fe): kobject_add_internal: parent: 'mq', set: '' Allocated by task 8469: 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 kasan_slab_alloc+0x12/0x20 mm/kasan/kasan.c:490 kmem_cache_alloc+0x12e/0x730 mm/slab.c:3554 __d_alloc+0xc8/0xb90 fs/dcache.c:1599 d_alloc+0x96/0x380 fs/dcache.c:1678 d_alloc_parallel+0x15a/0x1f40 fs/dcache.c:2421 __lookup_slow+0x1e6/0x540 fs/namei.c:1654 kobject: 'cpu0' (000000003d34cf1d): kobject_add_internal: parent: '0', set: '' lookup_one_len+0x1d8/0x220 fs/namei.c:2543 start_creating+0xc6/0x200 fs/debugfs/inode.c:310 __debugfs_create_file+0x63/0x400 fs/debugfs/inode.c:349 debugfs_create_file+0x57/0x70 fs/debugfs/inode.c:401 do_blk_trace_setup+0x45d/0xdb0 kernel/trace/blktrace.c:528 __blk_trace_setup+0xd5/0x180 kernel/trace/blktrace.c:577 blk_trace_ioctl+0x17a/0x2f0 kernel/trace/blktrace.c:716 blkdev_ioctl+0x8bc/0x2010 block/ioctl.c:587 block_ioctl+0xee/0x130 fs/block_dev.c:1883 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:501 [inline] do_vfs_ioctl+0x1de/0x1720 fs/ioctl.c:685 kobject: 'cpu1' (000000004829aecd): kobject_add_internal: parent: '0', set: '' ksys_ioctl+0xa9/0xd0 fs/ioctl.c:702 __do_sys_ioctl fs/ioctl.c:709 [inline] __se_sys_ioctl fs/ioctl.c:707 [inline] __x64_sys_ioctl+0x73/0xb0 fs/ioctl.c:707 do_syscall_64+0x1b9/0x820 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 0: 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] kmem_cache_free+0x83/0x290 mm/slab.c:3760 __d_free+0x20/0x30 fs/dcache.c:257 __rcu_reclaim kernel/rcu/rcu.h:240 [inline] rcu_do_batch kernel/rcu/tree.c:2437 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2716 [inline] rcu_process_callbacks+0x1006/0x1ac0 kernel/rcu/tree.c:2697 kobject: 'queue' (0000000077b3fe2d): kobject_uevent_env __do_softirq+0x308/0xb7e kernel/softirq.c:292 The buggy address belongs to the object at ffff8801c67dc160 which belongs to the cache dentry(81:syz1) of size 288 The buggy address is located 64 bytes inside of 288-byte region [ffff8801c67dc160, ffff8801c67dc280) The buggy address belongs to the page: page:ffffea000719f700 count:1 mapcount:0 mapping:ffff8801bbb58600 index:0x0 flags: 0x2fffc0000000200(slab) raw: 02fffc0000000200 ffffea000730c648 ffffea0006b55948 ffff8801bbb58600 kobject: 'queue' (0000000077b3fe2d): kobject_uevent_env: filter function caused the event to drop! raw: 0000000000000000 ffff8801c67dc000 000000010000000b ffff8801cc56a680 kobject: 'iosched' (00000000d12fd823): kobject_add_internal: parent: 'queue', set: '' page dumped because: kasan: bad access detected page->mem_cgroup:ffff8801cc56a680 Memory state around the buggy address: ffff8801c67dc080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c67dc100: fb fb fb fb fc fc fc fc fc fc fc fc fb fb fb fb >ffff8801c67dc180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8801c67dc200: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8801c67dc280: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ================================================================== kobject: 'iosched' (00000000d12fd823): kobject_uevent_env