ci starts bisection 2024-02-17 11:28:33.365873004 +0000 UTC m=+109658.958201384 bisecting cause commit starting from 2c3b09aac00d7835023bbc4473ee06696be64fa8 building syzkaller on 578f753887693e1375d17cf79dc1c575f6032a5d fetch other tags and check if the commit is present ensuring issue is reproducible on original commit 2c3b09aac00d7835023bbc4473ee06696be64fa8 testing commit 2c3b09aac00d7835023bbc4473ee06696be64fa8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d0929eca0b395e456167b325ff33d7f30b3f9c24a053e59ed8ca1c38f98a99b5 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 [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 2c3b09aac00d7835023bbc4473ee06696be64fa8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 433f311eec7d0fff31c386ffc9e603c8cbd833c800d3c8ad993dda2a3ecaaf05 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 [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed kconfig minimization: base=3937 full=7987 leaves diff=2020 split chunks (needed=false): <2020> split chunk #0 of len 2020 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 2c3b09aac00d7835023bbc4473ee06696be64fa8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bc99326c66c15ede5b29d021309a9976c3e40fec7cd47e13d8ae11e5dca13d29 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 2c3b09aac00d7835023bbc4473ee06696be64fa8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 94ff0d080bf4444c566b5a8ae6b269ddab7d7ed41aa49245688149a10af84084 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 2c3b09aac00d7835023bbc4473ee06696be64fa8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c899ecddcb0ea2fea6f465ee3b41a0912de46a5d44610c7d8a3da8d7417d094d 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 [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 2c3b09aac00d7835023bbc4473ee06696be64fa8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e8285d1e0c9aa6a51d5071a8f83a8d71915587f6fa5731895d9184a8369d759b 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 2c3b09aac00d7835023bbc4473ee06696be64fa8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ba26f0faf5344a09f4dd64ca86637936e1c2f3991554a5d0c558dd4972caa015 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 [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], 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: cd583faaeb8302277b90a9aa5523ead98538d2cec9a04e054b59ecf3e57ee1a0 all runs: OK false negative chance: 0.000 # git bisect start 2c3b09aac00d7835023bbc4473ee06696be64fa8 0dd3ee31125508cd67f7e7172247f05b7fd1753a Bisecting: 10565 revisions left to test after this (roughly 13 steps) [ed6c23b175471d7bdecd06b5f37a0b1057c90cce] Merge tag 'pinctrl-v6.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl testing commit ed6c23b175471d7bdecd06b5f37a0b1057c90cce gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 235f04c76d967248a61f40d95e81d86477ace5b997801b640992a7807cfd8190 all runs: OK false negative chance: 0.000 # git bisect good ed6c23b175471d7bdecd06b5f37a0b1057c90cce Bisecting: 5284 revisions left to test after this (roughly 12 steps) [e1b6f2b8527feb941c2e80aa4c6305b3c76097dd] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git testing commit e1b6f2b8527feb941c2e80aa4c6305b3c76097dd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 37eec4d03484fbb77c9ba756177a3c951456134359258d795d3a8f303a49071d all runs: OK false negative chance: 0.000 # git bisect good e1b6f2b8527feb941c2e80aa4c6305b3c76097dd Bisecting: 2894 revisions left to test after this (roughly 11 steps) [552c73e0a410faec3693d4d170422ab4e157a0ad] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git testing commit 552c73e0a410faec3693d4d170422ab4e157a0ad gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 988eb1eba0fb26627860cf19dbff59e9a2d63d0cf580fbe23ca689fe98b0fbbc 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 552c73e0a410faec3693d4d170422ab4e157a0ad Bisecting: 1279 revisions left to test after this (roughly 10 steps) [aebbd3d82acadea761f4ad6e117c998020ff67a0] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git testing commit aebbd3d82acadea761f4ad6e117c998020ff67a0 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a46e4f2ae1115b1bdc1afa904f80ca331d68c8822ee5707e75b7c3bd6e95d9ab all runs: OK false negative chance: 0.000 # git bisect good aebbd3d82acadea761f4ad6e117c998020ff67a0 Bisecting: 639 revisions left to test after this (roughly 9 steps) [e3caf184107a4e2e196528b98b218ddc41e4cb8c] wwan: core: Add WWAN fastboot port type testing commit e3caf184107a4e2e196528b98b218ddc41e4cb8c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 804dbc8bb05371f914b879033203d023b6e1826e8a8739117b0495c2e792a10c all runs: OK false negative chance: 0.000 # git bisect good e3caf184107a4e2e196528b98b218ddc41e4cb8c Bisecting: 319 revisions left to test after this (roughly 8 steps) [162bf67f74c71d56889c1c938d7901cfb76e2cbd] wifi: rtw89: chan: MCC take reconfig into account testing commit 162bf67f74c71d56889c1c938d7901cfb76e2cbd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 46fd5c65a38099a86bcf7fceeddd98f52d6cef0959fd816000d3e8538492c48d all runs: OK false negative chance: 0.000 # git bisect good 162bf67f74c71d56889c1c938d7901cfb76e2cbd Bisecting: 126 revisions left to test after this (roughly 7 steps) [d3ea82c226b6591426e44789e50dfdf0eb7ef35b] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next.git testing commit d3ea82c226b6591426e44789e50dfdf0eb7ef35b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4adcbaf8f74ad1d149da228e672f19199ddffe9cf5606e6c6052e859310f1d28 all runs: OK false negative chance: 0.000 # git bisect good d3ea82c226b6591426e44789e50dfdf0eb7ef35b Bisecting: 52 revisions left to test after this (roughly 6 steps) [dd5d4957654cf8e8c75bdbd1ede847ef09f47ae2] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git testing commit dd5d4957654cf8e8c75bdbd1ede847ef09f47ae2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 37cbd150810de0c7bb50ae366d1987f8fbe9ca3bec7abb7db545de3f99231011 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 dd5d4957654cf8e8c75bdbd1ede847ef09f47ae2 Bisecting: 36 revisions left to test after this (roughly 5 steps) [d34637a986d6105875f3a02cdd16bd26d5811c38] wifi: iwlwifi: bump FW API to 89 for AX/BZ/SC devices testing commit d34637a986d6105875f3a02cdd16bd26d5811c38 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2d723b19a727d4091763f9f876a1b64bf4ba69c1bfe4f03520a2ed0399eb7014 all runs: OK false negative chance: 0.000 # git bisect good d34637a986d6105875f3a02cdd16bd26d5811c38 Bisecting: 18 revisions left to test after this (roughly 4 steps) [62a9afa086a7207ea66906826cf2b487c08dd579] Bluetooth: mgmt: Fix limited discoverable off timeout testing commit 62a9afa086a7207ea66906826cf2b487c08dd579 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6115cec933fbc597da56dc41222339c7a95a1cf386c2313e907fee50620ef3df all runs: OK false negative chance: 0.000 # git bisect good 62a9afa086a7207ea66906826cf2b487c08dd579 Bisecting: 9 revisions left to test after this (roughly 3 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: c6c1a1e46c73781a71e2cd0eb79a03235d159eccd014bc68bb0e82ff59e75f54 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 Bisecting: 4 revisions left to test after this (roughly 2 steps) [d6cc80d0954b4f35bf727664191b3987c77853e7] Bluetooth: qca: Fix wrong event type for patch config command testing commit d6cc80d0954b4f35bf727664191b3987c77853e7 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: effcb78f92c81a44645bef0058669e3d5559034830dc382bc1eb50190949401f all runs: OK false negative chance: 0.000 # git bisect good d6cc80d0954b4f35bf727664191b3987c77853e7 Bisecting: 2 revisions left to test after this (roughly 1 step) [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: bac290231efade0104eeedf8a943b0716212dd3a7831876590d6ccf0c5bff736 all runs: OK false negative chance: 0.000 # git bisect good 874870f318a4a8afcd4b4c180329079add03c039 Bisecting: 0 revisions 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: 374f3eea74bee1cdcadd905cc4c0a66380fd0bfe7aa8607ea570b9af0d78a510 all runs: OK false negative chance: 0.000 # git bisect good a93e9d51834e2cdfe357fcf875e895b3d2605f10 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: c6c1a1e46c73781a71e2cd0eb79a03235d159eccd014bc68bb0e82ff59e75f54 parent signature: 374f3eea74bee1cdcadd905cc4c0a66380fd0bfe7aa8607ea570b9af0d78a510 revisions tested: 22, total time: 8h4m12.505870282s (build: 3h50m13.485878517s, test: 3h55m53.736006438s) 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 ffff888177b64036 by task kworker/u5:0/45 CPU: 0 PID: 45 Comm: kworker/u5:0 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 4220: 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 45: 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 ffff888177b64000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 54 bytes inside of freed 4096-byte region [ffff888177b64000, ffff888177b65000) The buggy address belongs to the physical page: page:ffffea0005ded800 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x177b60 head:ffffea0005ded800 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 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1360, tgid 1360 (udevd), ts 7454913153, free_ts 6305708169 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 1 tgid 1 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 free_contig_range+0x91/0x140 mm/page_alloc.c:6535 destroy_args+0x72/0x6e0 mm/debug_vm_pgtable.c:1028 debug_vm_pgtable+0x3b8/0x590 mm/debug_vm_pgtable.c:1408 do_one_initcall+0x196/0x4d0 init/main.c:1236 do_initcall_level+0x11e/0x1e0 init/main.c:1298 do_initcalls+0x3e/0x70 init/main.c:1314 kernel_init_freeable+0x364/0x4c0 init/main.c:1551 kernel_init+0x18/0x1a0 init/main.c:1441 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x1b/0x30 arch/x86/entry/entry_64.S:242 Memory state around the buggy address: ffff888177b63f00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff888177b63f80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff888177b64000: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888177b64080: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888177b64100: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================