TCP: request_sock_TCPv6: Possible SYN flooding on port 20000. Sending cookies. Check SNMP counters. TCP: request_sock_TCPv6: Possible SYN flooding on port 20000. Sending cookies. Check SNMP counters. ================================================================== BUG: KASAN: use-after-free in kobject_put+0xca/0xe0 lib/kobject.c:704 Read of size 1 at addr ffff88805bc5dd4c by task syz-executor.3/26739 CPU: 1 PID: 26739 Comm: syz-executor.3 Not tainted 5.0.0-rc8+ #89 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 print_address_description.cold+0x7c/0x20d mm/kasan/report.c:187 kasan_report.cold+0x1b/0x40 mm/kasan/report.c:317 __asan_report_load1_noabort+0x14/0x20 mm/kasan/generic_report.c:132 kobject_put+0xca/0xe0 lib/kobject.c:704 put_device+0x20/0x30 drivers/base/core.c:2060 hci_free_dev+0x19/0x20 net/bluetooth/hci_core.c:3208 vhci_release+0x7e/0xf0 drivers/bluetooth/hci_vhci.c:355 __fput+0x2df/0x8d0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x92c/0x2fd0 kernel/exit.c:875 do_group_exit+0x135/0x370 kernel/exit.c:979 get_signal+0x399/0x1d50 kernel/signal.c:2575 do_signal+0x87/0x1940 arch/x86/kernel/signal.c:816 exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457e29 Code: ad b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007f8d2fc40cf8 EFLAGS: 00000246 ORIG_RAX: 00000000000000ca RAX: fffffffffffffe00 RBX: 000000000073c048 RCX: 0000000000457e29 RDX: 0000000000000000 RSI: 0000000000000080 RDI: 000000000073c048 RBP: 000000000073c040 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000073c04c R13: 00007ffe4d9e40cf R14: 00007f8d2fc419c0 R15: 000000000073c04c kobject: 'hci5' (000000005c51b7ea): kobject_cleanup, parent (null) kobject: 'hci2' (000000005e29581a): kobject_cleanup, parent (null) Allocated by task 11354: kobject: 'hci2' (000000005e29581a): calling ktype release save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_kmalloc mm/kasan/common.c:495 [inline] __kasan_kmalloc.constprop.0+0xcf/0xe0 mm/kasan/common.c:468 kasan_kmalloc+0x9/0x10 mm/kasan/common.c:509 kmem_cache_alloc_trace+0x151/0x760 mm/slab.c:3615 kmalloc include/linux/slab.h:545 [inline] kzalloc include/linux/slab.h:740 [inline] hci_alloc_dev+0x43/0x1d00 net/bluetooth/hci_core.c:3116 __vhci_create_device+0x101/0x5a0 drivers/bluetooth/hci_vhci.c:114 kobject: 'hci5' (000000005c51b7ea): calling ktype release vhci_create_device drivers/bluetooth/hci_vhci.c:163 [inline] vhci_open_timeout+0x3b/0x50 drivers/bluetooth/hci_vhci.c:319 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 kobject: 'tx-0' (000000005c5e94c9): auto cleanup 'remove' event Freed by task 26739: save_stack+0x45/0xd0 mm/kasan/common.c:73 set_track mm/kasan/common.c:85 [inline] __kasan_slab_free+0x102/0x150 mm/kasan/common.c:457 kasan_slab_free+0xe/0x10 mm/kasan/common.c:465 kobject: 'hci5': free name __cache_free mm/slab.c:3494 [inline] kfree+0xcf/0x230 mm/slab.c:3811 bt_host_release+0x19/0x30 net/bluetooth/hci_sysfs.c:86 kobject: 'hci2': free name device_release+0x7d/0x210 drivers/base/core.c:919 kobject: 'tx-0' (000000005c5e94c9): kobject_uevent_env kobject_cleanup lib/kobject.c:662 [inline] kobject_release lib/kobject.c:691 [inline] kref_put include/linux/kref.h:67 [inline] kobject_put.cold+0x28f/0x2ec lib/kobject.c:708 put_device+0x20/0x30 drivers/base/core.c:2060 kobject: 'tx-0' (000000005c5e94c9): fill_kobj_path: path = '/devices/virtual/net/ax0/queues/tx-0' hci_dev_put include/net/bluetooth/hci_core.h:1014 [inline] hci_unregister_dev+0x639/0x820 net/bluetooth/hci_core.c:3379 vhci_release+0x76/0xf0 drivers/bluetooth/hci_vhci.c:354 __fput+0x2df/0x8d0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 kobject: 'tx-0' (000000005c5e94c9): auto cleanup kobject_del exit_task_work include/linux/task_work.h:22 [inline] do_exit+0x92c/0x2fd0 kernel/exit.c:875 do_group_exit+0x135/0x370 kernel/exit.c:979 get_signal+0x399/0x1d50 kernel/signal.c:2575 do_signal+0x87/0x1940 arch/x86/kernel/signal.c:816 exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:162 kobject: 'tx-0' (000000005c5e94c9): calling ktype release prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe The buggy address belongs to the object at ffff88805bc5cc80 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 4300 bytes inside of 8192-byte region [ffff88805bc5cc80, ffff88805bc5ec80) The buggy address belongs to the page: kobject: 'tx-0': free name page:ffffea00016f1700 count:1 mapcount:0 mapping:ffff88812c3f2080 index:0x0 compound_mapcount: 0 kobject: 'queues' (00000000b90a8898): kobject_cleanup, parent (null) flags: 0x1fffc0000010200(slab|head) kobject: 'queues' (00000000b90a8898): calling ktype release raw: 01fffc0000010200 ffffea000228a808 ffffea0002412e08 ffff88812c3f2080 raw: 0000000000000000 ffff88805bc5cc80 0000000100000001 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff88805bc5dc00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805bc5dc80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88805bc5dd00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb kobject: 'queues' (00000000b90a8898): kset_release ^ ffff88805bc5dd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88805bc5de00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================