Bluetooth: hci3: Controller not accepting commands anymore: ncmd = 0 Bluetooth: hci3: Injecting HCI hardware error event Bluetooth: hci3: hardware error 0x00 ================================================================== BUG: KASAN: slab-out-of-bounds in __list_del_entry_valid_or_report+0x1d4/0x200 lib/list_debug.c:62 Read of size 8 at addr ffff88801b20f570 by task kworker/u33:3/5944 CPU: 1 UID: 0 PID: 5944 Comm: kworker/u33:3 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2~bpo12+1 04/01/2014 Workqueue: hci3 hci_error_reset Call Trace: __dump_stack lib/dump_stack.c:94 [inline] dump_stack_lvl+0x116/0x1f0 lib/dump_stack.c:120 print_address_description mm/kasan/report.c:378 [inline] print_report+0xcd/0x630 mm/kasan/report.c:482 kasan_report+0xe0/0x110 mm/kasan/report.c:595 __list_del_entry_valid_or_report+0x1d4/0x200 lib/list_debug.c:62 __list_del_entry_valid include/linux/list.h:132 [inline] __list_del_entry include/linux/list.h:223 [inline] list_del_init include/linux/list.h:295 [inline] bt_accept_unlink+0x34/0x2d0 net/bluetooth/af_bluetooth.c:259 l2cap_sock_teardown_cb+0x1a3/0x3c0 net/bluetooth/l2cap_sock.c:1616 l2cap_chan_del+0xbd/0x8f0 net/bluetooth/l2cap_core.c:655 l2cap_conn_del+0x37a/0x730 net/bluetooth/l2cap_core.c:1787 l2cap_disconn_cfm net/bluetooth/l2cap_core.c:7325 [inline] l2cap_disconn_cfm+0x96/0xd0 net/bluetooth/l2cap_core.c:7318 hci_disconn_cfm include/net/bluetooth/hci_core.h:2122 [inline] hci_conn_hash_flush+0x10e/0x260 net/bluetooth/hci_conn.c:2609 hci_dev_close_sync+0x602/0x11d0 net/bluetooth/hci_sync.c:5308 hci_dev_do_close+0x2e/0x90 net/bluetooth/hci_core.c:501 hci_error_reset+0xbf/0x320 net/bluetooth/hci_core.c:1034 process_one_work+0x9cf/0x1b70 kernel/workqueue.c:3263 process_scheduled_works kernel/workqueue.c:3346 [inline] worker_thread+0x6c8/0xf10 kernel/workqueue.c:3427 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x675/0x7d0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Allocated by task 8884: kasan_save_stack+0x33/0x60 mm/kasan/common.c:56 kasan_save_track+0x14/0x30 mm/kasan/common.c:77 poison_kmalloc_redzone mm/kasan/common.c:400 [inline] __kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:417 kmalloc_noprof include/linux/slab.h:957 [inline] kzalloc_noprof include/linux/slab.h:1094 [inline] srp_add_port drivers/infiniband/ulp/srp/ib_srp.c:3961 [inline] srp_add_one+0x6a1/0xee0 drivers/infiniband/ulp/srp/ib_srp.c:4071 add_client_context+0x3de/0x590 drivers/infiniband/core/device.c:757 enable_device_and_get+0x1d4/0x3f0 drivers/infiniband/core/device.c:1368 ib_register_device drivers/infiniband/core/device.c:1487 [inline] ib_register_device+0x87f/0xe00 drivers/infiniband/core/device.c:1433 rxe_register_device+0x275/0x320 drivers/infiniband/sw/rxe/rxe_verbs.c:1556 rxe_net_add+0x95/0xf0 drivers/infiniband/sw/rxe/rxe_net.c:537 rxe_newlink+0x70/0x190 drivers/infiniband/sw/rxe/rxe.c:234 nldev_newlink+0x3a6/0x680 drivers/infiniband/core/nldev.c:1797 rdma_nl_rcv_msg+0x38a/0x6e0 drivers/infiniband/core/netlink.c:195 rdma_nl_rcv_skb.constprop.0.isra.0+0x2d0/0x430 drivers/infiniband/core/netlink.c:239 netlink_unicast_kernel net/netlink/af_netlink.c:1320 [inline] netlink_unicast+0x5aa/0x870 net/netlink/af_netlink.c:1346 netlink_sendmsg+0x8c8/0xdd0 net/netlink/af_netlink.c:1896 sock_sendmsg_nosec net/socket.c:727 [inline] __sock_sendmsg net/socket.c:742 [inline] ____sys_sendmsg+0xa98/0xc70 net/socket.c:2630 ___sys_sendmsg+0x134/0x1d0 net/socket.c:2684 __sys_sendmsg+0x16d/0x220 net/socket.c:2716 do_syscall_32_irqs_on arch/x86/entry/syscall_32.c:83 [inline] __do_fast_syscall_32+0x7c/0x300 arch/x86/entry/syscall_32.c:306 do_fast_syscall_32+0x32/0x80 arch/x86/entry/syscall_32.c:331 entry_SYSENTER_compat_after_hwframe+0x84/0x8e The buggy address belongs to the object at ffff88801b20f000 which belongs to the cache kmalloc-2k of size 2048 The buggy address is located 0 bytes to the right of allocated 1392-byte region [ffff88801b20f000, ffff88801b20f570) The buggy address belongs to the physical page: page: refcount:0 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1b208 head: order:3 mapcount:0 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000000040(head|node=0|zone=1|lastcpupid=0x7ff) page_type: f5(slab) raw: 00fff00000000040 ffff88801b442f00 dead000000000100 dead000000000122 raw: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000040 ffff88801b442f00 dead000000000100 dead000000000122 head: 0000000000000000 0000000000080008 00000000f5000000 0000000000000000 head: 00fff00000000003 ffffea00006c8201 00000000ffffffff 00000000ffffffff head: ffffffffffffffff 0000000000000000 00000000ffffffff 0000000000000008 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0xd20c0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 5939, tgid 5939 (syz-executor), ts 54152321220, free_ts 52488606600 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x1c0/0x230 mm/page_alloc.c:1850 prep_new_page mm/page_alloc.c:1858 [inline] get_page_from_freelist+0x10a3/0x3a30 mm/page_alloc.c:3884 __alloc_frozen_pages_noprof+0x25f/0x2470 mm/page_alloc.c:5183 alloc_pages_mpol+0x1fb/0x550 mm/mempolicy.c:2416 alloc_slab_page mm/slub.c:3055 [inline] allocate_slab mm/slub.c:3228 [inline] new_slab+0x24a/0x360 mm/slub.c:3282 ___slab_alloc+0xdae/0x1a60 mm/slub.c:4651 __slab_alloc.constprop.0+0x63/0x110 mm/slub.c:4770 __slab_alloc_node mm/slub.c:4846 [inline] slab_alloc_node mm/slub.c:5268 [inline] __do_kmalloc_node mm/slub.c:5641 [inline] __kmalloc_node_noprof+0x4dd/0x8a0 mm/slub.c:5648 kmalloc_node_noprof include/linux/slab.h:987 [inline] qdisc_alloc+0xbb/0xc50 net/sched/sch_generic.c:950 qdisc_create_dflt+0x94/0x490 net/sched/sch_generic.c:1012 attach_one_default_qdisc net/sched/sch_generic.c:1178 [inline] netdev_for_each_tx_queue include/linux/netdevice.h:2664 [inline] attach_default_qdiscs net/sched/sch_generic.c:1196 [inline] dev_activate+0x63f/0x12d0 net/sched/sch_generic.c:1255 __dev_open+0x432/0x7c0 net/core/dev.c:1691 __dev_change_flags+0x55d/0x720 net/core/dev.c:9637 netif_change_flags+0x8d/0x160 net/core/dev.c:9700 do_setlink.constprop.0+0xb53/0x4380 net/core/rtnetlink.c:3151 rtnl_changelink net/core/rtnetlink.c:3769 [inline] __rtnl_newlink net/core/rtnetlink.c:3928 [inline] rtnl_newlink+0x1446/0x2000 net/core/rtnetlink.c:4065 page last free pid 110 tgid 110 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1394 [inline] free_unref_folios+0xa31/0x1610 mm/page_alloc.c:2963 shrink_folio_list+0x35c7/0x4800 mm/vmscan.c:1569 evict_folios+0x79c/0x1b30 mm/vmscan.c:4745 try_to_shrink_lruvec+0x585/0x9b0 mm/vmscan.c:4908 shrink_one+0x3e3/0x7a0 mm/vmscan.c:4953 shrink_many mm/vmscan.c:5016 [inline] lru_gen_shrink_node mm/vmscan.c:5094 [inline] shrink_node+0x26cb/0x3d80 mm/vmscan.c:6081 kswapd_shrink_node mm/vmscan.c:6941 [inline] balance_pgdat+0xbb8/0x1a50 mm/vmscan.c:7124 kswapd+0x590/0xb90 mm/vmscan.c:7389 kthread+0x3c5/0x780 kernel/kthread.c:463 ret_from_fork+0x675/0x7d0 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 Memory state around the buggy address: ffff88801b20f400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ffff88801b20f480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88801b20f500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc ^ ffff88801b20f580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88801b20f600: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================