kobject: 'rx-0' (ffff88809fd106d0): fill_kobj_path: path = '/devices/virtual/net/bpq0/queues/rx-0' kobject: 'tx-0' (ffff888056994a58): kobject_add_internal: parent: 'queues', set: 'queues' kobject: 'tx-0' (ffff888056994a58): kobject_uevent_env kobject: 'tx-0' (ffff888056994a58): fill_kobj_path: path = '/devices/virtual/net/bpq0/queues/tx-0' ================================================================== BUG: KASAN: use-after-free in __read_once_size include/linux/compiler.h:183 [inline] BUG: KASAN: use-after-free in atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline] BUG: KASAN: use-after-free in atomic_long_read include/asm-generic/atomic-long.h:45 [inline] BUG: KASAN: use-after-free in __mutex_unlock_slowpath+0x656/0x800 kernel/locking/mutex.c:1027 Read of size 8 at addr ffff888090087098 by task syz-executor.1/10888 CPU: 1 PID: 10888 Comm: syz-executor.1 Not tainted 4.14.160-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 __read_once_size include/linux/compiler.h:183 [inline] atomic64_read arch/x86/include/asm/atomic64_64.h:22 [inline] atomic_long_read include/asm-generic/atomic-long.h:45 [inline] __mutex_unlock_slowpath+0x656/0x800 kernel/locking/mutex.c:1027 mutex_unlock+0xd/0x10 kernel/locking/mutex.c:614 blkdev_get+0x555/0x8e0 fs/block_dev.c:1655 blkdev_get_by_dev+0x42/0x80 fs/block_dev.c:1734 lock_rdev+0x83/0x110 drivers/md/md.c:2293 md_import_device+0x1cd/0x450 drivers/md/md.c:3466 add_new_disk+0x4e2/0x15f0 drivers/md/md.c:6320 md_ioctl+0x38d0/0x4bd0 drivers/md/md.c:7338 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x96b/0x1860 block/ioctl.c:594 block_ioctl+0xde/0x120 fs/block_dev.c:1881 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 RIP: 0033:0x45a919 RSP: 002b:00007f632d553c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045a919 RDX: 0000000020001200 RSI: 0000000040140921 RDI: 0000000000000008 RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007f632d5546d4 R13: 00000000004c2230 R14: 00000000004d73b8 R15: 00000000ffffffff Allocated by task 10888: 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 kasan_slab_alloc+0xf/0x20 mm/kasan/kasan.c:489 kmem_cache_alloc+0x12e/0x780 mm/slab.c:3552 bdev_alloc_inode+0x1c/0x50 fs/block_dev.c:754 alloc_inode+0x64/0x180 fs/inode.c:209 iget5_locked+0x170/0x460 fs/inode.c:1042 bdget+0x82/0x4e0 fs/block_dev.c:895 blkdev_get_by_dev+0x27/0x80 fs/block_dev.c:1730 lock_rdev+0x83/0x110 drivers/md/md.c:2293 md_import_device+0x1cd/0x450 drivers/md/md.c:3466 add_new_disk+0x4e2/0x15f0 drivers/md/md.c:6320 md_ioctl+0x38d0/0x4bd0 drivers/md/md.c:7338 __blkdev_driver_ioctl block/ioctl.c:297 [inline] blkdev_ioctl+0x96b/0x1860 block/ioctl.c:594 block_ioctl+0xde/0x120 fs/block_dev.c:1881 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x7ae/0x1060 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x8f/0xc0 fs/ioctl.c:692 do_syscall_64+0x1e8/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x42/0xb7 Freed by task 17: 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] kmem_cache_free+0x83/0x2b0 mm/slab.c:3758 bdev_i_callback+0x20/0x30 fs/block_dev.c:765 __rcu_reclaim kernel/rcu/rcu.h:195 [inline] rcu_do_batch kernel/rcu/tree.c:2699 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2962 [inline] __rcu_process_callbacks kernel/rcu/tree.c:2929 [inline] rcu_process_callbacks+0x7b8/0x12b0 kernel/rcu/tree.c:2946 __do_softirq+0x244/0x9a0 kernel/softirq.c:288 The buggy address belongs to the object at ffff888090087080 which belongs to the cache bdev_cache of size 1352 The buggy address is located 24 bytes inside of 1352-byte region [ffff888090087080, ffff8880900875c8) The buggy address belongs to the page: page:ffffea00024021c0 count:1 mapcount:0 mapping:ffff888090087080 index:0xffff888090087ffe flags: 0xfffe0000000100(slab) raw: 00fffe0000000100 ffff888090087080 ffff888090087ffe 0000000100000002 raw: ffffea000240b8e0 ffffea00021338e0 ffff88821f8b5980 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888090086f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888090087000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888090087080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888090087100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888090087180: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================