ci starts bisection 2024-02-08 08:48:01.004603918 +0000 UTC m=+155732.507866777 bisecting cause commit starting from b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d building syzkaller on 6404acf9ce200d01fcbe0923924c9f6c22c258de ensuring issue is reproducible on original commit b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d testing commit b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0c828fbcb0f3fa869c84424d526a48f3242ee67caaf977aeaf84f635795ddd8a all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b785fd68c310b91a213e3173fed5bd2437df515b7d96a5cd30fec002b7c3cfbf all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed kconfig minimization: base=3937 full=7984 leaves diff=2019 split chunks (needed=false): <2019> split chunk #0 of len 2019 into 5 parts testing without sub-chunk 1/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 05af00cbdb6a5212deb6b8524369cfef5832da081039a4e49c30b669c1997154 all runs: OK false negative chance: 0.000 testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ee5b5e1f8987b9b8ddd544366f2919d47dc1797b74d936ee5075b5ecdbf5232d all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d194b460ba10bd9635c80e91e25a3ffd6f714028f70d91020aa7fc151de41ecb all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b8ed7a105fdba8a6525267df9d2549e33f141fee44c0084fbd0e23462a82b781 all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4fe91bf2432af6f6a5a3924ecacddf6568aaf263dcde7d1ef9add3c93a26d0e2 all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] the chunk can be dropped minimized to 404 configs; suspects: [6LOWPAN 6LOWPAN_GHC_EXT_HDR_DEST 6LOWPAN_GHC_EXT_HDR_FRAG 6LOWPAN_GHC_EXT_HDR_HOP 6LOWPAN_GHC_EXT_HDR_ROUTE 6LOWPAN_GHC_ICMPV6 6LOWPAN_GHC_UDP 6LOWPAN_NHC 6LOWPAN_NHC_DEST 6LOWPAN_NHC_FRAGMENT 6LOWPAN_NHC_HOP 6LOWPAN_NHC_IPV6 6LOWPAN_NHC_MOBILITY 6LOWPAN_NHC_ROUTING 6LOWPAN_NHC_UDP 6PACK 842_COMPRESS 842_DECOMPRESS 9P_FSCACHE 9P_FS_POSIX_ACL 9P_FS_SECURITY ACORN_PARTITION ACORN_PARTITION_ADFS ACORN_PARTITION_CUMANA ACORN_PARTITION_EESOX ACORN_PARTITION_ICS ACORN_PARTITION_POWERTEC ACORN_PARTITION_RISCIX ACPI_NFIT ACPI_PLATFORM_PROFILE ADDRESS_MASKING ADFS_FS AFFS_FS AFS_FS AFS_FSCACHE AF_KCM AF_RXRPC AF_RXRPC_IPV6 AIX_PARTITION AMIGA_PARTITION ANDROID_BINDERFS ANDROID_BINDER_IPC ANON_VMA_NAME APERTURE_HELPERS AR5523 ARCH_ENABLE_MEMORY_HOTREMOVE ARCH_ENABLE_THP_MIGRATION ARCH_HAS_CPU_PASID ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION ARCH_HAS_UBSAN ARCH_WANT_PMD_MKWRITE ASM_MODVERSIONS ASYNC_CORE ASYNC_MEMCPY ASYNC_PQ ASYNC_RAID6_RECOV ASYNC_TX_DMA ASYNC_XOR ATARI_PARTITION ATA_GENERIC ATA_OVER_ETH ATH10K ATH10K_CE ATH10K_PCI ATH10K_USB ATH11K ATH6KL ATH6KL_USB ATH9K ATH9K_AHB ATH9K_BTCOEX_SUPPORT ATH9K_CHANNEL_CONTEXT ATH9K_COMMON ATH9K_COMMON_DEBUG ATH9K_DEBUGFS ATH9K_DYNACK ATH9K_HTC ATH9K_HTC_DEBUGFS ATH9K_HW ATH9K_PCI ATH9K_PCOEM ATH9K_RFKILL ATH_COMMON ATM ATM_BR2684 ATM_CLIP ATM_DRIVERS ATM_LANE ATM_MPOA ATM_TCP AUXILIARY_BUS AX25 AX25_DAMA_SLAVE AX88796B_PHY BAREUDP BATMAN_ADV BATMAN_ADV_BATMAN_V BATMAN_ADV_BLA BATMAN_ADV_DAT BATMAN_ADV_MCAST BATMAN_ADV_NC BCACHE BCACHEFS_DEBUG BCACHEFS_FS BCACHEFS_QUOTA BCMA BCMA_HOST_PCI_POSSIBLE BEFS_FS BFQ_CGROUP_DEBUG BFQ_GROUP_IOSCHED BFS_FS BIG_KEYS BLK_CGROUP_PUNT_BIO BLK_CGROUP_RWSTAT BLK_DEBUG_FS_ZONED BLK_DEV_BSGLIB BLK_DEV_INTEGRITY BLK_DEV_INTEGRITY_T10 BLK_DEV_NBD BLK_DEV_NULL_BLK BLK_DEV_NULL_BLK_FAULT_INJECTION BLK_DEV_NVME BLK_DEV_PMEM BLK_DEV_RAM BLK_DEV_RNBD BLK_DEV_RNBD_CLIENT BLK_DEV_THROTTLING BLK_DEV_ZONED BLK_ICQ BLK_INLINE_ENCRYPTION BLK_INLINE_ENCRYPTION_FALLBACK BLK_WBT BLK_WBT_MQ BONDING BOOT_VESA_SUPPORT BPF_EVENTS BPF_JIT BPF_JIT_ALWAYS_ON BPF_JIT_DEFAULT_ON BPF_LSM BPF_PRELOAD BPF_PRELOAD_UMD BPF_STREAM_PARSER BPF_SYSCALL BPQETHER BRIDGE BRIDGE_CFM BRIDGE_EBT_802_3 BRIDGE_EBT_AMONG BRIDGE_EBT_ARP BRIDGE_EBT_ARPREPLY BRIDGE_EBT_BROUTE BRIDGE_EBT_DNAT BRIDGE_EBT_IP BRIDGE_EBT_IP6 BRIDGE_EBT_LIMIT BRIDGE_EBT_LOG BRIDGE_EBT_MARK BRIDGE_EBT_MARK_T BRIDGE_EBT_NFLOG BRIDGE_EBT_PKTTYPE BRIDGE_EBT_REDIRECT BRIDGE_EBT_SNAT BRIDGE_EBT_STP BRIDGE_EBT_T_FILTER BRIDGE_EBT_T_NAT BRIDGE_EBT_VLAN BRIDGE_IGMP_SNOOPING BRIDGE_MRP BRIDGE_NF_EBTABLES BRIDGE_NF_EBTABLES_LEGACY BRIDGE_VLAN_FILTERING BSD_DISKLABEL BSD_PROCESS_ACCT_V3 BT BTRFS_ASSERT BTRFS_FS BTRFS_FS_POSIX_ACL BTRFS_FS_REF_VERIFY BTT BT_6LOWPAN BT_ATH3K BT_BCM BT_BNEP BT_BNEP_MC_FILTER BT_BNEP_PROTO_FILTER BT_BREDR BT_CMTP BT_HCIBCM203X BT_HCIBFUSB BT_HCIBPA10X BT_HCIBTUSB BT_HCIBTUSB_BCM BT_HCIBTUSB_MTK BT_HCIBTUSB_POLL_SYNC BT_HCIBTUSB_RTL BT_HCIUART BT_HCIUART_3WIRE BT_HCIUART_AG6XX BT_HCIUART_BCSP BT_HCIUART_H4 BT_HCIUART_LL BT_HCIUART_MRVL BT_HCIUART_QCA BT_HCIUART_SERDEV BT_HCIVHCI BT_HIDP BT_INTEL BT_LE BT_LEDS BT_LE_L2CAP_ECRED BT_MRVL BT_MRVL_SDIO BT_MSFTEXT BT_MTK BT_QCA BT_RFCOMM BT_RFCOMM_TTY BT_RTL CACHEFILES CAIF CAIF_DEBUG CAIF_DRIVERS CAIF_NETDEV CAIF_TTY CAIF_USB CAIF_VIRTIO CAN CAN_8DEV_USB CAN_BCM CAN_CALC_BITTIMING CAN_DEV CAN_EMS_USB CAN_GS_USB CAN_GW CAN_IFI_CANFD CAN_ISOTP CAN_J1939 CAN_KVASER_USB CAN_MCBA_USB CAN_NETLINK CAN_PEAK_USB CAN_RAW CAN_RX_OFFLOAD CAN_SLCAN CAN_VCAN CAN_VXCAN CAPI_TRACE CARL9170 CARL9170_HWRNG CARL9170_LEDS CARL9170_WPC CEC_CORE CEPH_FS CEPH_FSCACHE CEPH_FS_POSIX_ACL CEPH_LIB CEPH_LIB_USE_DNS_RESOLVER CFG80211 CFG80211_CRDA_SUPPORT CFG80211_DEBUGFS CFG80211_DEFAULT_PS CFG80211_REQUIRE_SIGNED_REGDB CFG80211_USE_KERNEL_REGDB_KEYS CFG80211_WEXT CFS_BANDWIDTH CGROUP_BPF CHARGER_BQ24190 CHARGER_ISP1704 CHR_DEV_ST CIFS CIFS_ALLOW_INSECURE_LEGACY CIFS_DEBUG CIFS_DFS_UPCALL CIFS_FSCACHE CIFS_POSIX CIFS_SMB_DIRECT CIFS_SWN_UPCALL CIFS_UPCALL CIFS_XATTR CLOSURES CLS_U32_MARK CLS_U32_PERF CMA CMA_SIZE_SEL_MBYTES CMDLINE_PARTITION COMEDI COMEDI_DT9812 COMEDI_NI_USB6501 COMEDI_USBDUX COMEDI_USBDUXFAST COMEDI_USBDUXSIGMA COMEDI_USB_DRIVERS COMEDI_VMK80XX COMPAT_NETLINK_MESSAGES COUNTER CRAMFS CRAMFS_BLOCKDEV CRAMFS_MTD CRC4 CRC64 CRC64_ROCKSOFT CRC7 CRC8 CRC_ITU_T CRC_T10DIF CRYPTO_ADIANTUM CRYPTO_AEGIS128 CRYPTO_AEGIS128_AESNI_SSE2 CRYPTO_AES_NI_INTEL CRYPTO_AES_TI CRYPTO_ANSI_CPRNG CRYPTO_ANUBIS CRYPTO_ARC4 CRYPTO_ARCH_HAVE_LIB_BLAKE2S CRYPTO_ARCH_HAVE_LIB_CHACHA CRYPTO_ARCH_HAVE_LIB_CURVE25519 CRYPTO_ARCH_HAVE_LIB_POLY1305 CRYPTO_ARIA CRYPTO_ARIA_AESNI_AVX_X86_64 CRYPTO_BLAKE2B CRYPTO_BLAKE2S_X86 CRYPTO_BLOWFISH CRYPTO_BLOWFISH_COMMON CRYPTO_BLOWFISH_X86_64 CRYPTO_CAMELLIA CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 CRYPTO_CAMELLIA_AESNI_AVX_X86_64 CRYPTO_CAMELLIA_X86_64 CRYPTO_CAST5 CRYPTO_CAST5_AVX_X86_64 CRYPTO_CAST6 CRYPTO_CAST6_AVX_X86_64 CRYPTO_CAST_COMMON CRYPTO_CHACHA20 CRYPTO_CHACHA20POLY1305 CRYPTO_CHACHA20_X86_64 CRYPTO_CRC32 CRYPTO_CRC32C_INTEL CRYPTO_CRC32_PCLMUL CRYPTO_CRC64_ROCKSOFT CRYPTO_CRCT10DIF CRYPTO_CRCT10DIF_PCLMUL CRYPTO_CRYPTD CRYPTO_CTS CRYPTO_CURVE25519 CRYPTO_CURVE25519_X86 CRYPTO_DEFLATE CRYPTO_DES CRYPTO_DES3_EDE_X86_64 CRYPTO_DEV_CCP CRYPTO_DEV_CCP_DD CRYPTO_DEV_PADLOCK CRYPTO_DEV_PADLOCK_AES CRYPTO_DEV_PADLOCK_SHA CRYPTO_DEV_QAT CRYPTO_DEV_QAT_C3XXX CRYPTO_DEV_QAT_C3XXXVF CRYPTO_DEV_QAT_C62X CRYPTO_DEV_QAT_C62XVF CRYPTO_DEV_QAT_DH895xCC CRYPTO_DEV_QAT_DH895xCCVF CRYPTO_DEV_VIRTIO CRYPTO_DH CRYPTO_DRBG_CTR CRYPTO_DRBG_HASH CRYPTO_ECC CRYPTO_ECDH CRYPTO_ECRDSA CRYPTO_ENGINE CRYPTO_ESSIV CRYPTO_FCRYPT CRYPTO_GHASH_CLMUL_NI_INTEL CRYPTO_HCTR2 CRYPTO_KDF800108_CTR CRYPTO_KEYWRAP CRYPTO_KHAZAD CRYPTO_KPP CRYPTO_LIB_ARC4 CRYPTO_LIB_CHACHA CRYPTO_LIB_CHACHA20POLY1305 CRYPTO_LIB_CHACHA_GENERIC CRYPTO_LIB_CURVE25519 CRYPTO_LIB_CURVE25519_GENERIC CRYPTO_LIB_DES CRYPTO_LIB_POLY1305 CRYPTO_LIB_POLY1305_GENERIC CRYPTO_LRW CRYPTO_MICHAEL_MIC CRYPTO_NHPOLY1305 CRYPTO_NHPOLY1305_AVX2 CRYPTO_NHPOLY1305_SSE2 CRYPTO_PCBC CRYPTO_PCRYPT CRYPTO_POLY1305 CRYPTO_POLY1305_X86_64 CRYPTO_POLYVAL CRYPTO_POLYVAL_CLMUL_NI CRYPTO_RMD160 CRYPTO_SEED CRYPTO_SERPENT CRYPTO_SERPENT_AVX2_X86_64 CRYPTO_SERPENT_AVX_X86_64 CRYPTO_SERPENT_SSE2_X86_64 CRYPTO_SHA1 CRYPTO_SHA1_SSSE3 CRYPTO_SHA256_SSSE3 CRYPTO_SHA512_SSSE3 CRYPTO_SIMD CRYPTO_SM2 CRYPTO_SM3 CRYPTO_SM3_AVX_X86_64 CRYPTO_SM4 CRYPTO_SM4_AESNI_AVX2_X86_64 CRYPTO_SM4_AESNI_AVX_X86_64 CRYPTO_SM4_GENERIC CRYPTO_STREEBOG CRYPTO_TEA CRYPTO_TWOFISH CRYPTO_TWOFISH_AVX_X86_64 CRYPTO_TWOFISH_COMMON CRYPTO_TWOFISH_X86_64 CRYPTO_TWOFISH_X86_64_3WAY CRYPTO_USER CRYPTO_USER_API CRYPTO_USER_API_AEAD CRYPTO_USER_API_ENABLE_OBSOLETE CRYPTO_USER_API_HASH CRYPTO_USER_API_RNG CRYPTO_USER_API_SKCIPHER CRYPTO_VMAC CRYPTO_WP512 CRYPTO_XCBC CRYPTO_XCTR CRYPTO_XTS CRYPTO_XXHASH CUSE CYPRESS_FIRMWARE DAMON DAMON_PADDR DAMON_RECLAIM DAMON_VADDR DAX DCA DCB DEFAULT_PFIFO_FAST DEVICE_MIGRATION DEVICE_PRIVATE DEV_COREDUMP DEV_DAX DLN2_ADC DMABUF_HEAPS DMABUF_HEAPS_CMA DMABUF_HEAPS_SYSTEM DMABUF_MOVE_NOTIFY DMA_CMA DMA_ENGINE_RAID DM_AUDIT DM_BIO_PRISON DM_BUFIO DM_CACHE DM_CACHE_SMQ DM_CLONE DM_CRYPT DM_FLAKEY DM_INTEGRITY DM_MULTIPATH DM_MULTIPATH_QL DM_MULTIPATH_ST DM_PERSISTENT_DATA DM_RAID DM_SNAPSHOT DM_THIN_PROVISIONING DM_UEVENT DM_VERITY DM_VERITY_FEC DM_WRITECACHE DM_ZONED DRAGONRISE_FF DRM DRM_BOCHS DRM_BUDDY DRM_CIRRUS_QEMU ENCRYPTED_KEYS EXTCON FSCACHE FUSE_FS GPIOLIB HAMRADIO HID_DRAGONRISE IIO INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_RTRS_CLIENT IOSCHED_BFQ ISDN ISDN_CAPI LIBNVDIMM MAC80211 MAC80211_DEBUGFS MAC80211_LEDS MEDIA_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_DLN2 MMC MTD NET_CLS_U32 NET_SCH_DEFAULT PARTITION_ADVANCED RFKILL SERIAL_DEV_BUS TLS TLS_DEVICE TRANSPARENT_HUGEPAGE TRUSTED_KEYS USB_GADGET USB_PHY VLAN_8021Q WANT_COMPAT_NETLINK_MESSAGES WEXT_CORE WIRELESS WIRELESS_EXT WLAN WLAN_VENDOR_ATH X86_X32_ABI ZONE_DEVICE] disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed picked [v6.7 v6.6 v6.5 v6.3 v6.1 v5.19 v5.17 v5.15 v5.12 v5.9 v5.6 v5.3 v5.0 v4.19] out of 30 release tags testing release v6.7 testing commit 0dd3ee31125508cd67f7e7172247f05b7fd1753a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1e5c120cce96c0133266e0084843bb29466e8d9c25f89ec17ef51ff5c623ffd7 all runs: OK false negative chance: 0.000 # git bisect start b1d3a0e70c3881d2f8cf6692ccf7c2a4fb2d030d 0dd3ee31125508cd67f7e7172247f05b7fd1753a Bisecting: 9725 revisions left to test after this (roughly 13 steps) [61da593f4458f25c59f65cfd9ba1bda570db5db7] Merge tag 'media/v6.8-2' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media testing commit 61da593f4458f25c59f65cfd9ba1bda570db5db7 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 17414d0a3a215917dfebf6e324842c6fbbce8de462c597a1bce26cbf7c74ad4c all runs: OK false negative chance: 0.000 # git bisect good 61da593f4458f25c59f65cfd9ba1bda570db5db7 Bisecting: 4861 revisions left to test after this (roughly 12 steps) [f59965a75fd3e8540e2e6cb29220e36e61046bd8] Merge branch 'mm-everything' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm testing commit f59965a75fd3e8540e2e6cb29220e36e61046bd8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9c3edb203b3bc6b0306a5521c17dfe64f49304df3ef6b1a69ff2814a59636dfb all runs: OK false negative chance: 0.000 # git bisect good f59965a75fd3e8540e2e6cb29220e36e61046bd8 Bisecting: 2426 revisions left to test after this (roughly 11 steps) [a55fd154722bacdd3cbed378b62e8e18c9fdd7dc] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git testing commit a55fd154722bacdd3cbed378b62e8e18c9fdd7dc gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 23324a5c9fe42b14f6739b69f5bda57422a7791b23db5f2c16331582fd4a6ac0 all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] # git bisect bad a55fd154722bacdd3cbed378b62e8e18c9fdd7dc Bisecting: 1152 revisions left to test after this (roughly 10 steps) [8caf87347c15a6056bdd5ca8ed7c46b336e84d53] Merge branch 'vfs.all' of git://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git testing commit 8caf87347c15a6056bdd5ca8ed7c46b336e84d53 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 310ac080f275974a809e6ec993c1ed9994d89cfcded04a676006b0da511d3c48 all runs: OK false negative chance: 0.000 # git bisect good 8caf87347c15a6056bdd5ca8ed7c46b336e84d53 Bisecting: 592 revisions left to test after this (roughly 9 steps) [9736c648370d237f61065a7e45e668e2db4374e9] dpll: check that pin is registered in __dpll_pin_unregister() testing commit 9736c648370d237f61065a7e45e668e2db4374e9 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b626ff5d5443688c29448c87898836ac3d340071b6877178eca96954f4e587ba all runs: OK false negative chance: 0.000 # git bisect good 9736c648370d237f61065a7e45e668e2db4374e9 Bisecting: 248 revisions left to test after this (roughly 8 steps) [6ae871ed3a9a2bad5adccdc01cb7a7aecc67fad3] Merge branch 'master' of git://linuxtv.org/media_tree.git testing commit 6ae871ed3a9a2bad5adccdc01cb7a7aecc67fad3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7a81b680511388a4d51bfedc84468c591f2be11942f15dc81d2a547f4462dd94 all runs: OK false negative chance: 0.000 # git bisect good 6ae871ed3a9a2bad5adccdc01cb7a7aecc67fad3 Bisecting: 130 revisions left to test after this (roughly 7 steps) [f6aa2b1e21854733e160bd1753189470d22f2b22] Merge branch 'opp/linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/vireshk/pm.git testing commit f6aa2b1e21854733e160bd1753189470d22f2b22 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9c9799e7285aa4680dfb45edfb222190ddffe8932afe07812d5f31a70b29b90b all runs: OK false negative chance: 0.000 # git bisect good f6aa2b1e21854733e160bd1753189470d22f2b22 Bisecting: 65 revisions left to test after this (roughly 6 steps) [8244ab509f89d63941d5ee207967c5a3e00bb493] Merge branch 'enable-static-subprog-calls-in-spin-lock-critical-sections' testing commit 8244ab509f89d63941d5ee207967c5a3e00bb493 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4ccbe70ccf9558ff7c4f62a40bd2794a6c0b57f2774e4880424c8a2817545209 all runs: OK false negative chance: 0.000 # git bisect good 8244ab509f89d63941d5ee207967c5a3e00bb493 Bisecting: 32 revisions left to test after this (roughly 5 steps) [786ef675d41aca48b20a28bd2acb5185d77cc792] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git testing commit 786ef675d41aca48b20a28bd2acb5185d77cc792 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 43b22012c3a967e079e1dc97030baea35c7b704b6b9dbdbd28c1ad7e166e3bec all runs: OK false negative chance: 0.000 # git bisect good 786ef675d41aca48b20a28bd2acb5185d77cc792 Bisecting: 16 revisions left to test after this (roughly 4 steps) [e35f9744e33270429dbc62180814640b437f02d5] Bluetooth: btusb: Add new VID/PID 13d3/3602 for MT7925 testing commit e35f9744e33270429dbc62180814640b437f02d5 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bb7070d3ea0dd52b70d2740505595566f38b5ef1a4cdd07a150417bb5cd79aa2 all runs: OK false negative chance: 0.000 # git bisect good e35f9744e33270429dbc62180814640b437f02d5 Bisecting: 8 revisions left to test after this (roughly 3 steps) [874870f318a4a8afcd4b4c180329079add03c039] Bluetooth: hci_event: Fix not indicating new connection for BIG Sync testing commit 874870f318a4a8afcd4b4c180329079add03c039 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 43d94c873d729595511adb471bc25ae2cd535aec10d47d779329ae0ff6426b4f all runs: OK false negative chance: 0.000 # git bisect good 874870f318a4a8afcd4b4c180329079add03c039 Bisecting: 4 revisions left to test after this (roughly 2 steps) [8e14d581d125a11e62bf837ad709b106095e5557] Bluetooth: Remove pending ACL connection attempts testing commit 8e14d581d125a11e62bf837ad709b106095e5557 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e724f9ff874bbcbb27a0203a5d1a7278fe06713027b0784ea78223871ff8cbc1 all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] # git bisect bad 8e14d581d125a11e62bf837ad709b106095e5557 Bisecting: 1 revision left to test after this (roughly 1 step) [a93e9d51834e2cdfe357fcf875e895b3d2605f10] Bluetooth: qca: Fix triggering coredump implementation testing commit a93e9d51834e2cdfe357fcf875e895b3d2605f10 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e24f5e7e4e30e8c4dc54fd4957e88c4bc696421cc0feafbaac82f14d6b575111 all runs: OK false negative chance: 0.000 # git bisect good a93e9d51834e2cdfe357fcf875e895b3d2605f10 Bisecting: 0 revisions left to test after this (roughly 0 steps) [456561ba8e495e9320c1f304bf1cd3d1043cbe7b] Bluetooth: hci_conn: Only do ACL connections sequentially testing commit 456561ba8e495e9320c1f304bf1cd3d1043cbe7b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5a7e681d14b47ba503593150cf2b9be2bd5cf7c04773197147ee73928876873e all runs: crashed: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync representative crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync, types: [KASAN] # git bisect bad 456561ba8e495e9320c1f304bf1cd3d1043cbe7b 456561ba8e495e9320c1f304bf1cd3d1043cbe7b is the first bad commit commit 456561ba8e495e9320c1f304bf1cd3d1043cbe7b Author: Jonas Dreßler Date: Tue Feb 6 12:08:13 2024 +0100 Bluetooth: hci_conn: Only do ACL connections sequentially Pretty much all bluetooth chipsets only support paging a single device at a time, and if they don't reject a secondary "Create Connection" request while another is still ongoing, they'll most likely serialize those requests in the firware. With commit 4c67bc74f016 ("[Bluetooth] Support concurrent connect requests") we started adding some serialization of our own in case the adapter returns "Command Disallowed" HCI error. This commit was using the BT_CONNECT2 state for the serialization, this state is also used for a few more things (most notably to indicate we're waiting for an inquiry to cancel) and therefore a bit unreliable. Also not all BT firwares would respond with "Command Disallowed" on too many connection requests, some will also respond with "Hardware Failure" (BCM4378), and others will error out later and send a "Connect Complete" event with error "Rejected Limited Resources" (Marvell 88W8897). We can clean things up a bit and also make the serialization more reliable by using our hci_sync machinery to always do "Create Connection" requests in a sequential manner. This is very similar to what we're already doing for establishing LE connections, and it works well there. Note that this causes a test failure in mgmt-tester (test "Pair Device - Power off 1") because the hci_abort_conn_sync() changes the error we return on timeout of the "Create Connection". We'll fix this on the mgmt-tester side by adjusting the expected error for the test. Signed-off-by: Jonas Dreßler Signed-off-by: Luiz Augusto von Dentz include/net/bluetooth/hci.h | 1 + include/net/bluetooth/hci_sync.h | 3 ++ net/bluetooth/hci_conn.c | 69 ++++++--------------------------------- net/bluetooth/hci_sync.c | 70 ++++++++++++++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 60 deletions(-) accumulated error probability: 0.00 culprit signature: 5a7e681d14b47ba503593150cf2b9be2bd5cf7c04773197147ee73928876873e parent signature: e24f5e7e4e30e8c4dc54fd4957e88c4bc696421cc0feafbaac82f14d6b575111 revisions tested: 22, total time: 6h43m24.101949472s (build: 3h20m23.157595717s, test: 3h8m1.897572877s) first bad commit: 456561ba8e495e9320c1f304bf1cd3d1043cbe7b Bluetooth: hci_conn: Only do ACL connections sequentially recipients (to): ["davem@davemloft.net" "edumazet@google.com" "johan.hedberg@gmail.com" "kuba@kernel.org" "linux-bluetooth@vger.kernel.org" "luiz.dentz@gmail.com" "luiz.von.dentz@intel.com" "marcel@holtmann.org" "netdev@vger.kernel.org" "pabeni@redhat.com" "verdre@v0yd.nl"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: KASAN: slab-use-after-free Write in __hci_acl_create_connection_sync ================================================================== BUG: KASAN: slab-use-after-free in __hci_acl_create_connection_sync+0x605/0x8d0 net/bluetooth/hci_sync.c:6518 Write of size 2 at addr ffff8881784ba036 by task kworker/u5:4/1993 CPU: 0 PID: 1993 Comm: kworker/u5:4 Not tainted 6.8.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Workqueue: hci4 hci_cmd_sync_work Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xf8/0x260 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0x167/0x540 mm/kasan/report.c:488 kasan_report+0x142/0x180 mm/kasan/report.c:601 __hci_acl_create_connection_sync+0x605/0x8d0 net/bluetooth/hci_sync.c:6518 hci_cmd_sync_work+0x210/0x3a0 net/bluetooth/hci_sync.c:306 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x7e9/0xfd0 kernel/workqueue.c:2706 worker_thread+0x868/0xca0 kernel/workqueue.c:2787 kthread+0x267/0x2c0 kernel/kthread.c:388 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 Allocated by task 4218: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 poison_kmalloc_redzone mm/kasan/common.c:372 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:389 kasan_kmalloc include/linux/kasan.h:211 [inline] kmalloc_trace+0x1c4/0x3a0 mm/slub.c:4012 kmalloc include/linux/slab.h:590 [inline] kzalloc include/linux/slab.h:711 [inline] hci_conn_add+0xbb/0x1240 net/bluetooth/hci_conn.c:914 hci_conn_add_unset net/bluetooth/hci_conn.c:1016 [inline] hci_connect_acl+0x1d3/0x490 net/bluetooth/hci_conn.c:1632 hci_connect_sco+0x36/0x390 net/bluetooth/hci_conn.c:1692 sco_connect net/bluetooth/sco.c:266 [inline] sco_sock_connect+0x1f3/0x7f0 net/bluetooth/sco.c:591 __sys_connect_file net/socket.c:2048 [inline] __sys_connect+0x317/0x390 net/socket.c:2065 __do_sys_connect net/socket.c:2075 [inline] __se_sys_connect net/socket.c:2072 [inline] __x64_sys_connect+0x75/0x90 net/socket.c:2072 do_syscall_64+0x94/0x1a0 entry_SYSCALL_64_after_hwframe+0x6f/0x77 Freed by task 1993: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x4e/0x60 mm/kasan/generic.c:640 poison_slab_object+0xee/0x1a0 mm/kasan/common.c:241 __kasan_slab_free+0x34/0x70 mm/kasan/common.c:257 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2121 [inline] slab_free mm/slub.c:4299 [inline] kfree+0x139/0x350 mm/slub.c:4409 device_release+0x92/0x140 kobject_cleanup lib/kobject.c:682 [inline] kobject_release lib/kobject.c:716 [inline] kref_put include/linux/kref.h:65 [inline] kobject_put+0x14d/0x300 lib/kobject.c:733 hci_conn_cleanup net/bluetooth/hci_conn.c:176 [inline] hci_conn_del+0x73d/0xa60 net/bluetooth/hci_conn.c:1126 hci_abort_conn_sync+0x2d3/0xb30 net/bluetooth/hci_sync.c:5361 __hci_acl_create_connection_sync+0x553/0x8d0 net/bluetooth/hci_sync.c:6554 hci_cmd_sync_work+0x210/0x3a0 net/bluetooth/hci_sync.c:306 process_one_work kernel/workqueue.c:2633 [inline] process_scheduled_works+0x7e9/0xfd0 kernel/workqueue.c:2706 worker_thread+0x868/0xca0 kernel/workqueue.c:2787 kthread+0x267/0x2c0 kernel/kthread.c:388 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 The buggy address belongs to the object at ffff8881784ba000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 54 bytes inside of freed 4096-byte region [ffff8881784ba000, ffff8881784bb000) The buggy address belongs to the physical page: page:ffffea0005e12e00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x1784b8 head:ffffea0005e12e00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x100000000000840(slab|head|node=0|zone=2) page_type: 0xffffffff() raw: 0100000000000840 ffff888100042140 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 3050, tgid 3050 (modprobe), ts 58161764114, free_ts 58020762351 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x10f/0x130 mm/page_alloc.c:1533 prep_new_page mm/page_alloc.c:1540 [inline] get_page_from_freelist+0x3e5f/0x4080 mm/page_alloc.c:3311 __alloc_pages+0x255/0x650 mm/page_alloc.c:4567 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] alloc_slab_page+0x5f/0x160 mm/slub.c:2190 allocate_slab mm/slub.c:2354 [inline] new_slab+0x70/0x270 mm/slub.c:2407 ___slab_alloc+0xa79/0x10b0 mm/slub.c:3540 __slab_alloc mm/slub.c:3625 [inline] __slab_alloc_node mm/slub.c:3678 [inline] slab_alloc_node mm/slub.c:3850 [inline] __do_kmalloc_node mm/slub.c:3980 [inline] __kmalloc+0x2ba/0x480 mm/slub.c:3994 kmalloc include/linux/slab.h:594 [inline] tomoyo_realpath_from_path+0xe3/0x4e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_check_open_permission+0x249/0x960 security/tomoyo/file.c:771 security_file_open+0x2a/0x80 security/security.c:2932 do_dentry_open+0x2ee/0x11c0 fs/open.c:940 do_open fs/namei.c:3641 [inline] path_openat+0x217f/0x2780 fs/namei.c:3798 do_filp_open+0x22a/0x440 fs/namei.c:3825 do_sys_openat2+0xf6/0x180 fs/open.c:1404 do_sys_open fs/open.c:1419 [inline] __do_sys_openat fs/open.c:1435 [inline] __se_sys_openat fs/open.c:1430 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1430 do_syscall_64+0x94/0x1a0 page last free pid 1996 tgid 1996 stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1140 [inline] free_unref_page_prepare+0x87f/0x9a0 mm/page_alloc.c:2346 free_unref_page+0x37/0x3a0 mm/page_alloc.c:2486 discard_slab mm/slub.c:2453 [inline] __put_partials+0x18e/0x1d0 mm/slub.c:2922 put_cpu_partial+0x150/0x1b0 mm/slub.c:2997 __slab_free+0x2b8/0x3c0 mm/slub.c:4166 qlink_free mm/kasan/quarantine.c:160 [inline] qlist_free_all+0x6d/0xd0 mm/kasan/quarantine.c:176 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:283 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:324 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3813 [inline] slab_alloc_node mm/slub.c:3860 [inline] kmem_cache_alloc_lru+0x15d/0x390 mm/slub.c:3879 alloc_inode_sb include/linux/fs.h:3019 [inline] sock_alloc_inode+0x20/0xb0 net/socket.c:308 alloc_inode fs/inode.c:260 [inline] new_inode_pseudo+0x5b/0x190 fs/inode.c:1005 sock_alloc net/socket.c:634 [inline] __sock_create+0xc1/0x6e0 net/socket.c:1535 sock_create net/socket.c:1622 [inline] __sys_socket_create net/socket.c:1659 [inline] __sys_socket+0x124/0x340 net/socket.c:1706 __do_sys_socket net/socket.c:1720 [inline] __se_sys_socket net/socket.c:1718 [inline] __x64_sys_socket+0x75/0x90 net/socket.c:1718 do_syscall_64+0x94/0x1a0 entry_SYSCALL_64_after_hwframe+0x6f/0x77 Memory state around the buggy address: ffff8881784b9f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8881784b9f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8881784ba000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8881784ba080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8881784ba100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================