batman_adv: batadv0: Interface activated: batadv_slave_1 IPv6: ADDRCONF(NETDEV_CHANGE): batadv_slave_1: link becomes ready IPv6: ADDRCONF(NETDEV_CHANGE): veth1_to_batadv: link becomes ready Bluetooth: hci3 command 0x041b tx timeout ================================================================== BUG: KASAN: use-after-free in __mutex_waiter_is_first kernel/locking/mutex.c:172 [inline] BUG: KASAN: use-after-free in __mutex_lock_common kernel/locking/mutex.c:840 [inline] BUG: KASAN: use-after-free in __mutex_lock+0x140b/0x1490 kernel/locking/mutex.c:893 Read of size 8 at addr ffff888088211398 by task syz-executor.4/10962 CPU: 1 PID: 10962 Comm: syz-executor.4 Not tainted 4.14.196-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+0x14b/0x1f1 lib/dump_stack.c:58 print_address_description.cold.6+0x9/0x1ca mm/kasan/report.c:252 kasan_report_error mm/kasan/report.c:351 [inline] kasan_report.cold.7+0x11a/0x2d4 mm/kasan/report.c:409 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:430 __mutex_waiter_is_first kernel/locking/mutex.c:172 [inline] __mutex_lock_common kernel/locking/mutex.c:840 [inline] __mutex_lock+0x140b/0x1490 kernel/locking/mutex.c:893 mutex_lock_nested+0x16/0x20 kernel/locking/mutex.c:908 hci_get_auth_info+0x95/0x360 net/bluetooth/hci_conn.c:1508 hci_sock_bound_ioctl net/bluetooth/hci_sock.c:945 [inline] hci_sock_ioctl+0x40c/0x600 net/bluetooth/hci_sock.c:1048 sock_do_ioctl+0x62/0xa0 net/socket.c:974 sock_ioctl+0x251/0x430 net/socket.c:1071 vfs_ioctl fs/ioctl.c:46 [inline] file_ioctl fs/ioctl.c:500 [inline] do_vfs_ioctl+0x180/0xfb0 fs/ioctl.c:684 SYSC_ioctl fs/ioctl.c:701 [inline] SyS_ioctl+0x74/0x80 fs/ioctl.c:692 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x45ce69 RSP: 002b:00007fa83b77bc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000001d340 RCX: 000000000045ce69 RDX: 0000000020000000 RSI: 00000000800448d7 RDI: 0000000000000005 RBP: 000000000118c000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000118bfcc R13: 00007fff384d814f R14: 00007fa83b77c9c0 R15: 000000000118bfcc Allocated by task 7475: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:551 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:536 kmem_cache_alloc_trace+0x152/0x3f0 mm/slab.c:3618 kmalloc include/linux/slab.h:488 [inline] kzalloc include/linux/slab.h:661 [inline] hci_alloc_dev+0x43/0x1b50 net/bluetooth/hci_core.c:2978 __vhci_create_device+0xd8/0x4f0 drivers/bluetooth/hci_vhci.c:114 vhci_create_device drivers/bluetooth/hci_vhci.c:163 [inline] vhci_open_timeout+0x34/0x50 drivers/bluetooth/hci_vhci.c:319 process_one_work+0x74f/0x1620 kernel/workqueue.c:2116 worker_thread+0xcc/0xed0 kernel/workqueue.c:2250 kthread+0x338/0x400 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Freed by task 8256: save_stack_trace+0x16/0x20 arch/x86/kernel/stacktrace.c:59 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_slab_free+0xab/0x190 mm/kasan/kasan.c:524 __cache_free mm/slab.c:3496 [inline] kfree+0xcc/0x270 mm/slab.c:3815 bt_host_release+0x10/0x20 net/bluetooth/hci_sysfs.c:86 device_release+0xd7/0x170 drivers/base/core.c:831 kobject_cleanup lib/kobject.c:646 [inline] kobject_release lib/kobject.c:675 [inline] kref_put include/linux/kref.h:70 [inline] kobject_put+0x10d/0x1b0 lib/kobject.c:692 put_device+0x12/0x20 drivers/base/core.c:2014 hci_free_dev+0x10/0x20 net/bluetooth/hci_core.c:3065 vhci_release+0x73/0xe0 drivers/bluetooth/hci_vhci.c:355 __fput+0x232/0x740 fs/file_table.c:210 ____fput+0x9/0x10 fs/file_table.c:244 task_work_run+0xe5/0x170 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x953/0x2c40 kernel/exit.c:865 do_group_exit+0xf8/0x2c0 kernel/exit.c:962 SYSC_exit_group kernel/exit.c:973 [inline] SyS_exit_group+0x18/0x20 kernel/exit.c:971 do_syscall_64+0x1c7/0x5b0 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb The buggy address belongs to the object at ffff888088211340 which belongs to the cache kmalloc-8192 of size 8192 The buggy address is located 88 bytes inside of 8192-byte region [ffff888088211340, ffff888088213340) The buggy address belongs to the page: page:ffffea0002208400 count:1 mapcount:0 mapping:ffff888088211340 index:0x0 compound_mapcount: 0 flags: 0xfffe0000008100(slab|head) raw: 00fffe0000008100 ffff888088211340 0000000000000000 0000000100000001 raw: ffffea000292fa20 ffffea00024a6e20 ffff8880aa802080 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff888088211280: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888088211300: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb >ffff888088211380: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888088211400: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888088211480: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================