ci starts bisection 2023-08-24 01:03:54.350762621 +0000 UTC m=+19833.641318124 bisecting cause commit starting from 28c736b0e92e11bfe2b9997688213dc43cb22182 building syzkaller on b81ca3f66f8d2d8b397c3c1dc5f14e77c2936b1e fetch other tags and check if the commit is present ensuring issue is reproducible on original commit 28c736b0e92e11bfe2b9997688213dc43cb22182 testing commit 28c736b0e92e11bfe2b9997688213dc43cb22182 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cc6f662ad3ec6102c5ba90c0d7b064548ecc09a05ca1b983dd695940901e7508 all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 28c736b0e92e11bfe2b9997688213dc43cb22182 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: aac0d330ed6396a3d83906c8054e8af15b8f9004a1b36f298cab559186e8bd5b all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed kconfig minimization: base=3883 full=7691 leaves diff=2019 split chunks (needed=false): <2019> split chunk #0 of len 2019 into 5 parts testing without sub-chunk 1/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 28c736b0e92e11bfe2b9997688213dc43cb22182 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8550ea7c4196f83249a41d6b4eaa37d106b571230a332b84de2b2300d91cf29b all runs: OK false negative chance: 0.000 testing without sub-chunk 2/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 28c736b0e92e11bfe2b9997688213dc43cb22182 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c866558f0b3235bc2cb9d451e578fe02ccbedcbe687536c7f9fce22dea24d06f all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, 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 28c736b0e92e11bfe2b9997688213dc43cb22182 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4e9ca78ebb005bbf0f711f6598503c79d5392c6f22f2f2f4a15aa3944037720f all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, 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 28c736b0e92e11bfe2b9997688213dc43cb22182 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f045766f9c8a019f38d897678ee1b0011c7e34163d6891109163571f1bc8a59b all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 28c736b0e92e11bfe2b9997688213dc43cb22182 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0e2216c838cbb4881845e7ec843c2b3aed8f8c8fcfed541652570bff685d6b14 all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] the chunk can be dropped minimized to 404 configs; suspects: [6LOWPAN 6LOWPAN_GHC_EXT_HDR_DEST 6LOWPAN_GHC_EXT_HDR_FRAG 6LOWPAN_GHC_EXT_HDR_HOP 6LOWPAN_GHC_EXT_HDR_ROUTE 6LOWPAN_GHC_ICMPV6 6LOWPAN_GHC_UDP 6LOWPAN_NHC 6LOWPAN_NHC_DEST 6LOWPAN_NHC_FRAGMENT 6LOWPAN_NHC_HOP 6LOWPAN_NHC_IPV6 6LOWPAN_NHC_MOBILITY 6LOWPAN_NHC_ROUTING 6LOWPAN_NHC_UDP 6PACK 842_COMPRESS 842_DECOMPRESS 9P_FSCACHE 9P_FS_POSIX_ACL 9P_FS_SECURITY ACORN_PARTITION ACORN_PARTITION_ADFS ACORN_PARTITION_CUMANA ACORN_PARTITION_EESOX ACORN_PARTITION_ICS ACORN_PARTITION_POWERTEC ACORN_PARTITION_RISCIX ACPI_NFIT ACPI_PLATFORM_PROFILE ADDRESS_MASKING ADFS_FS AFFS_FS AFS_FS AFS_FSCACHE AF_KCM AF_RXRPC AF_RXRPC_IPV6 AIX_PARTITION AMIGA_PARTITION ANDROID_BINDERFS ANDROID_BINDER_IPC ANON_VMA_NAME APERTURE_HELPERS AR5523 ARCH_ENABLE_MEMORY_HOTREMOVE ARCH_ENABLE_THP_MIGRATION ARCH_SUPPORTS_CRASH_DUMP ARCH_SUPPORTS_CRASH_HOTPLUG ARCH_SUPPORTS_KEXEC ARCH_SUPPORTS_KEXEC_BZIMAGE_VERIFY_SIG ARCH_SUPPORTS_KEXEC_FILE ARCH_SUPPORTS_KEXEC_JUMP ARCH_SUPPORTS_KEXEC_SIG ARCH_SUPPORTS_KEXEC_SIG_FORCE ARCH_WANT_OPTIMIZE_DAX_VMEMMAP ARCH_WANT_OPTIMIZE_HUGETLB_VMEMMAP ARCH_WANT_PMD_MKWRITE ASM_MODVERSIONS ASYNC_CORE ASYNC_MEMCPY ASYNC_PQ ASYNC_RAID6_RECOV ASYNC_TX_DMA ASYNC_XOR ATARI_PARTITION ATA_GENERIC ATA_OVER_ETH ATH10K ATH10K_CE ATH10K_PCI ATH10K_USB ATH11K ATH6KL ATH6KL_USB ATH9K ATH9K_AHB ATH9K_BTCOEX_SUPPORT ATH9K_CHANNEL_CONTEXT ATH9K_COMMON ATH9K_COMMON_DEBUG ATH9K_DEBUGFS ATH9K_DYNACK ATH9K_HTC ATH9K_HTC_DEBUGFS ATH9K_HW ATH9K_PCI ATH9K_PCOEM ATH9K_RFKILL ATH_COMMON ATM ATM_BR2684 ATM_CLIP ATM_DRIVERS ATM_LANE ATM_MPOA ATM_TCP AUXILIARY_BUS AX25 AX25_DAMA_SLAVE AX88796B_PHY BAREUDP BATMAN_ADV BATMAN_ADV_BATMAN_V BATMAN_ADV_BLA BATMAN_ADV_DAT BATMAN_ADV_MCAST BATMAN_ADV_NC BCACHE BCMA BCMA_HOST_PCI_POSSIBLE BEFS_FS BFQ_CGROUP_DEBUG BFQ_GROUP_IOSCHED BFS_FS BIG_KEYS BLK_CGROUP_PUNT_BIO BLK_CGROUP_RWSTAT BLK_DEBUG_FS_ZONED BLK_DEV_BSGLIB BLK_DEV_FD BLK_DEV_INTEGRITY BLK_DEV_INTEGRITY_T10 BLK_DEV_NBD BLK_DEV_NULL_BLK BLK_DEV_NULL_BLK_FAULT_INJECTION BLK_DEV_NVME BLK_DEV_PMEM BLK_DEV_RAM BLK_DEV_RNBD BLK_DEV_RNBD_CLIENT BLK_DEV_THROTTLING BLK_ICQ BLK_INLINE_ENCRYPTION BLK_INLINE_ENCRYPTION_FALLBACK BLK_WBT BLK_WBT_MQ BONDING BOOT_VESA_SUPPORT BPF_EVENTS BPF_JIT BPF_JIT_ALWAYS_ON BPF_JIT_DEFAULT_ON BPF_LSM BPF_PRELOAD BPF_PRELOAD_UMD BPF_STREAM_PARSER BPF_SYSCALL BPQETHER BRIDGE BRIDGE_CFM BRIDGE_EBT_802_3 BRIDGE_EBT_AMONG BRIDGE_EBT_ARP BRIDGE_EBT_ARPREPLY BRIDGE_EBT_BROUTE BRIDGE_EBT_DNAT BRIDGE_EBT_IP BRIDGE_EBT_IP6 BRIDGE_EBT_LIMIT BRIDGE_EBT_LOG BRIDGE_EBT_MARK BRIDGE_EBT_MARK_T BRIDGE_EBT_NFLOG BRIDGE_EBT_PKTTYPE BRIDGE_EBT_REDIRECT BRIDGE_EBT_SNAT BRIDGE_EBT_STP BRIDGE_EBT_T_FILTER BRIDGE_EBT_T_NAT BRIDGE_EBT_VLAN BRIDGE_IGMP_SNOOPING BRIDGE_MRP BRIDGE_NF_EBTABLES BRIDGE_VLAN_FILTERING BSD_DISKLABEL BSD_PROCESS_ACCT_V3 BT BTRFS_ASSERT BTRFS_FS BTRFS_FS_POSIX_ACL BTRFS_FS_REF_VERIFY BTT BT_6LOWPAN BT_ATH3K BT_BCM BT_BNEP BT_BNEP_MC_FILTER BT_BNEP_PROTO_FILTER BT_BREDR BT_CMTP BT_HCIBCM203X BT_HCIBFUSB BT_HCIBPA10X BT_HCIBTUSB BT_HCIBTUSB_BCM BT_HCIBTUSB_MTK BT_HCIBTUSB_POLL_SYNC BT_HCIBTUSB_RTL BT_HCIUART BT_HCIUART_3WIRE BT_HCIUART_AG6XX BT_HCIUART_BCSP BT_HCIUART_H4 BT_HCIUART_LL BT_HCIUART_MRVL BT_HCIUART_QCA BT_HCIUART_SERDEV BT_HCIVHCI BT_HIDP BT_HS BT_INTEL BT_LE BT_LEDS BT_LE_L2CAP_ECRED BT_MSFTEXT BT_MTK BT_QCA BT_RFCOMM BT_RFCOMM_TTY BT_RTL BUFFER_HEAD CACHEFILES CAIF CAIF_DEBUG CAIF_DRIVERS CAIF_NETDEV CAIF_TTY CAIF_USB CAIF_VIRTIO CAN CAN_8DEV_USB CAN_BCM CAN_CALC_BITTIMING CAN_DEV CAN_EMS_USB CAN_GS_USB CAN_GW CAN_IFI_CANFD CAN_ISOTP CAN_J1939 CAN_KVASER_USB CAN_MCBA_USB CAN_NETLINK CAN_PEAK_USB CAN_RAW CAN_RX_OFFLOAD CAN_SLCAN CAN_VCAN CAN_VXCAN CAPI_TRACE CARL9170 CARL9170_HWRNG CARL9170_LEDS CARL9170_WPC CEC_CORE CEPH_FS CEPH_FSCACHE CEPH_FS_POSIX_ACL CEPH_LIB CEPH_LIB_USE_DNS_RESOLVER CFG80211 CFG80211_CRDA_SUPPORT CFG80211_DEBUGFS CFG80211_DEFAULT_PS CFG80211_REQUIRE_SIGNED_REGDB CFG80211_USE_KERNEL_REGDB_KEYS CFG80211_WEXT CFS_BANDWIDTH CGROUP_BPF CHARGER_BQ24190 CHARGER_ISP1704 CHR_DEV_ST CIFS CIFS_ALLOW_INSECURE_LEGACY CIFS_DEBUG CIFS_DFS_UPCALL CIFS_FSCACHE CIFS_POSIX CIFS_SMB_DIRECT CIFS_SWN_UPCALL CIFS_UPCALL CIFS_XATTR CLS_U32_MARK CLS_U32_PERF CMA CMA_SIZE_SEL_MBYTES CMDLINE_PARTITION COMEDI COMEDI_DT9812 COMEDI_NI_USB6501 COMEDI_USBDUX COMEDI_USBDUXFAST COMEDI_USBDUXSIGMA COMEDI_USB_DRIVERS COMEDI_VMK80XX COMPAT_NETLINK_MESSAGES COUNTER CRAMFS CRAMFS_BLOCKDEV CRAMFS_MTD CRASH_HOTPLUG CRC4 CRC64 CRC64_ROCKSOFT CRC7 CRC8 CRC_ITU_T CRC_T10DIF CRYPTO_ADIANTUM CRYPTO_AEGIS128 CRYPTO_AEGIS128_AESNI_SSE2 CRYPTO_AES_NI_INTEL CRYPTO_AES_TI CRYPTO_ANSI_CPRNG CRYPTO_ANUBIS CRYPTO_ARC4 CRYPTO_ARCH_HAVE_LIB_BLAKE2S CRYPTO_ARCH_HAVE_LIB_CHACHA CRYPTO_ARCH_HAVE_LIB_CURVE25519 CRYPTO_ARCH_HAVE_LIB_POLY1305 CRYPTO_ARIA CRYPTO_ARIA_AESNI_AVX_X86_64 CRYPTO_BLAKE2B CRYPTO_BLAKE2S_X86 CRYPTO_BLOWFISH CRYPTO_BLOWFISH_COMMON CRYPTO_BLOWFISH_X86_64 CRYPTO_CAMELLIA CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 CRYPTO_CAMELLIA_AESNI_AVX_X86_64 CRYPTO_CAMELLIA_X86_64 CRYPTO_CAST5 CRYPTO_CAST5_AVX_X86_64 CRYPTO_CAST6 CRYPTO_CAST6_AVX_X86_64 CRYPTO_CAST_COMMON CRYPTO_CFB CRYPTO_CHACHA20 CRYPTO_CHACHA20POLY1305 CRYPTO_CHACHA20_X86_64 CRYPTO_CRC32 CRYPTO_CRC32C_INTEL CRYPTO_CRC32_PCLMUL CRYPTO_CRC64_ROCKSOFT CRYPTO_CRCT10DIF CRYPTO_CRCT10DIF_PCLMUL CRYPTO_CRYPTD CRYPTO_CTS CRYPTO_CURVE25519 CRYPTO_CURVE25519_X86 CRYPTO_DEFLATE CRYPTO_DES CRYPTO_DES3_EDE_X86_64 CRYPTO_DEV_CCP CRYPTO_DEV_CCP_DD CRYPTO_DEV_PADLOCK CRYPTO_DEV_PADLOCK_AES CRYPTO_DEV_PADLOCK_SHA CRYPTO_DEV_QAT CRYPTO_DEV_QAT_C3XXX CRYPTO_DEV_QAT_C3XXXVF CRYPTO_DEV_QAT_C62X CRYPTO_DEV_QAT_C62XVF CRYPTO_DEV_QAT_DH895xCC CRYPTO_DEV_QAT_DH895xCCVF CRYPTO_DEV_VIRTIO CRYPTO_DH CRYPTO_DRBG_CTR CRYPTO_DRBG_HASH CRYPTO_ECB CRYPTO_ECC CRYPTO_ECDH CRYPTO_ECRDSA CRYPTO_ENGINE CRYPTO_ESSIV CRYPTO_FCRYPT CRYPTO_GHASH_CLMUL_NI_INTEL CRYPTO_HCTR2 CRYPTO_KDF800108_CTR CRYPTO_KEYWRAP CRYPTO_KHAZAD CRYPTO_KPP CRYPTO_LIB_ARC4 CRYPTO_LIB_CHACHA CRYPTO_LIB_CHACHA20POLY1305 CRYPTO_LIB_CHACHA_GENERIC CRYPTO_LIB_CURVE25519 CRYPTO_LIB_CURVE25519_GENERIC CRYPTO_LIB_DES CRYPTO_LIB_POLY1305 CRYPTO_LIB_POLY1305_GENERIC CRYPTO_LRW CRYPTO_MICHAEL_MIC CRYPTO_NHPOLY1305 CRYPTO_NHPOLY1305_AVX2 CRYPTO_NHPOLY1305_SSE2 CRYPTO_OFB CRYPTO_PCBC CRYPTO_PCRYPT CRYPTO_POLY1305 CRYPTO_POLY1305_X86_64 CRYPTO_POLYVAL CRYPTO_POLYVAL_CLMUL_NI CRYPTO_RMD160 CRYPTO_SEED CRYPTO_SERPENT CRYPTO_SERPENT_AVX2_X86_64 CRYPTO_SERPENT_AVX_X86_64 CRYPTO_SERPENT_SSE2_X86_64 CRYPTO_SHA1_SSSE3 CRYPTO_SHA256_SSSE3 CRYPTO_SHA512_SSSE3 CRYPTO_SIMD CRYPTO_SM2 CRYPTO_SM3 CRYPTO_SM3_AVX_X86_64 CRYPTO_SM4 CRYPTO_SM4_AESNI_AVX2_X86_64 CRYPTO_SM4_AESNI_AVX_X86_64 CRYPTO_SM4_GENERIC CRYPTO_STREEBOG CRYPTO_TEA CRYPTO_TWOFISH CRYPTO_TWOFISH_AVX_X86_64 CRYPTO_TWOFISH_COMMON CRYPTO_TWOFISH_X86_64 CRYPTO_TWOFISH_X86_64_3WAY CRYPTO_USER CRYPTO_USER_API CRYPTO_USER_API_AEAD CRYPTO_USER_API_ENABLE_OBSOLETE CRYPTO_USER_API_HASH CRYPTO_USER_API_RNG CRYPTO_USER_API_SKCIPHER CRYPTO_VMAC CRYPTO_WP512 CRYPTO_XCBC CRYPTO_XCTR CRYPTO_XTS CRYPTO_XXHASH CUSE CYPRESS_FIRMWARE DAMON DAMON_DBGFS DAMON_PADDR DAMON_RECLAIM DAMON_VADDR DAX DCA DCB DEFAULT_PFIFO_FAST DEVICE_MIGRATION DEVICE_PRIVATE DEV_COREDUMP DEV_DAX DIMLIB DLN2_ADC DMABUF_HEAPS DMABUF_HEAPS_CMA DMABUF_HEAPS_SYSTEM DMABUF_MOVE_NOTIFY DMA_CMA DMA_ENGINE_RAID DMA_NUMA_CMA DM_AUDIT DM_BIO_PRISON DM_BUFIO DM_CACHE DM_CACHE_SMQ DM_CLONE DM_CRYPT DM_FLAKEY DM_INTEGRITY DM_MULTIPATH DM_MULTIPATH_QL DM_MULTIPATH_ST DM_PERSISTENT_DATA DM_RAID DM_SNAPSHOT DM_THIN_PROVISIONING DM_UEVENT ENCRYPTED_KEYS EXTCON FSCACHE FUSE_FS GPIOLIB HAMRADIO IIO INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_RTRS_CLIENT IOSCHED_BFQ ISDN ISDN_CAPI LIBNVDIMM MAC80211 MAC80211_LEDS MEDIA_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_DLN2 MTD NET_CLS_U32 NET_SCH_DEFAULT PARTITION_ADVANCED RFKILL SERIAL_DEV_BUS TLS TLS_DEVICE TRANSPARENT_HUGEPAGE TRUSTED_KEYS USB_GADGET USB_PHY VLAN_8021Q WANT_COMPAT_NETLINK_MESSAGES WEXT_CORE WIRELESS WIRELESS_EXT WLAN WLAN_VENDOR_ATH X86_X32_ABI ZONE_DEVICE] disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing release v6.4 testing commit 6995e2de6891c724bfeb2db33d7b87775f913ad1 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 95df410a45acf26cf9655eb2f75bcc23ea394b89754e231b0f5fb01fccabb233 all runs: OK false negative chance: 0.000 # git bisect start 28c736b0e92e11bfe2b9997688213dc43cb22182 6995e2de6891c724bfeb2db33d7b87775f913ad1 Bisecting: 13132 revisions left to test after this (roughly 14 steps) [39b1428639ed2224832234f48bfce991786aa4df] Merge tag 'regmap-fix-v6.5-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/regmap testing commit 39b1428639ed2224832234f48bfce991786aa4df gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 37d680a9be655c69e3b6a8cc74e72d3f3437c447d74575dc625044af858ca3d4 all runs: OK false negative chance: 0.000 # git bisect good 39b1428639ed2224832234f48bfce991786aa4df Bisecting: 5867 revisions left to test after this (roughly 13 steps) [f4d5d94452e4dcb84e84709b536c2686d0fcae84] Merge branch 'main' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next.git testing commit f4d5d94452e4dcb84e84709b536c2686d0fcae84 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9935c6587681b695c589b5daf59511917ab561ff9053401f9324e1534987e26b all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] # git bisect bad f4d5d94452e4dcb84e84709b536c2686d0fcae84 Bisecting: 3640 revisions left to test after this (roughly 12 steps) [ea0e34742aa5ae1237f155aead3ad9018ba6c6d9] Merge branch 'sunxi/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sunxi/linux.git testing commit ea0e34742aa5ae1237f155aead3ad9018ba6c6d9 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: db033b0987831a422f4c34e6c66729474ce30d79deb99e2b9abd52e4cd8b35fd all runs: OK false negative chance: 0.000 # git bisect good ea0e34742aa5ae1237f155aead3ad9018ba6c6d9 Bisecting: 1768 revisions left to test after this (roughly 11 steps) [a8716f9f5a967352ebf5a9ff1cabf3ae8ad8af0d] Merge branch 'master' of git://linuxtv.org/media_tree.git testing commit a8716f9f5a967352ebf5a9ff1cabf3ae8ad8af0d gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5048e8235cf0c34a8c8a7a54e308e7903b5afc77f31b0b08d225d047ec05db63 all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] # git bisect bad a8716f9f5a967352ebf5a9ff1cabf3ae8ad8af0d Bisecting: 1020 revisions left to test after this (roughly 10 steps) [0cc933d2a8b5fa685c768c12ad4d439d3094bc38] Merge branch 'locks-next' of git://git.kernel.org/pub/scm/linux/kernel/git/jlayton/linux.git testing commit 0cc933d2a8b5fa685c768c12ad4d439d3094bc38 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1392b4b8f5a2dfffc2f7c15e45b5ea6b3f111a986bbffc53334047e14a08b7ce all runs: OK false negative chance: 0.000 # git bisect good 0cc933d2a8b5fa685c768c12ad4d439d3094bc38 Bisecting: 523 revisions left to test after this (roughly 9 steps) [0857e8ff1eb9b0dbf3acb4613f096181687d1a3b] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid.git testing commit 0857e8ff1eb9b0dbf3acb4613f096181687d1a3b gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 66a9cbde541936e9834d0df3ce6be216694992a935fb3c2c7b46b8f02607cbb1 all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] # git bisect bad 0857e8ff1eb9b0dbf3acb4613f096181687d1a3b Bisecting: 261 revisions left to test after this (roughly 8 steps) [1ff665b6c7fc49c6a1c99ca148cd77581cd69930] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git testing commit 1ff665b6c7fc49c6a1c99ca148cd77581cd69930 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6082ba8f04ae8a2cdc5941e742816f8e510e0dee5d437aff5003300f989038b0 all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] # git bisect bad 1ff665b6c7fc49c6a1c99ca148cd77581cd69930 Bisecting: 107 revisions left to test after this (roughly 7 steps) [ff4f7887e239b068367ae857b27c7cec98015656] Merge branch 'vfs.tmpfs' into vfs.all testing commit ff4f7887e239b068367ae857b27c7cec98015656 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9873ef278ced1a01dfbe78818b9e5cfbbe3e8903607fea2a87a73b68d0bc00ba all runs: OK false negative chance: 0.000 # git bisect good ff4f7887e239b068367ae857b27c7cec98015656 Bisecting: 56 revisions left to test after this (roughly 6 steps) [b13917cb7655192a45781d132d320a47ab8f2365] Merge branch 'vfs.fchmodat2' into vfs.all testing commit b13917cb7655192a45781d132d320a47ab8f2365 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b9bedba09c4e6589116d8495f3a4c7d406e727ba49bbb8f6e68da68f30a9f58b all runs: OK false negative chance: 0.000 # git bisect good b13917cb7655192a45781d132d320a47ab8f2365 Bisecting: 28 revisions left to test after this (roughly 5 steps) [8ffa54e3370c5a8b9538dbe4077fc9c4b5a08f45] xfs use fs_holder_ops for the log and RT devices testing commit 8ffa54e3370c5a8b9538dbe4077fc9c4b5a08f45 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9a039dc356df176625d69af2c2d025ff4f7304bc60db5d36d71ad64ce089e072 all runs: OK false negative chance: 0.000 # git bisect good 8ffa54e3370c5a8b9538dbe4077fc9c4b5a08f45 Bisecting: 14 revisions left to test after this (roughly 4 steps) [5e87491415217d6bec0bcae08a3156622be2b177] super: wait for nascent superblocks testing commit 5e87491415217d6bec0bcae08a3156622be2b177 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 12975b86f43ff23c76c58834c5b26026b9019ba70ff0e62e1f1dcefd711d7b84 all runs: OK false negative chance: 0.000 # git bisect good 5e87491415217d6bec0bcae08a3156622be2b177 Bisecting: 9 revisions left to test after this (roughly 3 steps) [eb329cf7344191588f4852aa7b134040dee7a41f] Merge branch 'vfs.autofs' into vfs.all testing commit eb329cf7344191588f4852aa7b134040dee7a41f gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d2c44cdb1fcd77bf87b439c3387c85f5e66d1b917c54ee8736d807d00e0ce833 all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] # git bisect bad eb329cf7344191588f4852aa7b134040dee7a41f Bisecting: 2 revisions left to test after this (roughly 1 step) [17fce12e7c0a53f0bed26af231a2a98a34d34c60] autofs: use wake_up() instead of wake_up_interruptible(() testing commit 17fce12e7c0a53f0bed26af231a2a98a34d34c60 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 374f3922a4dbb7a11330d57b3b8c6add599229a48ac51c969467715a0106759d all runs: OK false negative chance: 0.000 # git bisect good 17fce12e7c0a53f0bed26af231a2a98a34d34c60 Bisecting: 0 revisions left to test after this (roughly 1 step) [c59465f5d99081bdde47f46daf7873e086be58d1] Merge branch 'vfs.super' into vfs.all testing commit c59465f5d99081bdde47f46daf7873e086be58d1 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d61769373a964303790dfae7cafd74208252d959e4e90931d1c0f3fd3000c45a all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] # git bisect bad c59465f5d99081bdde47f46daf7873e086be58d1 Bisecting: 0 revisions left to test after this (roughly 0 steps) [2c18a63b760a0f68f14cb8bb4c3840bb0b63b73e] super: wait until we passed kill super testing commit 2c18a63b760a0f68f14cb8bb4c3840bb0b63b73e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 5993f09d984624af15f7b3d9ce34a9e0d45eddf8d8a0c33ebf7b0a0f74874b36 all runs: crashed: KASAN: slab-use-after-free Read in ceph_compare_super representative crash: KASAN: slab-use-after-free Read in ceph_compare_super, types: [KASAN] # git bisect bad 2c18a63b760a0f68f14cb8bb4c3840bb0b63b73e 2c18a63b760a0f68f14cb8bb4c3840bb0b63b73e is the first bad commit commit 2c18a63b760a0f68f14cb8bb4c3840bb0b63b73e Author: Christian Brauner Date: Fri Aug 18 16:00:51 2023 +0200 super: wait until we passed kill super Recent rework moved block device closing out of sb->put_super() and into sb->kill_sb() to avoid deadlocks as s_umount is held in put_super() and blkdev_put() can end up taking s_umount again. That means we need to move the removal of the superblock from @fs_supers out of generic_shutdown_super() and into deactivate_locked_super() to ensure that concurrent mounters don't fail to open block devices that are still in use because blkdev_put() in sb->kill_sb() hasn't been called yet. We can now do this as we can make iterators through @fs_super and @super_blocks wait without holding s_umount. Concurrent mounts will wait until a dying superblock is fully dead so until sb->kill_sb() has been called and SB_DEAD been set. Concurrent iterators can already discard any SB_DYING superblock. Reviewed-by: Jan Kara Message-Id: <20230818-vfs-super-fixes-v3-v3-4-9f0b1876e46b@kernel.org> Signed-off-by: Christian Brauner fs/super.c | 71 ++++++++++++++++++++++++++++++++++++++++++++++++------ include/linux/fs.h | 1 + 2 files changed, 65 insertions(+), 7 deletions(-) accumulated error probability: 0.00 culprit signature: 5993f09d984624af15f7b3d9ce34a9e0d45eddf8d8a0c33ebf7b0a0f74874b36 parent signature: 12975b86f43ff23c76c58834c5b26026b9019ba70ff0e62e1f1dcefd711d7b84 revisions tested: 23, total time: 7h35m24.426638171s (build: 3h46m5.568843585s, test: 3h23m44.705176009s) first bad commit: 2c18a63b760a0f68f14cb8bb4c3840bb0b63b73e super: wait until we passed kill super recipients (to): ["brauner@kernel.org" "jack@suse.cz"] recipients (cc): [] crash: KASAN: slab-use-after-free Read in ceph_compare_super ================================================================== BUG: KASAN: slab-use-after-free in memcmp+0x1b5/0x1c0 lib/string.c:681 Read of size 8 at addr ffff88816ee40500 by task syz-executor.4/4801 CPU: 0 PID: 4801 Comm: syz-executor.4 Not tainted 6.5.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/26/2023 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x3d/0x60 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:364 [inline] print_report+0xc4/0x620 mm/kasan/report.c:475 kasan_report+0xda/0x110 mm/kasan/report.c:588 memcmp+0x1b5/0x1c0 lib/string.c:681 memcmp include/linux/fortify-string.h:728 [inline] compare_mount_options fs/ceph/super.c:622 [inline] ceph_compare_super+0x10f/0x750 fs/ceph/super.c:1147 sget_fc+0x4ee/0x760 fs/super.c:764 ceph_get_tree+0x62c/0x16a0 fs/ceph/super.c:1232 vfs_get_tree+0x82/0x220 fs/super.c:1711 vfs_fsconfig_locked fs/fsopen.c:232 [inline] __do_sys_fsconfig+0x5d9/0xa80 fs/fsopen.c:439 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:0x7f9f5ea7cae9 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:00007f9f5ddfe0c8 EFLAGS: 00000246 ORIG_RAX: 00000000000001af RAX: ffffffffffffffda RBX: 00007f9f5eb9bf80 RCX: 00007f9f5ea7cae9 RDX: 0000000000000000 RSI: 0000000000000006 RDI: 0000000000000003 RBP: 00007f9f5eac847a R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000006 R14: 00007f9f5eb9bf80 R15: 00007ffe88177ce8 Allocated by task 4785: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0xa2/0xb0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:582 [inline] kzalloc include/linux/slab.h:703 [inline] ceph_init_fs_context+0xb9/0x510 fs/ceph/super.c:1333 alloc_fs_context+0x4bb/0x880 fs/fs_context.c:290 __do_sys_fsopen fs/fsopen.c:137 [inline] __se_sys_fsopen fs/fsopen.c:115 [inline] __x64_sys_fsopen+0xaa/0x180 fs/fsopen.c:115 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Freed by task 4785: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:522 ____kasan_slab_free mm/kasan/common.c:236 [inline] ____kasan_slab_free+0x15e/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1792 [inline] slab_free_freelist_hook+0x10b/0x1e0 mm/slub.c:1818 slab_free mm/slub.c:3801 [inline] __kmem_cache_free+0xba/0x340 mm/slub.c:3814 destroy_fs_client+0x196/0x280 fs/ceph/super.c:860 deactivate_locked_super+0x83/0x270 fs/super.c:454 ceph_get_tree+0x1022/0x16a0 fs/ceph/super.c:1267 vfs_get_tree+0x82/0x220 fs/super.c:1711 vfs_fsconfig_locked fs/fsopen.c:232 [inline] __do_sys_fsconfig+0x5d9/0xa80 fs/fsopen.c:439 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 The buggy address belongs to the object at ffff88816ee40500 which belongs to the cache kmalloc-96 of size 96 The buggy address is located 0 bytes inside of freed 96-byte region [ffff88816ee40500, ffff88816ee40560) The buggy address belongs to the physical page: page:ffffea0005bb9000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x16ee40 flags: 0x100000000000200(slab|node=0|zone=2) page_type: 0xffffffff() raw: 0100000000000200 ffff888100041780 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000200020 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 0, migratetype Unmovable, gfp_mask 0x112cc0(GFP_USER|__GFP_NOWARN|__GFP_NORETRY), pid 4776, tgid 4773 (syz-executor.4), ts 77341143628, free_ts 77305078909 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x281/0x2f0 mm/page_alloc.c:1570 prep_new_page mm/page_alloc.c:1577 [inline] get_page_from_freelist+0x1131/0x3d90 mm/page_alloc.c:3221 __alloc_pages+0x1d0/0x470 mm/page_alloc.c:4477 alloc_slab_page mm/slub.c:1862 [inline] allocate_slab+0x24e/0x360 mm/slub.c:2009 new_slab mm/slub.c:2062 [inline] ___slab_alloc+0x7a7/0x1000 mm/slub.c:3215 __slab_alloc.constprop.0+0x4d/0x90 mm/slub.c:3314 __slab_alloc_node mm/slub.c:3367 [inline] slab_alloc_node mm/slub.c:3460 [inline] __kmem_cache_alloc_node+0x143/0x390 mm/slub.c:3509 __do_kmalloc_node mm/slab_common.c:984 [inline] __kmalloc+0x4c/0x160 mm/slab_common.c:998 kmalloc_array include/linux/slab.h:619 [inline] ceph_msg_new2+0x2d2/0x460 net/ceph/messenger.c:1915 msgpool_alloc+0x9d/0x1b0 net/ceph/msgpool.c:17 mempool_init_node+0x29f/0x560 mm/mempool.c:207 mempool_create_node mm/mempool.c:276 [inline] mempool_create+0x75/0xb0 mm/mempool.c:261 ceph_msgpool_init+0xc6/0x180 net/ceph/msgpool.c:46 ceph_osdc_init+0x720/0xc10 net/ceph/osd_client.c:5189 ceph_create_client net/ceph/ceph_common.c:745 [inline] ceph_create_client+0x232/0x2e0 net/ceph/ceph_common.c:707 create_fs_client fs/ceph/super.c:781 [inline] ceph_get_tree+0x181/0x16a0 fs/ceph/super.c:1216 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1161 [inline] free_unref_page_prepare+0x5ac/0xcf0 mm/page_alloc.c:2348 free_unref_page_list+0xe6/0xaa0 mm/page_alloc.c:2489 release_pages+0x2a8/0x1040 mm/swap.c:1042 tlb_batch_pages_flush+0x79/0x140 mm/mmu_gather.c:97 tlb_flush_mmu_free mm/mmu_gather.c:292 [inline] tlb_flush_mmu mm/mmu_gather.c:299 [inline] tlb_finish_mmu+0x114/0x5e0 mm/mmu_gather.c:391 exit_mmap+0x247/0x6f0 mm/mmap.c:3214 __mmput+0xb7/0x3e0 kernel/fork.c:1348 exit_mm kernel/exit.c:567 [inline] do_exit+0x776/0x2600 kernel/exit.c:861 do_group_exit+0xb4/0x250 kernel/exit.c:1024 get_signal+0x1ed5/0x1f00 kernel/signal.c:2877 arch_do_signal_or_restart+0x89/0x5f0 arch/x86/kernel/signal.c:308 exit_to_user_mode_loop kernel/entry/common.c:168 [inline] exit_to_user_mode_prepare+0xc3/0x150 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x16/0x30 kernel/entry/common.c:297 do_syscall_64+0x44/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff88816ee40400: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ffff88816ee40480: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc >ffff88816ee40500: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ^ ffff88816ee40580: 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc fc ffff88816ee40600: fa fb fb fb fb fb fb fb fb fb fb fb fc fc fc fc ==================================================================