Bluetooth: hci0: command 0x0406 tx timeout Bluetooth: hci4: command 0x0406 tx timeout Bluetooth: hci1: command 0x0406 tx timeout ================================================================== BUG: KASAN: use-after-free in tcf_block_put_all_chains net/sched/cls_api.c:574 [inline] BUG: KASAN: use-after-free in __tcf_block_put+0x4e9/0x5b0 net/sched/cls_api.c:603 Read of size 8 at addr ffff8800ac0fbe40 by task syz-executor.3/17278 CPU: 1 PID: 17278 Comm: syz-executor.3 Not tainted 4.20.0-rc1-syzkaller #0 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+0x86/0xca lib/dump_stack.c:113 print_address_description.cold.5+0x9/0x244 mm/kasan/report.c:256 kasan_report_error mm/kasan/report.c:354 [inline] kasan_report.cold.6+0x242/0x304 mm/kasan/report.c:412 __asan_report_load8_noabort+0x14/0x20 mm/kasan/report.c:433 tcf_block_put_all_chains net/sched/cls_api.c:574 [inline] __tcf_block_put+0x4e9/0x5b0 net/sched/cls_api.c:603 tcf_block_put_ext.part.19+0x57/0x70 net/sched/cls_api.c:880 tcf_block_put_ext net/sched/cls_api.c:875 [inline] tcf_block_put+0xa8/0xf0 net/sched/cls_api.c:890 cake_destroy+0x3e/0x80 net/sched/sch_cake.c:2606 qdisc_destroy+0xe4/0x5a0 net/sched/sch_generic.c:977 qdisc_put+0x46/0x50 net/sched/sch_generic.c:1001 notify_and_destroy+0x34/0x40 net/sched/sch_api.c:941 qdisc_graft+0x86c/0xdf0 net/sched/sch_api.c:999 tc_modify_qdisc+0x9bf/0x1940 net/sched/sch_api.c:1592 rtnetlink_rcv_msg+0x34f/0x950 net/core/rtnetlink.c:4947 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4965 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x660 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x666/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __do_sys_sendmsg net/socket.c:2163 [inline] __se_sys_sendmsg net/socket.c:2161 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2161 do_syscall_64+0x96/0x3d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45e149 Code: 0d b4 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 db b3 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb30f12fc68 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 000000000045e149 RDX: 0000000000000000 RSI: 0000000020000380 RDI: 0000000000000004 RBP: 000000000119c068 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000119c034 R13: 00007fff5bd3838f R14: 00007fb30f1309c0 R15: 000000000119c034 Allocated by task 17267: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] kasan_kmalloc.part.1+0x62/0xf0 mm/kasan/kasan.c:553 kasan_kmalloc+0xaf/0xc0 mm/kasan/kasan.c:538 kmem_cache_alloc_trace+0x13a/0x2f0 mm/slub.c:2771 kmalloc include/linux/slab.h:546 [inline] kzalloc include/linux/slab.h:741 [inline] tcf_block_create net/sched/cls_api.c:515 [inline] tcf_block_get_ext+0x7f4/0x11d0 net/sched/cls_api.c:810 tcf_block_get+0x88/0xd0 net/sched/cls_api.c:865 cake_init+0x28c/0xc80 net/sched/sch_cake.c:2639 qdisc_create+0x3fb/0xf20 net/sched/sch_api.c:1166 tc_modify_qdisc+0x3f2/0x1940 net/sched/sch_api.c:1581 rtnetlink_rcv_msg+0x34f/0x950 net/core/rtnetlink.c:4947 netlink_rcv_skb+0x142/0x390 net/netlink/af_netlink.c:2477 rtnetlink_rcv+0x10/0x20 net/core/rtnetlink.c:4965 netlink_unicast_kernel net/netlink/af_netlink.c:1310 [inline] netlink_unicast+0x443/0x660 net/netlink/af_netlink.c:1336 netlink_sendmsg+0x666/0xc50 net/netlink/af_netlink.c:1917 sock_sendmsg_nosec net/socket.c:621 [inline] sock_sendmsg+0xac/0xf0 net/socket.c:631 ___sys_sendmsg+0x647/0x950 net/socket.c:2116 __sys_sendmsg+0xd9/0x180 net/socket.c:2154 __do_sys_sendmsg net/socket.c:2163 [inline] __se_sys_sendmsg net/socket.c:2161 [inline] __x64_sys_sendmsg+0x73/0xb0 net/socket.c:2161 do_syscall_64+0x96/0x3d0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x49/0xbe Freed by task 16: save_stack mm/kasan/kasan.c:448 [inline] set_track mm/kasan/kasan.c:460 [inline] __kasan_slab_free+0x167/0x240 mm/kasan/kasan.c:521 kasan_slab_free+0xe/0x10 mm/kasan/kasan.c:528 slab_free_hook mm/slub.c:1409 [inline] slab_free_freelist_hook mm/slub.c:1436 [inline] slab_free mm/slub.c:2991 [inline] kfree+0xf2/0x310 mm/slub.c:3942 __rcu_reclaim kernel/rcu/rcu.h:233 [inline] rcu_do_batch kernel/rcu/tree.c:2437 [inline] invoke_rcu_callbacks kernel/rcu/tree.c:2716 [inline] rcu_process_callbacks+0x9f1/0x10e0 kernel/rcu/tree.c:2697 __do_softirq+0x21d/0x8d2 kernel/softirq.c:292 The buggy address belongs to the object at ffff8800ac0fbe40 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 0 bytes inside of 128-byte region [ffff8800ac0fbe40, ffff8800ac0fbec0) The buggy address belongs to the page: page:ffffea0002b03ec0 count:1 mapcount:0 mapping:ffff88013ff35200 index:0xffff8800ac0fbd80 flags: 0xfff00000000200(slab) raw: 00fff00000000200 ffffea0002d02dc0 0000000400000002 ffff88013ff35200 raw: ffff8800ac0fbd80 0000000080150014 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected Memory state around the buggy address: ffff8800ac0fbd00: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8800ac0fbd80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff8800ac0fbe00: fc fc fc fc fc fc fc fc fb fb fb fb fb fb fb fb ^ ffff8800ac0fbe80: fb fb fb fb fb fb fb fb fc fc fc fc fc fc fc fc ffff8800ac0fbf00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================