ci starts bisection 2023-08-31 10:59:38.711831519 +0000 UTC m=+85121.881154144 bisecting cause commit starting from 7271b2a530428b879443b274c191b34536a4ea11 building syzkaller on d216d8a03b50bef82eac746d227230835f061640 fetch other tags and check if the commit is present ensuring issue is reproducible on original commit 7271b2a530428b879443b274c191b34536a4ea11 testing commit 7271b2a530428b879443b274c191b34536a4ea11 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0ea23a2fa0b8c81c9fe4aebf19e39c56adc5f886894e35a0ae66ae9a08731d92 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, 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 7271b2a530428b879443b274c191b34536a4ea11 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 055aebc4f18582acd34602cce22255d5ad6766390c97238ec10660683c19c742 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed kconfig minimization: base=3883 full=7688 leaves diff=2018 split chunks (needed=false): <2018> split chunk #0 of len 2018 into 5 parts testing without sub-chunk 1/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 7271b2a530428b879443b274c191b34536a4ea11 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6586da2526a29e72c0614a7428850d1025c204dd625d5e84f7476e10af9dbf8a 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 7271b2a530428b879443b274c191b34536a4ea11 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1d52e2d742f7ede2b937690026c266558367bd434675d4c00035e6e47686efc8 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 7271b2a530428b879443b274c191b34536a4ea11 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 74e0622b22c10339c24a224093788c36b4c6acd91717dc3979e39bf713b7b796 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 7271b2a530428b879443b274c191b34536a4ea11 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 44e75a20da9fa2efa59edddba0073fd5e2ca6a6b626b1e2a7849d00c45b66609 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 7271b2a530428b879443b274c191b34536a4ea11 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 34c18c0a80264922e7ef3ea67cdd4206162aa3a4214163da1de7b615fe035e62 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, 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_SUPPORTS_CRASH_DUMP ARCH_SUPPORTS_CRASH_HOTPLUG ARCH_SUPPORTS_KEXEC ARCH_SUPPORTS_KEXEC_BZIMAGE_VERIFY_SIG ARCH_SUPPORTS_KEXEC_FILE ARCH_SUPPORTS_KEXEC_JUMP ARCH_SUPPORTS_KEXEC_SIG ARCH_SUPPORTS_KEXEC_SIG_FORCE ARCH_WANT_OPTIMIZE_DAX_VMEMMAP ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP 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 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_FD 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_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_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_HS BT_INTEL BT_LE BT_LEDS BT_LE_L2CAP_ECRED BT_MSFTEXT BT_MTK BT_QCA BT_RFCOMM BT_RFCOMM_TTY BT_RTL BUFFER_HEAD 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 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 CRASH_HOTPLUG 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_CFB 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_ECB 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_OFB 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_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_DBGFS DAMON_PADDR DAMON_RECLAIM DAMON_VADDR DAX DCA DCB DEFAULT_PFIFO_FAST DEVICE_MIGRATION DEVICE_PRIVATE DEV_COREDUMP DEV_DAX DIMLIB DLN2_ADC DMABUF_HEAPS DMABUF_HEAPS_CMA DMABUF_HEAPS_SYSTEM DMABUF_MOVE_NOTIFY DMA_CMA DMA_ENGINE_RAID DMA_NUMA_CMA 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 ENCRYPTED_KEYS EXTCON FSCACHE FUSE_FS GPIOLIB HAMRADIO IIO INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_RTRS_CLIENT IOSCHED_BFQ ISDN ISDN_CAPI LIBNVDIMM MAC80211 MAC80211_LEDS MEDIA_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_DLN2 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 [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed picked [%!d(string=v6.4) %!d(string=v6.3) %!d(string=v6.2) %!d(string=v6.0) %!d(string=v5.18) %!d(string=v5.16) %!d(string=v5.14) %!d(string=v5.12) %!d(string=v5.9) %!d(string=v5.6) %!d(string=v5.3) %!d(string=v5.0) %!d(string=v4.19)] out of %!d(MISSING) release tags testing release v6.4 testing commit 6995e2de6891c724bfeb2db33d7b87775f913ad1 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cf455cf0ae4974b450981bdf01e4ef90fab6f7c5e5c3b8f7e9393083accb529b all runs: OK false negative chance: 0.000 # git bisect start 7271b2a530428b879443b274c191b34536a4ea11 6995e2de6891c724bfeb2db33d7b87775f913ad1 Bisecting: 12712 revisions left to test after this (roughly 14 steps) [b3bd86a0496565272ee1fc003b4b75ddb2f6427f] Merge tag 'block-6.5-2023-07-14' of git://git.kernel.dk/linux testing commit b3bd86a0496565272ee1fc003b4b75ddb2f6427f gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1d6da0b23b7da36ef2bdbe72046e6c5237d14d4dbef897d901f4ace9b2f6714d all runs: OK false negative chance: 0.000 # git bisect good b3bd86a0496565272ee1fc003b4b75ddb2f6427f Bisecting: 6891 revisions left to test after this (roughly 13 steps) [32008f57554218b009d0bef616154d1718c7750b] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/rdma/rdma.git testing commit 32008f57554218b009d0bef616154d1718c7750b gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: af771a0ec618dc6582d64001974591f40ecb34522bf6dbc7bc4a7d86c4ce6fad all runs: OK false negative chance: 0.000 # git bisect good 32008f57554218b009d0bef616154d1718c7750b Bisecting: 3606 revisions left to test after this (roughly 12 steps) [cff66d4464ce465f1d961bd3cdfc07bf6a1f6133] next-20230817/sound testing commit cff66d4464ce465f1d961bd3cdfc07bf6a1f6133 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7858a909bac7c6f21b218507397fec031a0894b9611507eb313f60c2aa13309d all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] # git bisect bad cff66d4464ce465f1d961bd3cdfc07bf6a1f6133 Bisecting: 1648 revisions left to test after this (roughly 11 steps) [e82eba4d5d073dba3849da9ee41b122f2d59beb6] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git testing commit e82eba4d5d073dba3849da9ee41b122f2d59beb6 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4baf8f6c7e9cbaf6b5f990f712cd4c3a12c41e87dd1a90ab9833f694e153606e all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] # git bisect bad e82eba4d5d073dba3849da9ee41b122f2d59beb6 Bisecting: 817 revisions left to test after this (roughly 10 steps) [852c18d5611e5632b8d4456181462896e87b1662] mlxsw: spectrum: Remove unused function declarations testing commit 852c18d5611e5632b8d4456181462896e87b1662 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c997499fd50dae512bff55b01a4cd434f52d4692069af851011fad64d3ba1e52 all runs: OK false negative chance: 0.000 # git bisect good 852c18d5611e5632b8d4456181462896e87b1662 Bisecting: 408 revisions left to test after this (roughly 9 steps) [999a8a6b2e6ae73d293ff9ca69ec1715e34d6219] Bluetooth: Add support for Gale Peak (8087:0036) testing commit 999a8a6b2e6ae73d293ff9ca69ec1715e34d6219 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 72456ad95db0a2c718dc0a5e53e25385552c031bcaa025ca004b0d9ce06022bb all runs: OK false negative chance: 0.000 # git bisect good 999a8a6b2e6ae73d293ff9ca69ec1715e34d6219 Bisecting: 199 revisions left to test after this (roughly 8 steps) [f54a2a132a9d76c0e31fd1d5f569e84682563e54] Merge tag 'for-netdev' of https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit f54a2a132a9d76c0e31fd1d5f569e84682563e54 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fc396a22fd8143544b52b4d3d332e207ddaa54a178e3dead47478cd3ecba6c1e all runs: OK false negative chance: 0.000 # git bisect good f54a2a132a9d76c0e31fd1d5f569e84682563e54 Bisecting: 96 revisions left to test after this (roughly 7 steps) [4fdcb5e69ba38d4f266ca5f8ef89ea464893a82b] Merge branch 'spi-nor/next' of git://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git testing commit 4fdcb5e69ba38d4f266ca5f8ef89ea464893a82b gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7ce484604bc7a1f0652eff0329e65bf56a75a8b1cf662d270096aebc324f3f33 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] # git bisect bad 4fdcb5e69ba38d4f266ca5f8ef89ea464893a82b Bisecting: 59 revisions left to test after this (roughly 6 steps) [3549fecd10d24bcf9840ba2f7d6a0b5f57feed6f] mtd: rawnand: vf610_nfc: Do not check 0 for platform_get_irq() testing commit 3549fecd10d24bcf9840ba2f7d6a0b5f57feed6f gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8eeaae6d9289651aa65e2b240c0fd07a65426fc77365fd884e3a73aa7e3e0c8d all runs: OK false negative chance: 0.000 # git bisect good 3549fecd10d24bcf9840ba2f7d6a0b5f57feed6f Bisecting: 33 revisions left to test after this (roughly 5 steps) [24cc021a8ee3dd7e7cfd1dce2b6a1a9dc2bae5b4] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git testing commit 24cc021a8ee3dd7e7cfd1dce2b6a1a9dc2bae5b4 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1e972b27ecf7cbd75c68c229aaa1d036fa206c0d59c3e9fa5a94f00c23c2cb42 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] # git bisect bad 24cc021a8ee3dd7e7cfd1dce2b6a1a9dc2bae5b4 Bisecting: 12 revisions left to test after this (roughly 4 steps) [17c5c415b9cbbc14d4488cc8107f9560229a9236] net/mlx5: Add RoCE MACsec steering infrastructure in core testing commit 17c5c415b9cbbc14d4488cc8107f9560229a9236 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f6b406bc8bf12673787e597f31b87c584a28954e272b7b4ac04b61058d27efd9 all runs: OK false negative chance: 0.000 # git bisect good 17c5c415b9cbbc14d4488cc8107f9560229a9236 Bisecting: 6 revisions left to test after this (roughly 3 steps) [f38a5adcbd53eee1b83b9439deb9b7d219c27319] dt-bindings: net: bluetooth: qualcomm: document WCN7850 chipset testing commit f38a5adcbd53eee1b83b9439deb9b7d219c27319 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c5f2af108c14f033f2fc29f550dd3c80e76f2569c624473ed76cd60bc4f7d771 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] # git bisect bad f38a5adcbd53eee1b83b9439deb9b7d219c27319 Bisecting: 2 revisions left to test after this (roughly 2 steps) [db4d87d4a68e5228ebfe3fb6a3e60b3e0b9a34ea] Bluetooth: btnxpuart: Improve inband Independent Reset handling testing commit db4d87d4a68e5228ebfe3fb6a3e60b3e0b9a34ea gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e9d24738340c34ecb8e43ffa71e28942560acf70680bf3c83e70cf0c88897b58 all runs: OK false negative chance: 0.000 # git bisect good db4d87d4a68e5228ebfe3fb6a3e60b3e0b9a34ea Bisecting: 0 revisions left to test after this (roughly 1 step) [5109ebb80dad5374132ad87fecf5892d36f2fded] Bluetooth: hci_conn: Fix sending BT_HCI_CMD_LE_CREATE_CONN_CANCEL testing commit 5109ebb80dad5374132ad87fecf5892d36f2fded gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8b17a26769bbf68d303d051a029fda739144af042a5213cc818db1cfc09f6d9b all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] # git bisect bad 5109ebb80dad5374132ad87fecf5892d36f2fded Bisecting: 0 revisions left to test after this (roughly 0 steps) [45c37c4e9c9aab5bb1cf5778d8e5ebd9f9ad820a] Bluetooth: hci_sync: Fix UAF in hci_disconnect_all_sync testing commit 45c37c4e9c9aab5bb1cf5778d8e5ebd9f9ad820a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 92e38af6ef5ed8740cffce960844caaec658f8bc33423f9751894e63e557a0a5 all runs: crashed: KASAN: slab-use-after-free Read in hci_send_acl representative crash: KASAN: slab-use-after-free Read in hci_send_acl, types: [KASAN] # git bisect bad 45c37c4e9c9aab5bb1cf5778d8e5ebd9f9ad820a 45c37c4e9c9aab5bb1cf5778d8e5ebd9f9ad820a is the first bad commit commit 45c37c4e9c9aab5bb1cf5778d8e5ebd9f9ad820a Author: Luiz Augusto von Dentz Date: Wed Aug 9 16:49:33 2023 -0700 Bluetooth: hci_sync: Fix UAF in hci_disconnect_all_sync Use-after-free can occur in hci_disconnect_all_sync if a connection is deleted by concurrent processing of a controller event. To prevent this the code now tries to iterate over the list backwards to ensure the links are cleanup before its parents, also it no longer relies on a cursor, instead it always uses the last element since hci_abort_conn_sync is guaranteed to call hci_conn_del. UAF crash log: ================================================================== BUG: KASAN: slab-use-after-free in hci_set_powered_sync (net/bluetooth/hci_sync.c:5424) [bluetooth] Read of size 8 at addr ffff888009d9c000 by task kworker/u9:0/124 CPU: 0 PID: 124 Comm: kworker/u9:0 Tainted: G W 6.5.0-rc1+ #10 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.2-1.fc38 04/01/2014 Workqueue: hci0 hci_cmd_sync_work [bluetooth] Call Trace: dump_stack_lvl+0x5b/0x90 print_report+0xcf/0x670 ? __virt_addr_valid+0xdd/0x160 ? hci_set_powered_sync+0x2c9/0x4a0 [bluetooth] kasan_report+0xa6/0xe0 ? hci_set_powered_sync+0x2c9/0x4a0 [bluetooth] ? __pfx_set_powered_sync+0x10/0x10 [bluetooth] hci_set_powered_sync+0x2c9/0x4a0 [bluetooth] ? __pfx_hci_set_powered_sync+0x10/0x10 [bluetooth] ? __pfx_lock_release+0x10/0x10 ? __pfx_set_powered_sync+0x10/0x10 [bluetooth] hci_cmd_sync_work+0x137/0x220 [bluetooth] process_one_work+0x526/0x9d0 ? __pfx_process_one_work+0x10/0x10 ? __pfx_do_raw_spin_lock+0x10/0x10 ? mark_held_locks+0x1a/0x90 worker_thread+0x92/0x630 ? __pfx_worker_thread+0x10/0x10 kthread+0x196/0x1e0 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x2c/0x50 Allocated by task 1782: kasan_save_stack+0x33/0x60 kasan_set_track+0x25/0x30 __kasan_kmalloc+0x8f/0xa0 hci_conn_add+0xa5/0xa80 [bluetooth] hci_bind_cis+0x881/0x9b0 [bluetooth] iso_connect_cis+0x121/0x520 [bluetooth] iso_sock_connect+0x3f6/0x790 [bluetooth] __sys_connect+0x109/0x130 __x64_sys_connect+0x40/0x50 do_syscall_64+0x60/0x90 entry_SYSCALL_64_after_hwframe+0x6e/0xd8 Freed by task 695: kasan_save_stack+0x33/0x60 kasan_set_track+0x25/0x30 kasan_save_free_info+0x2b/0x50 __kasan_slab_free+0x10a/0x180 __kmem_cache_free+0x14d/0x2e0 device_release+0x5d/0xf0 kobject_put+0xdf/0x270 hci_disconn_complete_evt+0x274/0x3a0 [bluetooth] hci_event_packet+0x579/0x7e0 [bluetooth] hci_rx_work+0x287/0xaa0 [bluetooth] process_one_work+0x526/0x9d0 worker_thread+0x92/0x630 kthread+0x196/0x1e0 ret_from_fork+0x2c/0x50 ================================================================== Fixes: 182ee45da083 ("Bluetooth: hci_sync: Rework hci_suspend_notifier") Signed-off-by: Pauli Virtanen Signed-off-by: Luiz Augusto von Dentz net/bluetooth/hci_sync.c | 55 ++++++++++++++++++++++++++++++------------------ 1 file changed, 35 insertions(+), 20 deletions(-) accumulated error probability: 0.00 culprit signature: 92e38af6ef5ed8740cffce960844caaec658f8bc33423f9751894e63e557a0a5 parent signature: e9d24738340c34ecb8e43ffa71e28942560acf70680bf3c83e70cf0c88897b58 revisions tested: 23, total time: 7h5m21.24958289s (build: 3h54m44.11926956s, test: 2h42m40.070135947s) first bad commit: 45c37c4e9c9aab5bb1cf5778d8e5ebd9f9ad820a Bluetooth: hci_sync: Fix UAF in hci_disconnect_all_sync recipients (to): ["johan.hedberg@gmail.com" "linux-bluetooth@vger.kernel.org" "luiz.dentz@gmail.com" "luiz.von.dentz@intel.com" "marcel@holtmann.org" "pav@iki.fi"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: KASAN: slab-use-after-free Read in hci_send_acl ================================================================== BUG: KASAN: slab-use-after-free in hci_send_acl+0xd43/0x1150 net/bluetooth/hci_core.c:3228 Read of size 8 at addr ffff88810da4d618 by task kworker/1:2/421 CPU: 1 PID: 421 Comm: kworker/1:2 Not tainted 6.5.0-rc5-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Workqueue: events l2cap_info_timeout Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x3d/0x60 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 hci_send_acl+0xd43/0x1150 net/bluetooth/hci_core.c:3228 l2cap_send_conn_req+0x1c5/0x240 net/bluetooth/l2cap_core.c:1286 l2cap_conn_start+0x615/0x870 net/bluetooth/l2cap_core.c:1661 process_one_work+0x922/0x1370 kernel/workqueue.c:2600 worker_thread+0xfb/0xe40 kernel/workqueue.c:2751 kthread+0x278/0x330 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Allocated by task 2322: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:582 [inline] kzalloc include/linux/slab.h:703 [inline] hci_chan_create+0x88/0x360 net/bluetooth/hci_conn.c:2683 l2cap_conn_add.part.0+0x12/0xd10 net/bluetooth/l2cap_core.c:7841 l2cap_conn_add include/net/bluetooth/hci_core.h:1495 [inline] l2cap_chan_connect+0x11eb/0x1b10 net/bluetooth/l2cap_core.c:8053 bt_6lowpan_connect net/bluetooth/6lowpan.c:894 [inline] lowpan_control_write+0x33b/0x600 net/bluetooth/6lowpan.c:1129 full_proxy_write+0xf1/0x150 fs/debugfs/file.c:236 vfs_write+0x208/0xc80 fs/read_write.c:582 ksys_write+0xf6/0x1d0 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Freed by task 1404: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15e/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1792 [inline] slab_free_freelist_hook+0x10b/0x1e0 mm/slub.c:1818 slab_free mm/slub.c:3801 [inline] __kmem_cache_free+0xba/0x340 mm/slub.c:3814 hci_chan_list_flush+0x6d/0xd0 net/bluetooth/hci_conn.c:2723 hci_conn_cleanup net/bluetooth/hci_conn.c:152 [inline] hci_conn_del+0x181/0xb70 net/bluetooth/hci_conn.c:1135 hci_abort_conn_sync+0x351/0x870 net/bluetooth/hci_sync.c:5417 hci_cmd_sync_work+0x173/0x340 net/bluetooth/hci_sync.c:306 process_one_work+0x922/0x1370 kernel/workqueue.c:2600 worker_thread+0xfb/0xe40 kernel/workqueue.c:2751 kthread+0x278/0x330 kernel/kthread.c:389 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Last potentially related work creation: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 __kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:492 kvfree_call_rcu+0x63/0x970 kernel/rcu/tree.c:3368 kernfs_unlink_open_file+0x2b4/0x380 fs/kernfs/file.c:633 kernfs_fop_release+0xce/0x1c0 fs/kernfs/file.c:805 __fput+0x339/0xa20 fs/file_table.c:384 task_work_run+0x114/0x1f0 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop kernel/entry/common.c:171 [inline] exit_to_user_mode_prepare+0x13f/0x150 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:297 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88810da4d600 which belongs to the cache kmalloc-128 of size 128 The buggy address is located 24 bytes inside of freed 128-byte region [ffff88810da4d600, ffff88810da4d680) The buggy address belongs to the physical page: page:ffffea0004369340 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x10da4d flags: 0x100000000000200(slab|node=0|zone=2) page_type: 0xffffffff() raw: 0100000000000200 ffff8881000418c0 ffffea0004369280 dead000000000004 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x12cc0(GFP_KERNEL|__GFP_NOWARN|__GFP_NORETRY), pid 1, tgid 1 (swapper/0), ts 2575840749, free_ts 2563289409 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x281/0x2f0 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x1131/0x3d90 mm/page_alloc.c:3221 __alloc_pages+0x1d0/0x470 mm/page_alloc.c:4477 alloc_page_interleave+0xf/0x200 mm/mempolicy.c:2125 alloc_slab_page mm/slub.c:1862 [inline] allocate_slab+0x24e/0x360 mm/slub.c:2009 new_slab mm/slub.c:2062 [inline] ___slab_alloc+0x7a7/0x1000 mm/slub.c:3215 __slab_alloc.constprop.0+0x4d/0x90 mm/slub.c:3314 __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] __kmem_cache_alloc_node+0x143/0x390 mm/slub.c:3509 kmalloc_trace+0x25/0xb0 mm/slab_common.c:1076 kmalloc include/linux/slab.h:582 [inline] kzalloc include/linux/slab.h:703 [inline] acpi_device_add+0x46d/0xae0 drivers/acpi/scan.c:697 acpi_add_single_object+0xa15/0x1810 drivers/acpi/scan.c:1854 acpi_bus_check_add+0x1a6/0x490 drivers/acpi/scan.c:2080 acpi_bus_scan+0x8d/0x400 drivers/acpi/scan.c:2484 acpi_scan_init+0x1ea/0x630 drivers/acpi/scan.c:2652 acpi_init+0x380/0x870 drivers/acpi/bus.c:1394 do_one_initcall+0xcd/0x3c0 init/main.c:1232 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x5ac/0xcf0 mm/page_alloc.c:2348 free_unref_page+0x33/0x350 mm/page_alloc.c:2443 __unfreeze_partials+0x1f1/0x210 mm/slub.c:2647 qlink_free mm/kasan/quarantine.c:166 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:185 kasan_quarantine_remove_cache+0xe7/0x170 mm/kasan/quarantine.c:370 kmem_cache_shrink+0xd/0x20 mm/slab_common.c:519 acpi_os_purge_cache+0x9/0x10 drivers/acpi/osl.c:1580 acpi_purge_cached_objects+0xa8/0xf0 drivers/acpi/acpica/utxface.c:240 acpi_initialize_objects+0x1c/0x70 drivers/acpi/acpica/utxfinit.c:250 acpi_bus_init drivers/acpi/bus.c:1293 [inline] acpi_init+0x12f/0x870 drivers/acpi/bus.c:1381 do_one_initcall+0xcd/0x3c0 init/main.c:1232 do_initcall_level init/main.c:1294 [inline] do_initcalls init/main.c:1310 [inline] do_basic_setup init/main.c:1329 [inline] kernel_init_freeable+0x504/0x840 init/main.c:1546 kernel_init+0x1a/0x1c0 init/main.c:1437 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:145 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Memory state around the buggy address: ffff88810da4d500: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ffff88810da4d580: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff88810da4d600: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88810da4d680: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff88810da4d700: 00 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc ==================================================================