ci2 starts bisection 2024-05-09 18:44:03.708930518 +0000 UTC m=+37396.276655120 bisecting cause commit starting from 45db3ab70092637967967bfd8e6144017638563c building syzkaller on 0507966124891755bd4be06ca0420c8b7e908032 ensuring issue is reproducible on original commit 45db3ab70092637967967bfd8e6144017638563c testing commit 45db3ab70092637967967bfd8e6144017638563c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 204525afe9d5a66159a06148d57490ea4ea784afbee571f4913cd4ec69fea275 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, 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 45db3ab70092637967967bfd8e6144017638563c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 22a2957dd1df27453ab56ee244aa802dfec06d3c99914399c149c3c82be483f9 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, 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=3971 full=8000 leaves diff=2012 split chunks (needed=false): <2012> split chunk #0 of len 2012 into 5 parts testing without sub-chunk 1/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 45db3ab70092637967967bfd8e6144017638563c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0cdf68892a43d660c7a1e50f6f1548ca1a4844f3aca2071b58409c3f8f7df803 all runs: OK false negative chance: 0.000 testing without sub-chunk 2/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 45db3ab70092637967967bfd8e6144017638563c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e882550dee19c47e5304f9a96fcdf2a9cbea2549c3560d893a539da849d65348 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, types: [KASAN] the chunk can be dropped testing without sub-chunk 3/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 45db3ab70092637967967bfd8e6144017638563c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bb4fb04c158f87b29505cf585587962833dacabc24194213c41106c715c947ef all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 45db3ab70092637967967bfd8e6144017638563c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 35d03edb445d7cc849272ffd4c8b7c2657853ead3c4329b0b6e2397e0353be22 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, 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 45db3ab70092637967967bfd8e6144017638563c gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4ec2f2268b9a610cca1d68fb6bd3578a870e2eb027c20090255f5e30b25e7aa0 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, types: [KASAN] the chunk can be dropped minimized to 403 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_CONFIGURES_CPU_MITIGATIONS ARCH_ENABLE_MEMORY_HOTREMOVE ARCH_ENABLE_THP_MIGRATION ARCH_HAS_CPU_PASID ARCH_WANT_PMD_MKWRITE ASM_MODVERSIONS ASYNC_CORE ASYNC_MEMCPY ASYNC_PQ ASYNC_RAID6_RECOV ASYNC_TX_DMA ASYNC_XOR ATARI_PARTITION ATA_GENERIC ATA_OVER_ETH ATH10K ATH10K_CE ATH10K_PCI ATH10K_USB ATH11K ATH6KL ATH6KL_USB ATH9K ATH9K_AHB ATH9K_BTCOEX_SUPPORT ATH9K_CHANNEL_CONTEXT ATH9K_COMMON ATH9K_COMMON_DEBUG ATH9K_DEBUGFS ATH9K_DYNACK ATH9K_HTC ATH9K_HTC_DEBUGFS ATH9K_HW ATH9K_PCI ATH9K_PCOEM ATH9K_RFKILL ATH_COMMON ATM ATM_BR2684 ATM_CLIP ATM_DRIVERS ATM_LANE ATM_MPOA ATM_TCP AUXILIARY_BUS AX25 AX25_DAMA_SLAVE AX88796B_PHY BAREUDP BATMAN_ADV BATMAN_ADV_BATMAN_V BATMAN_ADV_BLA BATMAN_ADV_DAT BATMAN_ADV_MCAST BATMAN_ADV_NC BCACHE BCACHEFS_DEBUG BCACHEFS_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_DEBUG_FS_ZONED BLK_DEV_BSGLIB BLK_DEV_INTEGRITY BLK_DEV_INTEGRITY_T10 BLK_DEV_NBD BLK_DEV_NULL_BLK BLK_DEV_NULL_BLK_FAULT_INJECTION BLK_DEV_NVME BLK_DEV_PMEM BLK_DEV_RAM BLK_DEV_RNBD BLK_DEV_RNBD_CLIENT BLK_DEV_THROTTLING BLK_DEV_ZONED BLK_ICQ BLK_INLINE_ENCRYPTION BLK_INLINE_ENCRYPTION_FALLBACK BLK_WBT BLK_WBT_MQ BONDING BOOT_VESA_SUPPORT BPF_EVENTS BPF_JIT BPF_JIT_ALWAYS_ON BPF_JIT_DEFAULT_ON BPF_LSM BPF_PRELOAD BPF_PRELOAD_UMD BPF_STREAM_PARSER BPF_SYSCALL BPQETHER BRIDGE BRIDGE_CFM BRIDGE_EBT_802_3 BRIDGE_EBT_AMONG BRIDGE_EBT_ARP BRIDGE_EBT_ARPREPLY BRIDGE_EBT_BROUTE BRIDGE_EBT_DNAT BRIDGE_EBT_IP BRIDGE_EBT_IP6 BRIDGE_EBT_LIMIT BRIDGE_EBT_LOG BRIDGE_EBT_MARK BRIDGE_EBT_MARK_T BRIDGE_EBT_NFLOG BRIDGE_EBT_PKTTYPE BRIDGE_EBT_REDIRECT BRIDGE_EBT_SNAT BRIDGE_EBT_STP BRIDGE_EBT_T_FILTER BRIDGE_EBT_T_NAT BRIDGE_EBT_VLAN BRIDGE_IGMP_SNOOPING BRIDGE_MRP BRIDGE_NF_EBTABLES BRIDGE_NF_EBTABLES_LEGACY BRIDGE_VLAN_FILTERING BSD_DISKLABEL BSD_PROCESS_ACCT_V3 BT BTRFS_ASSERT BTRFS_FS BTRFS_FS_POSIX_ACL BTRFS_FS_REF_VERIFY BTT BT_6LOWPAN BT_ATH3K BT_BCM BT_BNEP BT_BNEP_MC_FILTER BT_BNEP_PROTO_FILTER BT_BREDR BT_CMTP BT_HCIBCM203X BT_HCIBFUSB BT_HCIBPA10X BT_HCIBTUSB BT_HCIBTUSB_BCM BT_HCIBTUSB_MTK BT_HCIBTUSB_POLL_SYNC BT_HCIBTUSB_RTL BT_HCIUART BT_HCIUART_3WIRE BT_HCIUART_AG6XX BT_HCIUART_BCSP BT_HCIUART_H4 BT_HCIUART_LL BT_HCIUART_MRVL BT_HCIUART_QCA BT_HCIUART_SERDEV BT_HCIVHCI BT_HIDP BT_INTEL BT_LE BT_LEDS BT_LE_L2CAP_ECRED BT_MRVL BT_MRVL_SDIO BT_MSFTEXT BT_MTK BT_QCA BT_RFCOMM BT_RFCOMM_TTY BT_RTL CACHEFILES CAIF CAIF_DEBUG CAIF_DRIVERS CAIF_NETDEV CAIF_TTY CAIF_USB CAIF_VIRTIO CAN CAN_8DEV_USB CAN_BCM CAN_CALC_BITTIMING CAN_DEV CAN_EMS_USB CAN_GS_USB CAN_GW CAN_IFI_CANFD CAN_ISOTP CAN_J1939 CAN_KVASER_USB CAN_MCBA_USB CAN_NETLINK CAN_PEAK_USB CAN_RAW CAN_RX_OFFLOAD CAN_SLCAN CAN_VCAN CAN_VXCAN CAPI_TRACE CARL9170 CARL9170_HWRNG CARL9170_LEDS CARL9170_WPC CEC_CORE CEPH_FS CEPH_FSCACHE CEPH_FS_POSIX_ACL CEPH_LIB CEPH_LIB_USE_DNS_RESOLVER CFG80211 CFG80211_CRDA_SUPPORT CFG80211_DEBUGFS CFG80211_DEFAULT_PS CFG80211_REQUIRE_SIGNED_REGDB CFG80211_USE_KERNEL_REGDB_KEYS CFG80211_WEXT CFS_BANDWIDTH CGROUP_BPF CHARGER_BQ24190 CHARGER_ISP1704 CHR_DEV_ST CIFS CIFS_ALLOW_INSECURE_LEGACY CIFS_DEBUG CIFS_DFS_UPCALL CIFS_FSCACHE CIFS_POSIX CIFS_SMB_DIRECT CIFS_SWN_UPCALL CIFS_UPCALL CIFS_XATTR CLOSURES CLS_U32_MARK CLS_U32_PERF CMA CMA_SIZE_SEL_MBYTES CMDLINE_PARTITION COMEDI COMEDI_DT9812 COMEDI_NI_USB6501 COMEDI_USBDUX COMEDI_USBDUXFAST COMEDI_USBDUXSIGMA COMEDI_USB_DRIVERS COMEDI_VMK80XX COMPAT_NETLINK_MESSAGES COUNTER CRAMFS CRAMFS_BLOCKDEV CRAMFS_MTD CRC4 CRC64 CRC64_ROCKSOFT CRC7 CRC8 CRC_ITU_T CRC_T10DIF CRYPTO_ADIANTUM CRYPTO_AEGIS128 CRYPTO_AEGIS128_AESNI_SSE2 CRYPTO_AES_NI_INTEL CRYPTO_AES_TI CRYPTO_ANSI_CPRNG CRYPTO_ANUBIS CRYPTO_ARC4 CRYPTO_ARCH_HAVE_LIB_BLAKE2S CRYPTO_ARCH_HAVE_LIB_CHACHA CRYPTO_ARCH_HAVE_LIB_CURVE25519 CRYPTO_ARCH_HAVE_LIB_POLY1305 CRYPTO_ARIA CRYPTO_ARIA_AESNI_AVX_X86_64 CRYPTO_BLAKE2B CRYPTO_BLAKE2S_X86 CRYPTO_BLOWFISH CRYPTO_BLOWFISH_COMMON CRYPTO_BLOWFISH_X86_64 CRYPTO_CAMELLIA CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 CRYPTO_CAMELLIA_AESNI_AVX_X86_64 CRYPTO_CAMELLIA_X86_64 CRYPTO_CAST5 CRYPTO_CAST5_AVX_X86_64 CRYPTO_CAST6 CRYPTO_CAST6_AVX_X86_64 CRYPTO_CAST_COMMON CRYPTO_CHACHA20 CRYPTO_CHACHA20POLY1305 CRYPTO_CHACHA20_X86_64 CRYPTO_CRC32 CRYPTO_CRC32C_INTEL CRYPTO_CRC32_PCLMUL CRYPTO_CRC64_ROCKSOFT CRYPTO_CRCT10DIF CRYPTO_CRCT10DIF_PCLMUL CRYPTO_CRYPTD CRYPTO_CTS CRYPTO_CURVE25519 CRYPTO_CURVE25519_X86 CRYPTO_DEFLATE CRYPTO_DES CRYPTO_DES3_EDE_X86_64 CRYPTO_DEV_CCP CRYPTO_DEV_CCP_DD CRYPTO_DEV_PADLOCK CRYPTO_DEV_PADLOCK_AES CRYPTO_DEV_PADLOCK_SHA CRYPTO_DEV_QAT CRYPTO_DEV_QAT_C3XXX CRYPTO_DEV_QAT_C3XXXVF CRYPTO_DEV_QAT_C62X CRYPTO_DEV_QAT_C62XVF CRYPTO_DEV_QAT_DH895xCC CRYPTO_DEV_QAT_DH895xCCVF CRYPTO_DEV_VIRTIO CRYPTO_DH CRYPTO_DRBG_CTR CRYPTO_DRBG_HASH CRYPTO_ECC CRYPTO_ECDH CRYPTO_ECRDSA CRYPTO_ENGINE CRYPTO_ESSIV CRYPTO_FCRYPT CRYPTO_GHASH_CLMUL_NI_INTEL CRYPTO_HCTR2 CRYPTO_KDF800108_CTR CRYPTO_KEYWRAP CRYPTO_KHAZAD CRYPTO_KPP CRYPTO_LIB_ARC4 CRYPTO_LIB_CHACHA CRYPTO_LIB_CHACHA20POLY1305 CRYPTO_LIB_CHACHA_GENERIC CRYPTO_LIB_CURVE25519 CRYPTO_LIB_CURVE25519_GENERIC CRYPTO_LIB_DES CRYPTO_LIB_POLY1305 CRYPTO_LIB_POLY1305_GENERIC CRYPTO_LRW CRYPTO_MICHAEL_MIC CRYPTO_NHPOLY1305 CRYPTO_NHPOLY1305_AVX2 CRYPTO_NHPOLY1305_SSE2 CRYPTO_PCBC CRYPTO_PCRYPT CRYPTO_POLY1305 CRYPTO_POLY1305_X86_64 CRYPTO_POLYVAL CRYPTO_POLYVAL_CLMUL_NI CRYPTO_RMD160 CRYPTO_SEED CRYPTO_SERPENT CRYPTO_SERPENT_AVX2_X86_64 CRYPTO_SERPENT_AVX_X86_64 CRYPTO_SERPENT_SSE2_X86_64 CRYPTO_SHA1_SSSE3 CRYPTO_SHA256_SSSE3 CRYPTO_SHA512_SSSE3 CRYPTO_SIMD CRYPTO_SM2 CRYPTO_SM3 CRYPTO_SM3_AVX_X86_64 CRYPTO_SM4 CRYPTO_SM4_AESNI_AVX2_X86_64 CRYPTO_SM4_AESNI_AVX_X86_64 CRYPTO_SM4_GENERIC CRYPTO_STREEBOG CRYPTO_TEA CRYPTO_TWOFISH CRYPTO_TWOFISH_AVX_X86_64 CRYPTO_TWOFISH_COMMON CRYPTO_TWOFISH_X86_64 CRYPTO_TWOFISH_X86_64_3WAY CRYPTO_USER CRYPTO_USER_API CRYPTO_USER_API_AEAD CRYPTO_USER_API_ENABLE_OBSOLETE CRYPTO_USER_API_HASH CRYPTO_USER_API_RNG CRYPTO_USER_API_SKCIPHER CRYPTO_VMAC CRYPTO_WP512 CRYPTO_XCBC CRYPTO_XCTR CRYPTO_XTS CRYPTO_XXHASH CUSE CYPRESS_FIRMWARE DAMON DAMON_PADDR DAMON_RECLAIM DAMON_VADDR DAX DCA DCB DEFAULT_PFIFO_FAST DEVICE_MIGRATION DEVICE_PRIVATE DEV_COREDUMP DEV_DAX DLN2_ADC DMABUF_HEAPS DMABUF_HEAPS_CMA DMABUF_HEAPS_SYSTEM DMABUF_MOVE_NOTIFY DMA_CMA DMA_ENGINE_RAID DM_AUDIT DM_BIO_PRISON DM_BUFIO DM_CACHE DM_CACHE_SMQ DM_CLONE DM_CRYPT DM_FLAKEY DM_INTEGRITY DM_MULTIPATH DM_MULTIPATH_QL DM_MULTIPATH_ST DM_PERSISTENT_DATA DM_RAID DM_SNAPSHOT DM_THIN_PROVISIONING DM_UEVENT DM_VERITY DM_VERITY_FEC DM_WRITECACHE DM_ZONED DRAGONRISE_FF DRM DRM_BOCHS 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 BUG LOCKDEP], they are not needed picked [v6.8 v6.7 v6.6 v6.4 v6.2 v6.0 v5.18 v5.16 v5.13 v5.10 v5.7 v5.4 v5.1 v4.19] out of 31 release tags 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: c65e98077e99ce4e527ba5587797ba438188aa6c77dd167e121c625ec3f0838d all runs: OK false negative chance: 0.000 # git bisect start 45db3ab70092637967967bfd8e6144017638563c e8f897f4afef0031fe618a8e94127a0934896aba Bisecting: 7457 revisions left to test after this (roughly 13 steps) [480e035fc4c714fb5536e64ab9db04fedc89e910] Merge tag 'drm-next-2024-03-13' of https://gitlab.freedesktop.org/drm/kernel testing commit 480e035fc4c714fb5536e64ab9db04fedc89e910 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8d4247fb760fe924792b934405e56636b31e8b443928cc78c196b0d74904f101 all runs: OK false negative chance: 0.000 # git bisect good 480e035fc4c714fb5536e64ab9db04fedc89e910 Bisecting: 3732 revisions left to test after this (roughly 12 steps) [ebc9bee8814d12ec247de117aa2f7fd39ff11127] Merge tag 'cocci-6.9-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jlawall/linux testing commit ebc9bee8814d12ec247de117aa2f7fd39ff11127 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7dada6a83ea22e667a2edab7e230f5fd10d9782a3d3116dfdad286613094abcb all runs: OK false negative chance: 0.000 # git bisect good ebc9bee8814d12ec247de117aa2f7fd39ff11127 Bisecting: 1866 revisions left to test after this (roughly 11 steps) [b3c7fd35c03c17a950737fb56a06b730a7962d28] bcachefs: On emergency shutdown, print out current journal sequence number testing commit b3c7fd35c03c17a950737fb56a06b730a7962d28 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e657c5a0f4223fa7f5868039589d34938945733865fb43403acaa2f4c45f156e all runs: OK false negative chance: 0.000 # git bisect good b3c7fd35c03c17a950737fb56a06b730a7962d28 Bisecting: 933 revisions left to test after this (roughly 10 steps) [54c23548e0f5609f55b353bcd3c1aa295852f383] Merge tag 'mm-hotfixes-stable-2024-04-18-14-41' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm testing commit 54c23548e0f5609f55b353bcd3c1aa295852f383 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8f2fa76d8f76a6ca71498fb7e8c2769d66780eb000b11e10d9fb890deed1fbe0 all runs: OK false negative chance: 0.000 # git bisect good 54c23548e0f5609f55b353bcd3c1aa295852f383 Bisecting: 494 revisions left to test after this (roughly 9 steps) [e6ebf01172185d74237193ca7bb6bdfc39f3eaeb] Merge tag 'mm-hotfixes-stable-2024-04-26-13-30' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm testing commit e6ebf01172185d74237193ca7bb6bdfc39f3eaeb gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4b11e619e2b0af2809c4f160c4c41a03be5a6b387057c569b270c1211abe1c60 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, types: [KASAN] # git bisect bad e6ebf01172185d74237193ca7bb6bdfc39f3eaeb Bisecting: 217 revisions left to test after this (roughly 8 steps) [86ab9985214d9918113d6387bd0640e6166e68d1] Merge tag 'drm-misc-fixes-2024-04-25' of https://gitlab.freedesktop.org/drm/misc/kernel into drm-fixes testing commit 86ab9985214d9918113d6387bd0640e6166e68d1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fe7b777adf47e84601b6e98102c7b55571a0337cad1024c901474c3cc1cb86ea all runs: OK false negative chance: 0.000 # git bisect good 86ab9985214d9918113d6387bd0640e6166e68d1 Bisecting: 121 revisions left to test after this (roughly 7 steps) [e8baa63f8789d34b5c2e61f36ab60d693b65b1dc] Merge tag 'nf-24-04-25' of git://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf testing commit e8baa63f8789d34b5c2e61f36ab60d693b65b1dc gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9a88eae2b0e314da79531410116775ce69fad70051ef72483cd5827835b40750 all runs: OK false negative chance: 0.000 # git bisect good e8baa63f8789d34b5c2e61f36ab60d693b65b1dc Bisecting: 60 revisions left to test after this (roughly 6 steps) [dda89e2fbc5b7702296356b4a20a5cb66c70e426] Merge tag '9p-for-6.9-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/ericvh/v9fs testing commit dda89e2fbc5b7702296356b4a20a5cb66c70e426 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5723934a51a8c24480f9e4638263943b94c76c56eb22e0bad5a37a9e9445026d all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, types: [KASAN] # git bisect bad dda89e2fbc5b7702296356b4a20a5cb66c70e426 Bisecting: 29 revisions left to test after this (roughly 5 steps) [71b1543c83d65af8215d7558d70fc2ecbee77dcf] Merge tag '6.9-rc5-ksmbd-fixes' of git://git.samba.org/ksmbd testing commit 71b1543c83d65af8215d7558d70fc2ecbee77dcf gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9fcd2bf622178bf3bf6991e080b170ec74d434f5417c97c46aa50db8bed31448 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, types: [KASAN] # git bisect bad 71b1543c83d65af8215d7558d70fc2ecbee77dcf Bisecting: 15 revisions left to test after this (roughly 4 steps) [e858beeddfa3a400844c0e22d2118b3b52f1ea5e] bcachefs: If we run merges at a lower watermark, they must be nonblocking testing commit e858beeddfa3a400844c0e22d2118b3b52f1ea5e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ab02b5f2a6fdfb7c8d37ca8a8b53cbd3ad00371dd482e43e59cd0ef7cb6b3751 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, types: [KASAN] # git bisect bad e858beeddfa3a400844c0e22d2118b3b52f1ea5e Bisecting: 7 revisions left to test after this (roughly 3 steps) [719aec84b106ba3bd3639eddb2be46c510ef683a] bcachefs: fix leak in bch2_gc_write_reflink_key testing commit 719aec84b106ba3bd3639eddb2be46c510ef683a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f1b47cfadb07bc48c3853738bf6dbe3bbaa1a67cc1093fa3f9cfedf458e29443 all runs: OK false negative chance: 0.000 # git bisect good 719aec84b106ba3bd3639eddb2be46c510ef683a Bisecting: 3 revisions left to test after this (roughly 2 steps) [6e4d9bd110e293513c3c2a3ff2dfa0a0735699e0] bcachefs: bkey_cached.btree_trans_barrier_seq needs to be a ulong testing commit 6e4d9bd110e293513c3c2a3ff2dfa0a0735699e0 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f412426e427920233853e98721caf4f827a0f7c5cf99b081028be76e32c462b6 all runs: OK false negative chance: 0.000 # git bisect good 6e4d9bd110e293513c3c2a3ff2dfa0a0735699e0 Bisecting: 1 revision left to test after this (roughly 1 step) [85ab365f7cdf2b2a713823a93e7e5e94f0529627] bcachefs: Fix deadlock in journal write path testing commit 85ab365f7cdf2b2a713823a93e7e5e94f0529627 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 93e8a52074b41a5d16ed8bd1859a11ea7c24bb8a31474ca5e741aec4ea33e29a all runs: OK false negative chance: 0.000 # git bisect good 85ab365f7cdf2b2a713823a93e7e5e94f0529627 Bisecting: 0 revisions left to test after this (roughly 0 steps) [0e42f381193d7f9b47922f1c4308e7729a45ba13] bcachefs: Fix inode early destruction path testing commit 0e42f381193d7f9b47922f1c4308e7729a45ba13 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 739294ebeccdd7c2318e0153538d8ac7f0f79c5f4819a2dce3821e7979e2f244 all runs: crashed: KASAN: slab-use-after-free Read in evict_inodes representative crash: KASAN: slab-use-after-free Read in evict_inodes, types: [KASAN] # git bisect bad 0e42f381193d7f9b47922f1c4308e7729a45ba13 0e42f381193d7f9b47922f1c4308e7729a45ba13 is the first bad commit commit 0e42f381193d7f9b47922f1c4308e7729a45ba13 Author: Kent Overstreet Date: Sat Apr 20 22:26:47 2024 -0400 bcachefs: Fix inode early destruction path discard_new_inode() is the wrong interface to use when we need to free an inode that was never inserted into the inode hash table; we can bypass the whole iput() -> evict() path and replace it with __destroy_inode(); kmem_cache_free() - this fixes a WARN_ON() about I_NEW. Signed-off-by: Kent Overstreet fs/bcachefs/fs.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) accumulated error probability: 0.00 culprit signature: 739294ebeccdd7c2318e0153538d8ac7f0f79c5f4819a2dce3821e7979e2f244 parent signature: 93e8a52074b41a5d16ed8bd1859a11ea7c24bb8a31474ca5e741aec4ea33e29a revisions tested: 22, total time: 5h45m28.294642643s (build: 2h25m28.079721484s, test: 3h11m16.386392932s) first bad commit: 0e42f381193d7f9b47922f1c4308e7729a45ba13 bcachefs: Fix inode early destruction path recipients (to): ["kent.overstreet@linux.dev"] recipients (cc): [] crash: KASAN: slab-use-after-free Read in evict_inodes ================================================================== BUG: KASAN: slab-use-after-free in evict_inodes+0x136/0x590 Read of size 8 at addr ffff88816ca5cae8 by task syz-executor.0/1973 CPU: 1 PID: 1973 Comm: syz-executor.0 Not tainted 6.9.0-rc2-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x108/0x280 lib/dump_stack.c:114 print_address_description mm/kasan/report.c:377 [inline] print_report+0x169/0x550 mm/kasan/report.c:488 kasan_report+0x143/0x180 mm/kasan/report.c:601 evict_inodes+0x136/0x590 generic_shutdown_super+0x96/0x260 fs/super.c:626 bch2_kill_sb+0x3c/0x50 fs/bcachefs/fs.c:2012 deactivate_locked_super+0x9f/0x3a0 fs/super.c:472 cleanup_mnt+0x2a6/0x320 fs/namespace.c:1267 task_work_run+0x20f/0x290 kernel/task_work.c:180 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] exit_to_user_mode_loop kernel/entry/common.c:114 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0xb5/0x1c0 kernel/entry/common.c:218 do_syscall_64+0xa4/0x1b0 arch/x86/entry/common.c:89 entry_SYSCALL_64_after_hwframe+0x72/0x7a RIP: 0033:0x7fdd8227f097 Code: b0 ff ff ff f7 d8 64 89 01 48 83 c8 ff c3 0f 1f 44 00 00 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 b0 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffdf24f8448 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fdd8227f097 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffdf24f8500 RBP: 00007ffdf24f8500 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffdf24f95c0 R13: 00007fdd822c9336 R14: 000000000000f579 R15: 0000000000000003 Allocated by task 2647: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 unpoison_slab_object mm/kasan/common.c:312 [inline] __kasan_slab_alloc+0x66/0x80 mm/kasan/common.c:338 kasan_slab_alloc include/linux/kasan.h:201 [inline] slab_post_alloc_hook mm/slub.c:3798 [inline] slab_alloc_node mm/slub.c:3845 [inline] kmem_cache_alloc+0x15f/0x390 mm/slub.c:3852 bch2_alloc_inode+0x1a/0x110 fs/bcachefs/fs.c:1494 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5b/0x190 fs/inode.c:1007 new_inode+0x17/0x1b0 fs/inode.c:1033 bch2_new_inode+0x9f/0x180 fs/bcachefs/fs.c:224 bch2_lookup_trans fs/bcachefs/fs.c:408 [inline] bch2_lookup+0xad0/0x10c0 fs/bcachefs/fs.c:437 lookup_open fs/namei.c:3475 [inline] open_last_lookups fs/namei.c:3566 [inline] path_openat+0xd15/0x27f0 fs/namei.c:3796 do_filp_open+0x22b/0x440 fs/namei.c:3826 do_sys_openat2+0xf6/0x180 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_openat fs/open.c:1437 [inline] __se_sys_openat fs/open.c:1432 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1432 do_syscall_64+0x95/0x1b0 entry_SYSCALL_64_after_hwframe+0x72/0x7a Freed by task 2647: kasan_save_stack mm/kasan/common.c:47 [inline] kasan_save_track+0x3f/0x80 mm/kasan/common.c:68 kasan_save_free_info+0x40/0x50 mm/kasan/generic.c:579 poison_slab_object+0xee/0x1a0 mm/kasan/common.c:240 __kasan_slab_free+0x37/0x60 mm/kasan/common.c:256 kasan_slab_free include/linux/kasan.h:184 [inline] slab_free_hook mm/slub.c:2106 [inline] slab_free mm/slub.c:4280 [inline] kmem_cache_free+0x136/0x330 mm/slub.c:4344 bch2_inode_insert+0x328/0x380 fs/bcachefs/fs.c:192 bch2_lookup_trans fs/bcachefs/fs.c:420 [inline] bch2_lookup+0xb56/0x10c0 fs/bcachefs/fs.c:437 lookup_open fs/namei.c:3475 [inline] open_last_lookups fs/namei.c:3566 [inline] path_openat+0xd15/0x27f0 fs/namei.c:3796 do_filp_open+0x22b/0x440 fs/namei.c:3826 do_sys_openat2+0xf6/0x180 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_openat fs/open.c:1437 [inline] __se_sys_openat fs/open.c:1432 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1432 do_syscall_64+0x95/0x1b0 entry_SYSCALL_64_after_hwframe+0x72/0x7a The buggy address belongs to the object at ffff88816ca5c920 which belongs to the cache bch_inode_info of size 1744 The buggy address is located 456 bytes inside of freed 1744-byte region [ffff88816ca5c920, ffff88816ca5cff0) The buggy address belongs to the physical page: page: refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16ca58 head: order:3 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0x100000000000840(slab|head|node=0|zone=2) page_type: 0xffffffff() raw: 0100000000000840 ffff88810c6ba780 dead000000000122 0000000000000000 raw: 0000000000000000 0000000080110011 00000001ffffffff 0000000000000000 head: 0100000000000840 ffff88810c6ba780 dead000000000122 0000000000000000 head: 0000000000000000 0000000080110011 00000001ffffffff 0000000000000000 head: 0100000000000003 ffffea0005b29601 dead000000000122 00000000ffffffff head: 0000000800000000 0000000000000000 00000000ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 3, migratetype Reclaimable, gfp_mask 0x1d2050(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL|__GFP_RECLAIMABLE), pid 2583, tgid 2582 (syz-executor.0), ts 60512985357, free_ts 30311191201 set_page_owner include/linux/page_owner.h:32 [inline] post_alloc_hook+0x10f/0x130 mm/page_alloc.c:1534 prep_new_page mm/page_alloc.c:1541 [inline] get_page_from_freelist+0x3e5f/0x4080 mm/page_alloc.c:3317 __alloc_pages+0x256/0x670 mm/page_alloc.c:4575 __alloc_pages_node include/linux/gfp.h:238 [inline] alloc_pages_node include/linux/gfp.h:261 [inline] alloc_slab_page+0x5f/0x160 mm/slub.c:2175 allocate_slab mm/slub.c:2338 [inline] new_slab+0x70/0x270 mm/slub.c:2391 ___slab_alloc+0xb0d/0x1040 mm/slub.c:3525 __slab_alloc mm/slub.c:3610 [inline] __slab_alloc_node mm/slub.c:3663 [inline] slab_alloc_node mm/slub.c:3835 [inline] kmem_cache_alloc+0x23a/0x390 mm/slub.c:3852 bch2_alloc_inode+0x1a/0x110 fs/bcachefs/fs.c:1494 alloc_inode fs/inode.c:261 [inline] new_inode_pseudo+0x5b/0x190 fs/inode.c:1007 new_inode+0x17/0x1b0 fs/inode.c:1033 bch2_new_inode+0x9f/0x180 fs/bcachefs/fs.c:224 bch2_lookup_trans fs/bcachefs/fs.c:408 [inline] bch2_lookup+0xad0/0x10c0 fs/bcachefs/fs.c:437 lookup_open fs/namei.c:3475 [inline] open_last_lookups fs/namei.c:3566 [inline] path_openat+0xd15/0x27f0 fs/namei.c:3796 do_filp_open+0x22b/0x440 fs/namei.c:3826 do_sys_openat2+0xf6/0x180 fs/open.c:1406 do_sys_open fs/open.c:1421 [inline] __do_sys_openat fs/open.c:1437 [inline] __se_sys_openat fs/open.c:1432 [inline] __x64_sys_openat+0x20d/0x260 fs/open.c:1432 page last free pid 1447 tgid 1444 stack trace: reset_page_owner include/linux/page_owner.h:25 [inline] free_pages_prepare mm/page_alloc.c:1141 [inline] free_unref_page_prepare+0x87f/0x9a0 mm/page_alloc.c:2347 free_unref_folios+0x17e/0x9e0 mm/page_alloc.c:2536 folios_put_refs+0x5e2/0x6d0 mm/swap.c:1034 free_pages_and_swap_cache+0x27a/0x4e0 mm/swap_state.c:329 __tlb_batch_free_encoded_pages mm/mmu_gather.c:136 [inline] tlb_batch_pages_flush mm/mmu_gather.c:149 [inline] tlb_flush_mmu_free mm/mmu_gather.c:366 [inline] tlb_flush_mmu+0x2ad/0x4e0 mm/mmu_gather.c:373 zap_pte_range mm/memory.c:1683 [inline] zap_pmd_range mm/memory.c:1722 [inline] zap_pud_range mm/memory.c:1751 [inline] zap_p4d_range mm/memory.c:1772 [inline] unmap_page_range+0x305a/0x3790 mm/memory.c:1793 unmap_vmas+0x1ee/0x2a0 mm/memory.c:1883 exit_mmap+0x257/0xa10 mm/mmap.c:3267 __mmput+0x9b/0x2d0 kernel/fork.c:1345 exit_mm+0x114/0x1b0 kernel/exit.c:569 do_exit+0x7cd/0x2490 kernel/exit.c:865 do_group_exit+0x1ba/0x280 kernel/exit.c:1027 get_signal+0x109f/0x11b0 kernel/signal.c:2911 arch_do_signal_or_restart+0x91/0x670 arch/x86/kernel/signal.c:310 exit_to_user_mode_loop kernel/entry/common.c:111 [inline] exit_to_user_mode_prepare include/linux/entry-common.h:328 [inline] __syscall_exit_to_user_mode_work kernel/entry/common.c:207 [inline] syscall_exit_to_user_mode+0x57/0x1c0 kernel/entry/common.c:218 do_syscall_64+0xa4/0x1b0 arch/x86/entry/common.c:89 Memory state around the buggy address: ffff88816ca5c980: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88816ca5ca00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff88816ca5ca80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff88816ca5cb00: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff88816ca5cb80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================