ci starts bisection 2024-10-20 00:08:37.98453961 +0000 UTC m=+125008.117543496 bisecting cause commit starting from 15e7d45e786a62a211dd0098fee7c57f84f8c681 building syzkaller on cd6fc0a3018e5d793bdcca6530622493f5e88307 fetch other tags and check if the commit is present ensuring issue is reproducible on original commit 15e7d45e786a62a211dd0098fee7c57f84f8c681 testing commit 15e7d45e786a62a211dd0098fee7c57f84f8c681 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f7589f5f78f3d9f6e6d38b4cb5c34dfd42e84327a3e7d6bc8d968ab2243b5e0d all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 15e7d45e786a62a211dd0098fee7c57f84f8c681 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e5db77c80261ea66a8485b34163a603c376a63b07809f90df5141642fb75ae2c all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, 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=4045 full=8213 leaves diff=2115 split chunks (needed=false): <2115> split chunk #0 of len 2115 into 5 parts testing without sub-chunk 1/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 15e7d45e786a62a211dd0098fee7c57f84f8c681 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 553fe7390e367ea5256fc28dcd1995da082ece044c2eed8a72ea96736111638c all runs: OK false negative chance: 0.000 testing without sub-chunk 2/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 15e7d45e786a62a211dd0098fee7c57f84f8c681 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 3cf7bf790287922530b434df05bb4c11f319ec6ded19177ac3f6a421f78ab968 all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 15e7d45e786a62a211dd0098fee7c57f84f8c681 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 514e73da87b4c5d67454d85f61c3b25b20c68de2e92ab435ce72edbb596f08b2 all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 15e7d45e786a62a211dd0098fee7c57f84f8c681 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 41387c8c91cfbf0a7e6fc204a204d382d96f780174f3ed35f38cc08b4e000e19 all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 15e7d45e786a62a211dd0098fee7c57f84f8c681 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a8b5f4dbeb45cf76bb2e807267ea6a7df93828478ddb003f767aeae417c6df95 all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, types: [KASAN] the chunk can be dropped minimized to 423 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 AMD_SFH_HID AMIGA_PARTITION ANDROID_BINDERFS ANDROID_BINDER_IPC ANON_VMA_NAME APERTURE_HELPERS APPLE_MFI_FASTCHARGE AR5523 ARCH_ENABLE_MEMORY_HOTREMOVE ARCH_ENABLE_THP_MIGRATION ARCH_HAS_USER_SHADOW_STACK ARCH_SUPPORTS_HUGE_PFNMAP ARCH_SUPPORTS_PMD_PFNMAP ARCH_SUPPORTS_PUD_PFNMAP ARCH_SUPPORTS_RT ARCH_WANT_PMD_MKWRITE ASM_MODVERSIONS ASUS_TF103C_DOCK 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_COMMON_SPECTRAL 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_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_HCIBCM203X BT_HCIBFUSB BT_HCIBPA10X BT_HCIBTUSB BT_HCIBTUSB_AUTOSUSPEND 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_INTEL BT_LE BT_LEDS BT_LE_L2CAP_ECRED BT_MRVL BT_MRVL_SDIO BT_MSFTEXT BT_MTK BT_MTKSDIO BT_MTKUART 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_ESD_USB CAN_ETAS_ES58X CAN_F81604 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_UCAN CAN_VCAN CAN_VXCAN 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_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_MAX 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_842 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_CHACHA20POLY1305 CRYPTO_CHACHA20_X86_64 CRYPTO_CRC32 CRYPTO_CRC32C_INTEL CRYPTO_CRC32_PCLMUL CRYPTO_CRC64_ROCKSOFT CRYPTO_CRCT10DIF CRYPTO_CRCT10DIF_PCLMUL CRYPTO_CRYPTD 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_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_CURVE25519 CRYPTO_LIB_CURVE25519_GENERIC CRYPTO_LIB_POLY1305 CRYPTO_LIB_POLY1305_GENERIC CRYPTO_LRW CRYPTO_LZ4 CRYPTO_LZ4HC 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_AVX_X86_64 CRYPTO_SM4_AESNI_AVX2_X86_64 CRYPTO_SM4_AESNI_AVX_X86_64 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_XCTR CRYPTO_XXHASH CRYPTO_ZSTD CUSE CYPRESS_FIRMWARE DAMON DAMON_PADDR DAMON_RECLAIM DAMON_VADDR DAX DCA DCB DEFAULT_CODEL 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_AUX_BRIDGE DRM_BOCHS DRM_BRIDGE DRM_BUDDY DRM_CIRRUS_QEMU DRM_CLIENT_SELECTION DRM_CLIENT_SETUP DRM_DEBUG_MM DRM_DISPLAY_DP_AUX_BUS DRM_DISPLAY_DP_HELPER DRM_DISPLAY_DSC_HELPER DRM_DISPLAY_HDCP_HELPER DRM_DISPLAY_HDMI_HELPER DRM_DISPLAY_HELPER DRM_FBDEV_EMULATION DRM_GEM_SHMEM_HELPER DRM_GM12U320 DRM_GUD DRM_I915 DRM_I915_CAPTURE_ERROR DRM_I915_COMPRESS_ERROR DRM_I915_USERPTR DRM_KMS_HELPER DRM_MIPI_DSI DRM_PANEL DRM_PANEL_BRIDGE DRM_PANEL_EDP ENCRYPTED_KEYS FSCACHE FUSE_FS GPIOLIB HAMRADIO HID_DRAGONRISE IIO INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_RTRS_CLIENT IOSCHED_BFQ LIBNVDIMM MAC80211 MAC80211_DEBUGFS MAC80211_LEDS MEDIA_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_DLN2 MMC MTD NET_CLS_U32 NET_SCH_DEFAULT PARTITION_ADVANCED RFKILL SERIAL_DEV_BUS TLS TLS_DEVICE TRANSPARENT_HUGEPAGE TRUSTED_KEYS USB_GADGET USB_PHY VLAN_8021Q WANT_COMPAT_NETLINK_MESSAGES WEXT_CORE WIRELESS WIRELESS_EXT WLAN WLAN_VENDOR_ATH X86_X32_ABI ZONE_DEVICE] disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed picked [v6.11 v6.10 v6.9 v6.7 v6.5 v6.3 v6.1 v5.19 v5.16 v5.13 v5.10 v5.7 v5.4 v5.1 v4.19] out of 34 release tags testing release v6.11 testing commit 98f7e32f20d28ec452afb208f9cffc08448a2652 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 04069cce5b858c4a9a8765745bc19319e338ab96dca359b4ddf038a0043ce30c all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, types: [KASAN] testing release v6.10 testing commit 0c3836482481200ead7b416ca80c68a29cfdaabd gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 034b2f7816d33f26dce702d3dc508b30013eba8dcf13b9483295978cb8607a5f all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, types: [KASAN] 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: aef8ece795bea90cbc58056fa33197b529b80c660bad18d7a2da56c238ac7492 all runs: crashed: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc representative crash: KASAN: slab-use-after-free Read in bch2_reconstruct_alloc, types: [KASAN] 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: 0b295b59dd322aa6afb9762b2b3e93dbcf82af2e62624e72a8b9b6502aef2639 all runs: crashed: KASAN: slab-use-after-free Read in bch2_fs_recovery representative crash: KASAN: slab-use-after-free Read in bch2_fs_recovery, types: [KASAN] 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: 901b417adfe572bdfd4095ccdb04ab54b8e94463a67e8c80328e62d3a100fecf all runs: OK false negative chance: 0.000 # git bisect start 0dd3ee31125508cd67f7e7172247f05b7fd1753a 2dde18cd1d8fac735875f2e4987f11817cc0bc2c Bisecting: 16833 revisions left to test after this (roughly 14 steps) [ec4c20ca09831ddba8fac10a7d82a9902e96e717] Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit ec4c20ca09831ddba8fac10a7d82a9902e96e717 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5823fc5f97c379b3fea48b001a1a09e543404e4a7a59bdfd439ea487a35fd8c5 all runs: OK false negative chance: 0.000 # git bisect good ec4c20ca09831ddba8fac10a7d82a9902e96e717 Bisecting: 8387 revisions left to test after this (roughly 13 steps) [385903a7ec75bb400f4bf0f07d8d5ad61390270d] Merge tag 'soc-drivers-6.7' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit 385903a7ec75bb400f4bf0f07d8d5ad61390270d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ccb4e44f92287f41dbdc0a9fe78e5e5151f63a5e305f794063d595d312f486a1 all runs: OK false negative chance: 0.000 # git bisect good 385903a7ec75bb400f4bf0f07d8d5ad61390270d Bisecting: 4196 revisions left to test after this (roughly 12 steps) [895bf1d82656ae938fb19d6c439c98f23abc413a] pinctrl: starfive: jh7110: drop wrappers around pinctrl_gpio_request/free() testing commit 895bf1d82656ae938fb19d6c439c98f23abc413a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6278e2c8e645a6c2d80162a04518937435d433768153b94263fc9fe59f51b18e all runs: OK false negative chance: 0.000 # git bisect good 895bf1d82656ae938fb19d6c439c98f23abc413a Bisecting: 2075 revisions left to test after this (roughly 11 steps) [7475e51b87969e01a6812eac713a1c8310372e8a] Merge tag 'net-6.7-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net testing commit 7475e51b87969e01a6812eac713a1c8310372e8a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ca3725071fbe786872e95e45f78ff7870c55a58f0ed781219725baa34dfba99c all runs: OK false negative chance: 0.000 # git bisect good 7475e51b87969e01a6812eac713a1c8310372e8a Bisecting: 1036 revisions left to test after this (roughly 10 steps) [a6adef898741eb07526aaf9d8b982d3dff4a9e67] Merge tag 'soc-fixes-6.7-1' of git://git.kernel.org/pub/scm/linux/kernel/git/soc/soc testing commit a6adef898741eb07526aaf9d8b982d3dff4a9e67 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9aa5cc732905a7658ac7391c01adc8334819925e123bb9f099c903665a7085a2 all runs: OK false negative chance: 0.000 # git bisect good a6adef898741eb07526aaf9d8b982d3dff4a9e67 Bisecting: 519 revisions left to test after this (roughly 9 steps) [d4b6e7f582e29acac17bcaf7f7771138d72f89d2] Merge tag 'drm-intel-fixes-2023-12-21' of git://anongit.freedesktop.org/drm/drm-intel into drm-fixes testing commit d4b6e7f582e29acac17bcaf7f7771138d72f89d2 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 772f4e034a7922f272a6d12a11fc8ca22a27a527bda77c50f27043e5daaf034f all runs: OK false negative chance: 0.000 # git bisect good d4b6e7f582e29acac17bcaf7f7771138d72f89d2 Bisecting: 253 revisions left to test after this (roughly 8 steps) [a0652eb205b7ac13429d63bcc42806115d393632] Merge tag 'char-misc-6.7-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc testing commit a0652eb205b7ac13429d63bcc42806115d393632 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 608ce1023d0373f7018abff5b30c5519dacf4ea2a7558a309693c3fac277f2a3 all runs: OK false negative chance: 0.000 # git bisect good a0652eb205b7ac13429d63bcc42806115d393632 Bisecting: 124 revisions left to test after this (roughly 7 steps) [08bd31ece082051f5369324ae99983f4e3f9b84e] Merge tag 'sound-6.7-final' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound testing commit 08bd31ece082051f5369324ae99983f4e3f9b84e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: da3d6170d069d68e9366c8b9a7425eb4c7241f3a55826dff629c95e8150ea4dc all runs: crashed: KASAN: slab-use-after-free Read in bch2_fs_recovery representative crash: KASAN: slab-use-after-free Read in bch2_fs_recovery, types: [KASAN] # git bisect bad 08bd31ece082051f5369324ae99983f4e3f9b84e Bisecting: 63 revisions left to test after this (roughly 6 steps) [f016f7547aeedefed9450499d002ba983b8fce15] Merge tag 'gpio-fixes-for-v6.7-rc8' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux testing commit f016f7547aeedefed9450499d002ba983b8fce15 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 26c4505b225a027ab125fbc28cd1bd24f09a1c74d50c9f0cd416f2984549d4bf all runs: OK false negative chance: 0.000 # git bisect good f016f7547aeedefed9450499d002ba983b8fce15 Bisecting: 31 revisions left to test after this (roughly 5 steps) [d7807d8544e56af9b5523f15eddac09ec0291b4e] Merge tag 'apparmor-pr-2024-01-03' of git://git.kernel.org/pub/scm/linux/kernel/git/jj/linux-apparmor testing commit d7807d8544e56af9b5523f15eddac09ec0291b4e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b4aaf29ec827a560f581ed71fb8aad892094c7963ccfbb389a8e68cae26f040e all runs: crashed: KASAN: slab-use-after-free Read in bch2_fs_recovery representative crash: KASAN: slab-use-after-free Read in bch2_fs_recovery, types: [KASAN] # git bisect bad d7807d8544e56af9b5523f15eddac09ec0291b4e Bisecting: 15 revisions left to test after this (roughly 4 steps) [6b49b0f7e73817265f80c565037ac812df6f1ae3] bcachefs: move BCH_SB_ERRS() to sb-errors_types.h testing commit 6b49b0f7e73817265f80c565037ac812df6f1ae3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 151c2f120dfb01286f121a7f04899fb6101b74db58b27d530d6bacb1ec6bed66 all runs: OK false negative chance: 0.000 # git bisect good 6b49b0f7e73817265f80c565037ac812df6f1ae3 Bisecting: 6 revisions left to test after this (roughly 3 steps) [981d04137a4b5ea95133572bdb3d888c9b515850] Merge tag 'bcachefs-2024-01-01' of https://evilpiepirate.org/git/bcachefs testing commit 981d04137a4b5ea95133572bdb3d888c9b515850 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 84ee6c3735b608e7c647c8ca2ec90c7ecbe3aabdbfbfbf212e05438d9690a5cd all runs: crashed: KASAN: slab-use-after-free Read in bch2_fs_recovery representative crash: KASAN: slab-use-after-free Read in bch2_fs_recovery, types: [KASAN] # git bisect bad 981d04137a4b5ea95133572bdb3d888c9b515850 Bisecting: 4 revisions left to test after this (roughly 2 steps) [84f1638795da1ff2084597de4251e9054f1ad728] bcachefs: bch_sb_field_downgrade testing commit 84f1638795da1ff2084597de4251e9054f1ad728 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6aa010549efa7a39f5c83b1581b3078252f37aba5552c536a140b71d2a14baa2 all runs: crashed: KASAN: slab-use-after-free Read in bch2_fs_recovery representative crash: KASAN: slab-use-after-free Read in bch2_fs_recovery, types: [KASAN] # git bisect bad 84f1638795da1ff2084597de4251e9054f1ad728 Bisecting: 1 revision left to test after this (roughly 1 step) [808c680f2a256188951805f05c907d40919db37a] bcachefs: Add persistent identifiers for recovery passes testing commit 808c680f2a256188951805f05c907d40919db37a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8cc29dc305e8b2b8d7276dbfc707aa524afec2b36f5c8221dab5824a7ca4c4d1 all runs: OK false negative chance: 0.000 # git bisect good 808c680f2a256188951805f05c907d40919db37a Bisecting: 0 revisions left to test after this (roughly 0 steps) [8b16413cda7c46d47f8071165b3071f8a9369199] bcachefs: bch_sb.recovery_passes_required testing commit 8b16413cda7c46d47f8071165b3071f8a9369199 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a58b8168d88554cb9cf2bbdd80430ee0b4ea117051f2300dcefd6bd67c879aaa all runs: OK false negative chance: 0.000 # git bisect good 8b16413cda7c46d47f8071165b3071f8a9369199 84f1638795da1ff2084597de4251e9054f1ad728 is the first bad commit commit 84f1638795da1ff2084597de4251e9054f1ad728 Author: Kent Overstreet Date: Fri Dec 29 15:25:07 2023 -0500 bcachefs: bch_sb_field_downgrade Add a new superblock section that contains a list of { minor version, recovery passes, errors_to_fix } that is - a list of recovery passes that must be run when downgrading past a given version, and a list of errors to silently fix. The upcoming disk accounting rewrite is not going to be fully compatible: we're going to have to regenerate accounting both when upgrading to the new version, and also from downgrading from the new version, since the new method of doing disk space accounting is a completely different architecture based on deltas, and synchronizing them for every jounal entry write to maintain compatibility is going to be too expensive and impractical. Signed-off-by: Kent Overstreet fs/bcachefs/Makefile | 1 + fs/bcachefs/bcachefs_format.h | 20 ++++- fs/bcachefs/errcode.h | 2 + fs/bcachefs/recovery.c | 24 +++++- fs/bcachefs/sb-clean.c | 2 - fs/bcachefs/sb-downgrade.c | 188 ++++++++++++++++++++++++++++++++++++++++++ fs/bcachefs/sb-downgrade.h | 10 +++ fs/bcachefs/sb-errors.c | 4 +- fs/bcachefs/super-io.c | 11 ++- fs/bcachefs/super-io.h | 2 +- 10 files changed, 255 insertions(+), 9 deletions(-) create mode 100644 fs/bcachefs/sb-downgrade.c create mode 100644 fs/bcachefs/sb-downgrade.h accumulated error probability: 0.00 culprit signature: 6aa010549efa7a39f5c83b1581b3078252f37aba5552c536a140b71d2a14baa2 parent signature: a58b8168d88554cb9cf2bbdd80430ee0b4ea117051f2300dcefd6bd67c879aaa revisions tested: 27, total time: 9h18m14.589740509s (build: 5h31m23.063820288s, test: 3h28m41.813370728s) first bad commit: 84f1638795da1ff2084597de4251e9054f1ad728 bcachefs: bch_sb_field_downgrade recipients (to): ["kent.overstreet@linux.dev" "linux-kernel@vger.kernel.org"] recipients (cc): [] crash: KASAN: slab-use-after-free Read in bch2_fs_recovery loop0: detected capacity change from 0 to 32768 bcachefs (loop0): mounting version 1.7: (unknown version) opts=metadata_checksum=none,data_checksum=xxhash,str_hash=crc32c,nojournal_transaction_names,reconstruct_alloc,version_upgrade=none bcachefs (loop0): recovering from clean shutdown, journal seq 8 bcachefs (loop0): Version downgrade required: ================================================================== BUG: KASAN: slab-use-after-free in bch2_fs_recovery+0xab5/0x4d80 fs/bcachefs/recovery.c:775 Read of size 8 at addr ffff888172f38f50 by task syz.0.15/3311 CPU: 1 PID: 3311 Comm: syz.0.15 Not tainted 6.7.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 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:364 [inline] print_report+0x167/0x540 mm/kasan/report.c:475 kasan_report+0x142/0x180 mm/kasan/report.c:588 bch2_fs_recovery+0xab5/0x4d80 fs/bcachefs/recovery.c:775 bch2_fs_start+0x5f1/0x7c0 fs/bcachefs/super.c:978 bch2_fs_open+0x1f18/0x2b10 fs/bcachefs/super.c:1968 bch2_mount+0x561/0x1080 fs/bcachefs/fs.c:1835 legacy_get_tree+0xe9/0x180 fs/fs_context.c:662 vfs_get_tree+0x82/0x190 fs/super.c:1771 do_new_mount+0x1e5/0x930 fs/namespace.c:3337 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x242/0x2e0 fs/namespace.c:3863 do_syscall_64+0x4d/0x120 entry_SYSCALL_64_after_hwframe+0x6f/0x77 RIP: 0033:0x7f0109d7f79a Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 1a 00 00 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 49 89 ca b8 a5 00 00 00 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:00007f010ac4ce68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007f010ac4cef0 RCX: 00007f0109d7f79a RDX: 0000000020005b00 RSI: 0000000020005b40 RDI: 00007f010ac4ceb0 RBP: 0000000020005b00 R08: 00007f010ac4cef0 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000020005b40 R13: 00007f010ac4ceb0 R14: 0000000000005b2d R15: 00000000200003c0 Allocated by task 3311: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x80 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kasan_kmalloc include/linux/kasan.h:198 [inline] __do_kmalloc_node mm/slab_common.c:1007 [inline] __kmalloc_node_track_caller+0xab/0x1d0 mm/slab_common.c:1027 __do_krealloc mm/slab_common.c:1395 [inline] krealloc+0x7d/0x120 mm/slab_common.c:1428 bch2_sb_realloc+0x1bd/0x370 fs/bcachefs/super-io.c:207 __copy_super+0x4fc/0xd20 fs/bcachefs/super-io.c:591 bch2_sb_to_fs+0x66/0xc0 fs/bcachefs/super-io.c:618 bch2_fs_alloc fs/bcachefs/super.c:778 [inline] bch2_fs_open+0x12bd/0x2b10 fs/bcachefs/super.c:1947 bch2_mount+0x561/0x1080 fs/bcachefs/fs.c:1835 legacy_get_tree+0xe9/0x180 fs/fs_context.c:662 vfs_get_tree+0x82/0x190 fs/super.c:1771 do_new_mount+0x1e5/0x930 fs/namespace.c:3337 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x242/0x2e0 fs/namespace.c:3863 do_syscall_64+0x4d/0x120 entry_SYSCALL_64_after_hwframe+0x6f/0x77 Freed by task 3311: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x80 mm/kasan/common.c:52 kasan_save_free_info+0x28/0x40 mm/kasan/generic.c:522 ____kasan_slab_free+0x122/0x1f0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook mm/slub.c:1826 [inline] slab_free mm/slub.c:3809 [inline] __kmem_cache_free+0x2bc/0x470 mm/slub.c:3822 krealloc+0xcf/0x120 bch2_sb_realloc+0x1bd/0x370 fs/bcachefs/super-io.c:207 bch2_sb_field_resize_id+0x17e/0xbc0 fs/bcachefs/super-io.c:239 bch2_sb_counters_from_cpu+0x89/0x240 fs/bcachefs/counters.c:75 bch2_write_super+0x824/0x2bf0 fs/bcachefs/super-io.c:939 bch2_fs_recovery+0xaa1/0x4d80 fs/bcachefs/recovery.c:773 bch2_fs_start+0x5f1/0x7c0 fs/bcachefs/super.c:978 bch2_fs_open+0x1f18/0x2b10 fs/bcachefs/super.c:1968 bch2_mount+0x561/0x1080 fs/bcachefs/fs.c:1835 legacy_get_tree+0xe9/0x180 fs/fs_context.c:662 vfs_get_tree+0x82/0x190 fs/super.c:1771 do_new_mount+0x1e5/0x930 fs/namespace.c:3337 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount+0x242/0x2e0 fs/namespace.c:3863 do_syscall_64+0x4d/0x120 entry_SYSCALL_64_after_hwframe+0x6f/0x77 The buggy address belongs to the object at ffff888172f38000 which belongs to the cache kmalloc-4k of size 4096 The buggy address is located 3920 bytes inside of freed 4096-byte region [ffff888172f38000, ffff888172f39000) The buggy address belongs to the physical page: page:ffffea0005cbce00 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x172f38 head:ffffea0005cbce00 order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 anon flags: 0x100000000000840(slab|head|node=0|zone=2) page_type: 0xffffffff() raw: 0100000000000840 ffff888100042140 0000000000000000 dead000000000001 raw: 0000000000000000 0000000000040004 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Unmovable, gfp_mask 0x1d2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 2455, tgid 2455 (kworker/u4:3), ts 60092508914, free_ts 60077080637 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x10f/0x130 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0x3e5f/0x4080 mm/page_alloc.c:3312 __alloc_pages+0x255/0x650 mm/page_alloc.c:4568 alloc_pages_mpol+0x27f/0x4d0 mm/mempolicy.c:2133 alloc_slab_page+0x6a/0x170 mm/slub.c:1870 allocate_slab mm/slub.c:2017 [inline] new_slab+0x70/0x270 mm/slub.c:2070 ___slab_alloc+0x94b/0xee0 mm/slub.c:3223 __slab_alloc mm/slub.c:3322 [inline] __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0x1fb/0x2c0 mm/slub.c:3517 kmalloc_trace+0x2a/0xc0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] tomoyo_environ security/tomoyo/domain.c:633 [inline] tomoyo_find_next_domain+0xd20/0x1700 security/tomoyo/domain.c:878 tomoyo_bprm_check_security+0xfa/0x130 security/tomoyo/tomoyo.c:101 security_bprm_check+0x2a/0x80 security/security.c:1103 search_binary_handler fs/exec.c:1725 [inline] exec_binprm fs/exec.c:1779 [inline] bprm_execve+0x87f/0x13b0 fs/exec.c:1854 kernel_execve+0x543/0x620 fs/exec.c:2022 call_usermodehelper_exec_async+0x203/0x310 kernel/umh.c:110 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:147 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1137 [inline] free_unref_page_prepare+0x7f8/0x910 mm/page_alloc.c:2347 free_unref_page+0x37/0x3a0 mm/page_alloc.c:2487 discard_slab mm/slub.c:2116 [inline] __unfreeze_partials+0x1b1/0x200 mm/slub.c:2655 put_cpu_partial+0x150/0x1b0 mm/slub.c:2731 __slab_free+0x26f/0x330 mm/slub.c:3679 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x75/0xe0 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x14f/0x170 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x23/0x80 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook+0x67/0x3c0 mm/slab.h:763 slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x1b2/0x2c0 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc+0x99/0x1d0 mm/slab_common.c:1020 kmalloc include/linux/slab.h:604 [inline] load_elf_phdrs fs/binfmt_elf.c:526 [inline] load_elf_binary+0x22b/0x2150 fs/binfmt_elf.c:855 search_binary_handler fs/exec.c:1737 [inline] exec_binprm fs/exec.c:1779 [inline] bprm_execve+0x93b/0x13b0 fs/exec.c:1854 kernel_execve+0x543/0x620 fs/exec.c:2022 call_usermodehelper_exec_async+0x203/0x310 kernel/umh.c:110 ret_from_fork+0x32/0x60 arch/x86/kernel/process.c:147 Memory state around the buggy address: ffff888172f38e00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888172f38e80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888172f38f00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888172f38f80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888172f39000: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================