ci starts bisection 2024-06-25 20:40:51.035785247 +0000 UTC m=+20190.740499524 bisecting cause commit starting from 568ebdaba6370c03360860f1524f646ddd5ca523 building syzkaller on 215eef4ad85fb6124af70d1e5c9729b69554a32b ensuring issue is reproducible on original commit 568ebdaba6370c03360860f1524f646ddd5ca523 testing commit 568ebdaba6370c03360860f1524f646ddd5ca523 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 198ebac5d8104edc16912a8388787738a6283598cecdba5177ff3da28379552e all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] check whether we can drop unnecessary instrumentation disabling configs for [KASAN LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 568ebdaba6370c03360860f1524f646ddd5ca523 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 570d8823cecc14d818593aec630b9ac7a84f751c892d0fda118b68fca3a349db all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] the bug reproduces without the instrumentation disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN KASAN LOCKDEP], they are not needed kconfig minimization: base=3998 full=8041 leaves diff=2006 split chunks (needed=false): <2006> split chunk #0 of len 2006 into 5 parts testing without sub-chunk 1/5 disabling configs for [LEAK UBSAN KASAN LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 568ebdaba6370c03360860f1524f646ddd5ca523 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d2c6573587e6f442ae25ecf724bd5cf1bc860b7b67102fa11de99b99c11e8ff2 all runs: OK false negative chance: 0.000 testing without sub-chunk 2/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN KASAN], they are not needed testing commit 568ebdaba6370c03360860f1524f646ddd5ca523 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8e1be79ef343d6d61ded44886cd01d4d6f272c5a779635e5bd377c1d81420714 all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LEAK UBSAN KASAN LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 568ebdaba6370c03360860f1524f646ddd5ca523 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 78f01ee5dd98bc672cc8553c9ec9d89d4a27dd5becc610659f4a7a034693a131 all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN KASAN LOCKDEP], they are not needed testing commit 568ebdaba6370c03360860f1524f646ddd5ca523 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 84d4ae688e7c548c5016b020af7a577c1e0c33fb5bd9147a60333a7122e4de03 all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [KASAN LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 568ebdaba6370c03360860f1524f646ddd5ca523 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ca897bd6164bac3f37cea0f4f3d73a86e8b2a86854bf129e08a8dbd3109eadd4 all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] the chunk can be dropped minimized to 402 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_NHLT 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_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_LEDS 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_ERASURE_CODING BCACHEFS_FS BCACHEFS_POSIX_ACL BCACHEFS_QUOTA BCACHEFS_SIX_OPTIMISTIC_SPIN 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_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_SSSE3 CRYPTO_SHA256_SSSE3 CRYPTO_SHA512_SSSE3 CRYPTO_SIMD 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 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 [ATOMIC_SLEEP HANG LEAK UBSAN KASAN LOCKDEP], they are not needed picked [v6.9 v6.8 v6.7 v6.5 v6.3 v6.1 v5.19 v5.17 v5.14 v5.11 v5.8 v5.5 v5.2 v4.20 v4.19] out of 32 release tags testing release v6.9 testing commit a38297e3fb012ddfa7ce0321a7e5a8daeb1872b6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 58a1d27bce7cf0fa1ad6835587658b41b0f45e2431ee0400de932a6c183e806a all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] testing release v6.8 testing commit e8f897f4afef0031fe618a8e94127a0934896aba gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a39dcf1b07a195eadcd038964bcfc2ac1c859db6b8aa7b8983f1dcbd0e252a11 all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] 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: 4b6f93223187ba48184d362ddccc72067c187fb54161d7ee0df20ecb14c9f95d all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] testing release v6.5 testing commit 2dde18cd1d8fac735875f2e4987f11817cc0bc2c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 74e7ee828ece1e2440914b700e3f485968da8f6536779120afbdeb1c82df9067 all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] testing release v6.3 testing commit 457391b0380335d5e9a5babdec90ac53928b23b4 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5369692d63feb410357372a4053aa2c3fef31c0649a9e20cfba2c363863893e6 all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] testing release v6.1 testing commit 830b3c68c1fb1e9176028d02ef86f3cf76aa2476 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5b62d22b28e34aa1c23958c186d12ad06105017346d56eecc4b86f4642876f36 all runs: crashed: WARNING: refcount bug in ax25_release representative crash: WARNING: refcount bug in ax25_release, types: [WARNING] testing release v5.19 testing commit 3d7cb6b04c3f3115719235cc6866b10326de34cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fccfde9e58944bab60020f3b795f9edec8499aed7ebd62fb4ebb3580dc97e66c all runs: crashed: WARNING in ax25_release representative crash: WARNING in ax25_release, types: [WARNING] testing release v5.17 testing commit f443e374ae131c168a065ea1748feac6b2e76613 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c4b0e4edab3341b59a4d10e9b352bf897343b5e81fef801933efa012b8a5cb72 all runs: OK false negative chance: 0.000 # git bisect start 3d7cb6b04c3f3115719235cc6866b10326de34cd f443e374ae131c168a065ea1748feac6b2e76613 Bisecting: 16314 revisions left to test after this (roughly 14 steps) [a6f844da39af8046798ba5cadf92a0c54da80b26] Merge tag 'v5.18' into rdma.git for-next testing commit a6f844da39af8046798ba5cadf92a0c54da80b26 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3517a9ab289d8852184b7316045148801aead909df2871cba8ab93177dee6f3c all runs: crashed: WARNING in ax25_release representative crash: WARNING in ax25_release, types: [WARNING] # git bisect bad a6f844da39af8046798ba5cadf92a0c54da80b26 Bisecting: 8582 revisions left to test after this (roughly 13 steps) [25fd2d41b505d0640bdfe67aa77c549de2d3c18a] selftests: kselftest framework: provide "finished" helper testing commit 25fd2d41b505d0640bdfe67aa77c549de2d3c18a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 43b2c010b1f7664d73a9af5035abf203f30ce67e4e214954a8db06271651bc08 all runs: crashed: WARNING in ax25_release representative crash: WARNING in ax25_release, types: [WARNING] # git bisect bad 25fd2d41b505d0640bdfe67aa77c549de2d3c18a Bisecting: 3943 revisions left to test after this (roughly 12 steps) [b4bc93bd76d4da32600795cd323c971f00a2e788] Merge tag 'arm-drivers-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit b4bc93bd76d4da32600795cd323c971f00a2e788 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1705bb31c731553c3d369d540c40317a6876a2d4eab89392d51b217408da03e4 all runs: OK false negative chance: 0.000 # git bisect good b4bc93bd76d4da32600795cd323c971f00a2e788 Bisecting: 1997 revisions left to test after this (roughly 11 steps) [9a225f81f540f65225e4b820e303d40d9e747e78] ice: Support GTP-U and GTP-C offload in switchdev testing commit 9a225f81f540f65225e4b820e303d40d9e747e78 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 507d2f34d07c8f89f8c151ffce41cea3bb6b30741c740540815a169f41c57171 all runs: OK false negative chance: 0.000 # git bisect good 9a225f81f540f65225e4b820e303d40d9e747e78 Bisecting: 994 revisions left to test after this (roughly 10 steps) [7403e6d8263937dea206dd201fed1ceed190ca18] Merge tag 'vfio-v5.18-rc1' of https://github.com/awilliam/linux-vfio testing commit 7403e6d8263937dea206dd201fed1ceed190ca18 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b505f8dd649465f98ed47094b69e33c060b514ebe669ad5e255409724d9bb954 all runs: OK false negative chance: 0.000 # git bisect good 7403e6d8263937dea206dd201fed1ceed190ca18 Bisecting: 470 revisions left to test after this (roughly 9 steps) [dca51fe7fbb11909cd80e81714f6de4515123a64] Merge tag 'wireless-next-2022-03-18' of git://git.kernel.org/pub/scm/linux/kernel/git/wireless/wireless-next testing commit dca51fe7fbb11909cd80e81714f6de4515123a64 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cda6af1a6bc3117575249e068b8fb5c370cad557a91513fe59b952a21c933805 all runs: OK false negative chance: 0.000 # git bisect good dca51fe7fbb11909cd80e81714f6de4515123a64 Bisecting: 194 revisions left to test after this (roughly 8 steps) [0db8640df59512dbd423c32077919f10cf35ebc6] Merge https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf-next testing commit 0db8640df59512dbd423c32077919f10cf35ebc6 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f36c54ed41759cd2f86813914629b8060dbcf41c6bdebde393cd97513ab1a870 all runs: OK false negative chance: 0.000 # git bisect good 0db8640df59512dbd423c32077919f10cf35ebc6 Bisecting: 97 revisions left to test after this (roughly 7 steps) [59d7cb27d528eae2f060d548dcd14d292b19fda3] tools/vm/page_owner_sort.c: fix comments testing commit 59d7cb27d528eae2f060d548dcd14d292b19fda3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 777c728a7b576423b85ac6dc483464796653fb47bcbd2d10e63388c17b598da3 all runs: crashed: WARNING in ax25_release representative crash: WARNING in ax25_release, types: [WARNING] # git bisect bad 59d7cb27d528eae2f060d548dcd14d292b19fda3 Bisecting: 55 revisions left to test after this (roughly 6 steps) [b027471adaf955efde6153d67f391fe1604b7292] Revert "ubsan, kcsan: Don't combine sanitizer with kcov on clang" testing commit b027471adaf955efde6153d67f391fe1604b7292 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 24d63549a2a3510f3d0c0551e24bc2b5eddfaac67edf26fd39e51d1baf7e8da7 all runs: OK false negative chance: 0.000 # git bisect good b027471adaf955efde6153d67f391fe1604b7292 Bisecting: 27 revisions left to test after this (roughly 5 steps) [f92fcb5c00dc924a4661d5bf68de7937040f26b8] Merge branch 'ice-avoid-sleeping-scheduling-in-atomic-contexts' testing commit f92fcb5c00dc924a4661d5bf68de7937040f26b8 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6f46a6f2eb348b1718ccde1dfbbe274c34336dc891a2b086e598c8b73aa0d110 all runs: crashed: WARNING in ax25_release representative crash: WARNING in ax25_release, types: [WARNING] # git bisect bad f92fcb5c00dc924a4661d5bf68de7937040f26b8 Bisecting: 13 revisions left to test after this (roughly 4 steps) [03e2777c1a01cdc072193b72ff6a96a0147944cd] Merge branch 'ipv4-handle-tos-and-scope-properly-for-icmp-redirects-and-pmtu-updates' testing commit 03e2777c1a01cdc072193b72ff6a96a0147944cd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 124e8b12258979b2459761b353b1f9aa56abef00c3231eee5aa6e55efc82f25f all runs: OK false negative chance: 0.000 # git bisect good 03e2777c1a01cdc072193b72ff6a96a0147944cd Bisecting: 6 revisions left to test after this (roughly 3 steps) [ed0c99dc0f499ff8b6e75b5ae6092ab42be1ad39] tcp: ensure PMTU updates are processed during fastopen testing commit ed0c99dc0f499ff8b6e75b5ae6092ab42be1ad39 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 152c1b7ee7cb24c16e70ba8d9ad0e23c59f102aa5a337b2525d1a44ac1c40bad all runs: crashed: WARNING in ax25_release representative crash: WARNING in ax25_release, types: [WARNING] # git bisect bad ed0c99dc0f499ff8b6e75b5ae6092ab42be1ad39 Bisecting: 3 revisions left to test after this (roughly 2 steps) [9fd75b66b8f68498454d685dc4ba13192ae069b0] ax25: Fix refcount leaks caused by ax25_cb_del() testing commit 9fd75b66b8f68498454d685dc4ba13192ae069b0 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4e4e14037dec28413a7c062f2df67ba6dfc9bc381aa2f1cf2c0b44f26f54f389 all runs: crashed: WARNING in ax25_release representative crash: WARNING in ax25_release, types: [WARNING] # git bisect bad 9fd75b66b8f68498454d685dc4ba13192ae069b0 Bisecting: 0 revisions left to test after this (roughly 1 step) [0caf6d9922192dd1afa8dc2131abfb4df1443b9f] af_netlink: Fix shift out of bounds in group mask calculation testing commit 0caf6d9922192dd1afa8dc2131abfb4df1443b9f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6a0a7acf682d09372e7763bc87450857fcd06c59096b01ea541844c63360c06e all runs: OK false negative chance: 0.000 # git bisect good 0caf6d9922192dd1afa8dc2131abfb4df1443b9f 9fd75b66b8f68498454d685dc4ba13192ae069b0 is the first bad commit commit 9fd75b66b8f68498454d685dc4ba13192ae069b0 Author: Duoming Zhou Date: Fri Mar 18 08:54:04 2022 +0800 ax25: Fix refcount leaks caused by ax25_cb_del() The previous commit d01ffb9eee4a ("ax25: add refcount in ax25_dev to avoid UAF bugs") and commit feef318c855a ("ax25: fix UAF bugs of net_device caused by rebinding operation") increase the refcounts of ax25_dev and net_device in ax25_bind() and decrease the matching refcounts in ax25_kill_by_device() in order to prevent UAF bugs, but there are reference count leaks. The root cause of refcount leaks is shown below: (Thread 1) | (Thread 2) ax25_bind() | ... | ax25_addr_ax25dev() | ax25_dev_hold() //(1) | ... | dev_hold_track() //(2) | ... | ax25_destroy_socket() | ax25_cb_del() | ... | hlist_del_init() //(3) | | (Thread 3) | ax25_kill_by_device() | ... | ax25_for_each(s, &ax25_list) { | if (s->ax25_dev == ax25_dev) //(4) | ... | Firstly, we use ax25_bind() to increase the refcount of ax25_dev in position (1) and increase the refcount of net_device in position (2). Then, we use ax25_cb_del() invoked by ax25_destroy_socket() to delete ax25_cb in hlist in position (3) before calling ax25_kill_by_device(). Finally, the decrements of refcounts in ax25_kill_by_device() will not be executed, because no s->ax25_dev equals to ax25_dev in position (4). This patch adds decrements of refcounts in ax25_release() and use lock_sock() to do synchronization. If refcounts decrease in ax25_release(), the decrements of refcounts in ax25_kill_by_device() will not be executed and vice versa. Fixes: d01ffb9eee4a ("ax25: add refcount in ax25_dev to avoid UAF bugs") Fixes: 87563a043cef ("ax25: fix reference count leaks of ax25_dev") Fixes: feef318c855a ("ax25: fix UAF bugs of net_device caused by rebinding operation") Reported-by: Thomas Osterried Signed-off-by: Duoming Zhou Signed-off-by: David S. Miller net/ax25/af_ax25.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) accumulated error probability: 0.00 culprit signature: 4e4e14037dec28413a7c062f2df67ba6dfc9bc381aa2f1cf2c0b44f26f54f389 parent signature: 6a0a7acf682d09372e7763bc87450857fcd06c59096b01ea541844c63360c06e revisions tested: 29, total time: 8h47m34.998425046s (build: 4h42m3.392453226s, test: 3h45m24.742087069s) first bad commit: 9fd75b66b8f68498454d685dc4ba13192ae069b0 ax25: Fix refcount leaks caused by ax25_cb_del() recipients (to): ["davem@davemloft.net" "davem@davemloft.net" "duoming@zju.edu.cn" "jreuter@yaina.de" "kuba@kernel.org" "linux-hams@vger.kernel.org" "netdev@vger.kernel.org" "pabeni@redhat.com" "ralf@linux-mips.org"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: WARNING in ax25_release netdev_tracker_free include/linux/netdevice.h:3868 [inline] dev_put_track include/linux/netdevice.h:3885 [inline] ax25_release+0xad/0x2e0 net/ax25/af_ax25.c:995 __sock_release net/socket.c:650 [inline] sock_close+0x48/0xe0 net/socket.c:1318 __fput+0xed/0x220 fs/file_table.c:317 task_work_run+0x62/0xa0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xd9/0xf0 kernel/entry/common.c:175 exit_to_user_mode_prepare+0x64/0xd0 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x28/0x200 kernel/entry/common.c:300 do_syscall_64+0x58/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae ------------[ cut here ]------------ WARNING: CPU: 0 PID: 2740 at lib/ref_tracker.c:123 ref_tracker_free+0x222/0x270 lib/ref_tracker.c:123 Modules linked in: CPU: 0 PID: 2740 Comm: syz.0.16 Not tainted 5.17.0-rc8-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/07/2024 RIP: 0010:ref_tracker_free+0x222/0x270 lib/ref_tracker.c:123 Code: 41 5e 41 5f 5d c3 48 c7 c7 a5 4e fc 82 e8 f7 1f c0 00 83 7b 14 00 75 1c 83 7b 18 00 75 30 4c 89 ff 4c 89 f6 e8 af ed c1 00 90 <0f> 0b 90 bb ea ff ff ff eb ae 48 c7 c7 c4 4e fc 82 e8 c9 1f c0 00 RSP: 0018:ffffc90001d37d30 EFLAGS: 00010286 RAX: 5771999628ae8200 RBX: ffff888179248560 RCX: 0000000000000001 RDX: 0000000000000000 RSI: ffffffff82f32462 RDI: 00000000ffffffff RBP: ffffc90001d37df0 R08: 0000000000000000 R09: ffffffff832ca1a0 R10: 00000000ffffffff R11: 00000000ffffdfff R12: 00000000a2800012 R13: ffff888179268400 R14: 0000000000000282 R15: ffff8881021ea578 FS: 0000555555637500(0000) GS:ffff888237c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000001b2de5ffff CR3: 000000017842c000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: netdev_tracker_free include/linux/netdevice.h:3868 [inline] dev_put_track include/linux/netdevice.h:3885 [inline] ax25_release+0xad/0x2e0 net/ax25/af_ax25.c:995 __sock_release net/socket.c:650 [inline] sock_close+0x48/0xe0 net/socket.c:1318 __fput+0xed/0x220 fs/file_table.c:317 task_work_run+0x62/0xa0 kernel/task_work.c:164 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_user_mode_loop+0xd9/0xf0 kernel/entry/common.c:175 exit_to_user_mode_prepare+0x64/0xd0 kernel/entry/common.c:207 __syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline] syscall_exit_to_user_mode+0x28/0x200 kernel/entry/common.c:300 do_syscall_64+0x58/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x55b2d7595d39 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff2f456978 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 000000000000bd2b RCX: 000055b2d7595d39 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: ffffffffffffffff R08: 0000000000000001 R09: 000000072f456c8f R10: 00007f0d450e4000 R11: 0000000000000246 R12: 000055b2d7723fac R13: 0000000000000032 R14: 000055b2d77259a0 R15: 000055b2d7723fa0