ci starts bisection 2023-09-21 18:39:43.472163646 +0000 UTC m=+718527.491287666 bisecting cause commit starting from 940fcc189c51032dd0282cbee4497542c982ac59 building syzkaller on 0b6a67ac4b0dc26f43030c5edd01c9175f13b784 ensuring issue is reproducible on original commit 940fcc189c51032dd0282cbee4497542c982ac59 testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4e447d23fe3266c97f0f6f0c3b50af4b015888db35eca867e7393485b8c6d925 all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d0db5f9b3a540c5eb1a23b9e9b047bceeb40ac7fd158b309c7a5c1812902bec6 all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] the bug reproduces without the instrumentation disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=3883 full=7704 leaves diff=2021 split chunks (needed=false): <2021> split chunk #0 of len 2021 into 5 parts testing without sub-chunk 1/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 46bd37ae6f3982bdf5418b67e43009d5890a2e162004c7fa0ef89bb70d923002 all runs: OK false negative chance: 0.000 testing without sub-chunk 2/5 disabling configs for [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bf5fede9427154449655639d7fc4a4e08d1cd441658141a701c15361fd9e1306 all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d8a88022d5e4e4b8d53c8299302dd50e90ac6c858f071e4a463d597732c5cebd all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [BUG KASAN ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 098dee976bb148707f9ff7b16e4e8d2604ef2c4d654bc9c871c9d1714fef6d15 all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN BUG KASAN ATOMIC_SLEEP], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1957b6e4c7d4ff1c4df7e1aa9642edfd0d0572f9ab281a327f237e418594464d all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] the chunk can be dropped minimized to 405 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_GENERIC_CRASHKERNEL_RESERVATION 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 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 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 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 [KASAN ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed picked [v6.5 v6.4 v6.3 v6.1 v5.19 v5.17 v5.15 v5.13 v5.10 v5.7 v5.4 v5.1 v4.19] out of 28 release tags testing release v6.5 testing commit 2dde18cd1d8fac735875f2e4987f11817cc0bc2c gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 535f9ad4ef6fab3306fbeeadf762cfb1e3a8212434e67c5a4752692a1ec63f23 all runs: OK false negative chance: 0.000 # git bisect start 940fcc189c51032dd0282cbee4497542c982ac59 2dde18cd1d8fac735875f2e4987f11817cc0bc2c Bisecting: 10207 revisions left to test after this (roughly 13 steps) [1c9f8dff62d85ce00b0e99f774a84bd783af7cac] Merge tag 'char-misc-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc testing commit 1c9f8dff62d85ce00b0e99f774a84bd783af7cac gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2d960d1796dab969a9d489a43948ffa581360ad21d13f961d4dbe19f9394c72b all runs: OK false negative chance: 0.000 # git bisect good 1c9f8dff62d85ce00b0e99f774a84bd783af7cac Bisecting: 5107 revisions left to test after this (roughly 12 steps) [db471fd4c7c96c0b63cb2098824560d6299ec9c3] bcachefs: Don't set accessed bit on btree node fill testing commit db471fd4c7c96c0b63cb2098824560d6299ec9c3 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 45b65da7de8c72d89149aa40d38f5069f8f8ff83c066b51faee7e45913309ec7 all runs: OK false negative chance: 0.000 # git bisect good db471fd4c7c96c0b63cb2098824560d6299ec9c3 Bisecting: 2560 revisions left to test after this (roughly 11 steps) [320d0b183f2e35eb47b15936627534c19654ca5d] Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git testing commit 320d0b183f2e35eb47b15936627534c19654ca5d gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c5023eb968289dae941efb054c98878e989ef067f882428108bd9f3bd703b65b all runs: OK false negative chance: 0.000 # git bisect good 320d0b183f2e35eb47b15936627534c19654ca5d Bisecting: 1198 revisions left to test after this (roughly 10 steps) [b06b34a3d7df820f39b873f861f31019e2f55ffb] Merge branch 'drm-next' of https://gitlab.freedesktop.org/agd5f/linux testing commit b06b34a3d7df820f39b873f861f31019e2f55ffb gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c365c651d46f4ca090b1e301aeb286c1762640a9f25701d7b083f65ac57a330e all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] # git bisect bad b06b34a3d7df820f39b873f861f31019e2f55ffb Bisecting: 676 revisions left to test after this (roughly 9 steps) [26f62843818d49fe5676918760adf263300d125f] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next.git testing commit 26f62843818d49fe5676918760adf263300d125f gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d2a2d6532c87b7c3198f25645506e96fc4c4e252d5026b800b579f29c6dfebcd all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] # git bisect bad 26f62843818d49fe5676918760adf263300d125f Bisecting: 342 revisions left to test after this (roughly 9 steps) [beb8592d041626532d01dc42f8010ba37953c1fc] net: dsa: hirschmann: Convert to platform remove callback returning void testing commit beb8592d041626532d01dc42f8010ba37953c1fc gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 62e487e3f3356c772eb3320de6a17cdc712280e58a52573cdf5d989e2f1c478b all runs: OK false negative chance: 0.000 # git bisect good beb8592d041626532d01dc42f8010ba37953c1fc Bisecting: 168 revisions left to test after this (roughly 8 steps) [da55471b4e54d8531bd8c5b2a4f9499b99895a9c] Merge branch 'main' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git testing commit da55471b4e54d8531bd8c5b2a4f9499b99895a9c gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1ae9802cf9f14cb2a8578e52abdb4eafbfdbc2ee2f963d378a276f0409136972 all runs: OK false negative chance: 0.000 # git bisect good da55471b4e54d8531bd8c5b2a4f9499b99895a9c Bisecting: 84 revisions left to test after this (roughly 6 steps) [563fe446ef2b30d0eb918a46070cfc7fb41290a7] wifi: mac80211: Do not force off-channel for management Tx with MLO testing commit 563fe446ef2b30d0eb918a46070cfc7fb41290a7 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 468a9dafec6f2379750d1e9a8ad6bae6bb8a824980ab5a494123657a856fb8db all runs: OK false negative chance: 0.000 # git bisect good 563fe446ef2b30d0eb918a46070cfc7fb41290a7 Bisecting: 42 revisions left to test after this (roughly 5 steps) [1bd9c9eba6de1c03f52d711bcd9b03bc467cfbb0] wifi: iwlwifi: no power save during transition to D3 testing commit 1bd9c9eba6de1c03f52d711bcd9b03bc467cfbb0 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4f7468a36ab37cf04f57f9623ebbb693f4bac40165a063cbb56594069a8eb748 all runs: OK false negative chance: 0.000 # git bisect good 1bd9c9eba6de1c03f52d711bcd9b03bc467cfbb0 Bisecting: 21 revisions left to test after this (roughly 5 steps) [7c8a55dd265b2801e5d133435edb4422d5ff6ab8] wifi: rtw89: add mac_gen pointer to access mac port registers testing commit 7c8a55dd265b2801e5d133435edb4422d5ff6ab8 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e549dda56115ec19b48ac3128afe2cf7e0dece17e2d760a744e6ed1d19fe36cc all runs: OK false negative chance: 0.000 # git bisect good 7c8a55dd265b2801e5d133435edb4422d5ff6ab8 Bisecting: 10 revisions left to test after this (roughly 4 steps) [e9cbacd6cfb5974ad8a6de850241cb105ff088ad] Bluetooth: ISO: Set CIS bit only for devices with CIS support testing commit e9cbacd6cfb5974ad8a6de850241cb105ff088ad gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3a499d777264ce0cc243230a235351da6092849819d4c0f750258b6f6e7048d0 all runs: OK false negative chance: 0.000 # git bisect good e9cbacd6cfb5974ad8a6de850241cb105ff088ad Bisecting: 5 revisions left to test after this (roughly 3 steps) [74f7957c9b1b95553faaf146a2553e023a9d1720] wifi: rtw88: debug: Fix the NULL vs IS_ERR() bug for debugfs_create_file() testing commit 74f7957c9b1b95553faaf146a2553e023a9d1720 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 06ceeaad6696701ceca09ebfe103400d32745bcf6a845011228ce43e9ef62410 all runs: OK false negative chance: 0.000 # git bisect good 74f7957c9b1b95553faaf146a2553e023a9d1720 Bisecting: 2 revisions left to test after this (roughly 2 steps) [c0c64dc267e42dd7edf0c7da00ea7b662a44cb2e] Bluetooth: hci_codec: Fix leaking content of local_codecs testing commit c0c64dc267e42dd7edf0c7da00ea7b662a44cb2e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c9b7ddcc5cd442f6e6f5f70da4b9d28b32fe14ee31505f3a780b96d663cdcc4b all runs: OK false negative chance: 0.000 # git bisect good c0c64dc267e42dd7edf0c7da00ea7b662a44cb2e Bisecting: 0 revisions left to test after this (roughly 1 step) [86c533d81da83113d8edfea653ba4727fca89a1e] Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/bluetooth/bluetooth-next.git testing commit 86c533d81da83113d8edfea653ba4727fca89a1e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e3082e4d2c6a3c4daf779198f2eeca34493a6b13b7a8306be0b19a10c466d891 all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] # git bisect bad 86c533d81da83113d8edfea653ba4727fca89a1e Bisecting: 0 revisions left to test after this (roughly 0 steps) [091e25d6b54992d1d702ae91cbac139d4c243251] Bluetooth: vhci: Fix race when opening vhci device testing commit 091e25d6b54992d1d702ae91cbac139d4c243251 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a3ca294a7e408cb224d7f3b34ca0beefb69287ced5e402d0ea15a0a3845ca9aa all runs: crashed: possible deadlock in hci_dev_do_close representative crash: possible deadlock in hci_dev_do_close, types: [LOCKDEP] # git bisect bad 091e25d6b54992d1d702ae91cbac139d4c243251 091e25d6b54992d1d702ae91cbac139d4c243251 is the first bad commit commit 091e25d6b54992d1d702ae91cbac139d4c243251 Author: Arkadiusz Bokowy Date: Wed Sep 20 17:30:07 2023 +0200 Bluetooth: vhci: Fix race when opening vhci device When the vhci device is opened in the two-step way, i.e.: open device then write a vendor packet with requested controller type, the device shall respond with a vendor packet which includes HCI index of created interface. When the virtual HCI is created, the host sends a reset request to the controller. This request is processed by the vhci_send_frame() function. However, this request is send by a different thread, so it might happen that this HCI request will be received before the vendor response is queued in the read queue. This results in the HCI vendor response and HCI reset request inversion in the read queue which leads to improper behavior of btvirt: > dmesg [1754256.640122] Bluetooth: MGMT ver 1.22 [1754263.023806] Bluetooth: MGMT ver 1.22 [1754265.043775] Bluetooth: hci1: Opcode 0x c03 failed: -110 In order to synchronize vhci two-step open/setup process with virtual HCI initialization, this patch adds internal lock when queuing data in the vhci_send_frame() function. Signed-off-by: Arkadiusz Bokowy Signed-off-by: Luiz Augusto von Dentz drivers/bluetooth/hci_vhci.c | 3 +++ 1 file changed, 3 insertions(+) accumulated error probability: 0.00 culprit signature: a3ca294a7e408cb224d7f3b34ca0beefb69287ced5e402d0ea15a0a3845ca9aa parent signature: c9b7ddcc5cd442f6e6f5f70da4b9d28b32fe14ee31505f3a780b96d663cdcc4b revisions tested: 23, total time: 8h53m47.043502094s (build: 5h22m27.612293372s, test: 3h5m8.669607788s) first bad commit: 091e25d6b54992d1d702ae91cbac139d4c243251 Bluetooth: vhci: Fix race when opening vhci device recipients (to): ["arkadiusz.bokowy@gmail.com" "johan.hedberg@gmail.com" "linux-bluetooth@vger.kernel.org" "luiz.dentz@gmail.com" "luiz.von.dentz@intel.com" "marcel@holtmann.org"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: possible deadlock in hci_dev_do_close ====================================================== WARNING: possible circular locking dependency detected 6.6.0-rc1-syzkaller #0 Not tainted ------------------------------------------------------ syz-executor.0/2330 is trying to acquire lock: ffff8881083410b8 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close+0x1c/0x60 net/bluetooth/hci_core.c:552 but task is already holding lock: ffffffff8377cc68 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x92/0x1f0 net/rfkill/core.c:1278 which lock already depends on the new lock. the existing dependency chain (in reverse order) is: -> #3 (rfkill_global_mutex){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0xab/0xa10 kernel/locking/mutex.c:747 rfkill_register+0x26/0x320 net/rfkill/core.c:1057 hci_register_dev+0x17f/0x3f0 net/bluetooth/hci_core.c:2656 __vhci_create_device+0x10d/0x270 drivers/bluetooth/hci_vhci.c:437 vhci_create_device drivers/bluetooth/hci_vhci.c:478 [inline] vhci_get_user drivers/bluetooth/hci_vhci.c:535 [inline] vhci_write+0x112/0x1b0 drivers/bluetooth/hci_vhci.c:615 call_write_iter include/linux/fs.h:1985 [inline] new_sync_write fs/read_write.c:491 [inline] vfs_write+0x25c/0x510 fs/read_write.c:584 ksys_write+0x70/0xf0 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 -> #2 (&data->open_mutex){+.+.}-{3:3}: __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0xab/0xa10 kernel/locking/mutex.c:747 vhci_send_frame+0x36/0x70 drivers/bluetooth/hci_vhci.c:78 hci_send_frame+0x6e/0x120 net/bluetooth/hci_core.c:3039 hci_sched_acl_pkt net/bluetooth/hci_core.c:3651 [inline] hci_sched_acl net/bluetooth/hci_core.c:3736 [inline] hci_tx_work+0x6eb/0x8d0 net/bluetooth/hci_core.c:3835 process_one_work+0x208/0x4c0 kernel/workqueue.c:2630 process_scheduled_works kernel/workqueue.c:2703 [inline] worker_thread+0x1c3/0x380 kernel/workqueue.c:2784 kthread+0xde/0x110 kernel/kthread.c:388 ret_from_fork+0x2c/0x40 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 -> #1 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}: __flush_work+0x8c/0x4e0 kernel/workqueue.c:3403 hci_dev_close_sync+0xc4/0x5a0 net/bluetooth/hci_sync.c:4982 hci_dev_do_close+0x24/0x60 net/bluetooth/hci_core.c:554 hci_unregister_dev+0xb8/0x1d0 net/bluetooth/hci_core.c:2737 vhci_release+0x3a/0x70 drivers/bluetooth/hci_vhci.c:672 __fput+0xe8/0x280 fs/file_table.c:384 task_work_run+0x55/0x80 kernel/task_work.c:179 exit_task_work include/linux/task_work.h:38 [inline] do_exit+0x371/0xbb0 kernel/exit.c:874 do_group_exit+0x32/0xa0 kernel/exit.c:1024 get_signal+0xde7/0xe00 kernel/signal.c:2892 arch_do_signal_or_restart+0x39/0x290 arch/x86/kernel/signal.c:309 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0x110/0x1b0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x1d/0x60 kernel/entry/common.c:296 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd -> #0 (&hdev->req_lock){+.+.}-{3:3}: check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3868 [inline] __lock_acquire+0x12e6/0x1d00 kernel/locking/lockdep.c:5136 lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0xcd/0x2d0 kernel/locking/lockdep.c:5718 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0xab/0xa10 kernel/locking/mutex.c:747 hci_dev_do_close+0x1c/0x60 net/bluetooth/hci_core.c:552 hci_rfkill_set_block+0x53/0x80 net/bluetooth/hci_core.c:956 rfkill_set_block+0x86/0x150 net/rfkill/core.c:345 rfkill_fop_write+0x154/0x1f0 net/rfkill/core.c:1286 vfs_write+0xe6/0x510 fs/read_write.c:582 ksys_write+0xbb/0xf0 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 other info that might help us debug this: Chain exists of: &hdev->req_lock --> &data->open_mutex --> rfkill_global_mutex Possible unsafe locking scenario: CPU0 CPU1 ---- ---- lock(rfkill_global_mutex); lock(&data->open_mutex); lock(rfkill_global_mutex); lock(&hdev->req_lock); *** DEADLOCK *** 1 lock held by syz-executor.0/2330: #0: ffffffff8377cc68 (rfkill_global_mutex){+.+.}-{3:3}, at: rfkill_fop_write+0x92/0x1f0 net/rfkill/core.c:1278 stack backtrace: CPU: 0 PID: 2330 Comm: syz-executor.0 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x5c/0xb0 lib/dump_stack.c:106 check_noncircular+0x116/0x130 kernel/locking/lockdep.c:2187 check_prev_add kernel/locking/lockdep.c:3134 [inline] check_prevs_add kernel/locking/lockdep.c:3253 [inline] validate_chain kernel/locking/lockdep.c:3868 [inline] __lock_acquire+0x12e6/0x1d00 kernel/locking/lockdep.c:5136 lock_acquire kernel/locking/lockdep.c:5753 [inline] lock_acquire+0xcd/0x2d0 kernel/locking/lockdep.c:5718 __mutex_lock_common kernel/locking/mutex.c:603 [inline] __mutex_lock+0xab/0xa10 kernel/locking/mutex.c:747 hci_dev_do_close+0x1c/0x60 net/bluetooth/hci_core.c:552 hci_rfkill_set_block+0x53/0x80 net/bluetooth/hci_core.c:956 rfkill_set_block+0x86/0x150 net/rfkill/core.c:345 rfkill_fop_write+0x154/0x1f0 net/rfkill/core.c:1286 vfs_write+0xe6/0x510 fs/read_write.c:582 ksys_write+0xbb/0xf0 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 RIP: 0033:0x7f4d0a27cae9 Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f4d0b0be0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00007f4d0a39bf80 RCX: 00007f4d0a27cae9 RDX: 0000000000000008 RSI: 0000000020000080 RDI: 0000000000000003 RBP: 00007f4d0a2c847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f4d0a39bf80 R15: 00007ffd264e8138