ci starts bisection 2024-01-13 18:50:59.347860738 +0000 UTC m=+52365.195333746 bisecting cause commit starting from 052d534373b7ed33712a63d5e17b2b6cdbce84fd building syzkaller on 551587c192ecb4df26fcdab775ed145ee69c07d4 ensuring issue is reproducible on original commit 052d534373b7ed33712a63d5e17b2b6cdbce84fd testing commit 052d534373b7ed33712a63d5e17b2b6cdbce84fd gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f8e96e04f3bd47a717f34f8ebd13b171fe9c5ebddb86740b1c8ebc7835ab67ac all runs: crashed: KASAN: slab-use-after-free Read in destroy_device_list representative crash: KASAN: slab-use-after-free Read in destroy_device_list, 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 052d534373b7ed33712a63d5e17b2b6cdbce84fd gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 294648d07a7426429715211312b00126bf19fce3bfe37b04969e6fc3e26a7582 all runs: crashed: KASAN: slab-use-after-free Read in destroy_device_list representative crash: KASAN: slab-use-after-free Read in destroy_device_list, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed kconfig minimization: base=3923 full=7667 leaves diff=2004 split chunks (needed=false): <2004> split chunk #0 of len 2004 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 052d534373b7ed33712a63d5e17b2b6cdbce84fd gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0da07c21e9bb709f530a1b89f23ddad3c7038ce81a9f4a48f8f181406bcf98fe all runs: crashed: KASAN: slab-use-after-free Read in destroy_device_list representative crash: KASAN: slab-use-after-free Read in destroy_device_list, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 052d534373b7ed33712a63d5e17b2b6cdbce84fd gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 27c89c4d1c39b67dcf1e6d2b29829a56a211a7a08dfddc7c2c5b3b139132769d all runs: OK false negative chance: 0.000 testing without sub-chunk 3/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 052d534373b7ed33712a63d5e17b2b6cdbce84fd gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2bb519042634ebb090ca351606a815bd6ccc53f686e745da79d646ff7d357542 all runs: crashed: KASAN: slab-use-after-free Read in destroy_device_list representative crash: KASAN: slab-use-after-free Read in destroy_device_list, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 052d534373b7ed33712a63d5e17b2b6cdbce84fd gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ff5979fe7f290ea664fd232f3e2f10384c8bcc513b7c9b807fd24cee9e1a6325 all runs: crashed: KASAN: slab-use-after-free Read in destroy_device_list representative crash: KASAN: slab-use-after-free Read in destroy_device_list, types: [KASAN] the chunk can be dropped testing without sub-chunk 5/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 052d534373b7ed33712a63d5e17b2b6cdbce84fd gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dbf1e5e9a814738fd3e6e4c2f9fe176e211fc37471c026f8d3684f536a74615a all runs: crashed: KASAN: slab-use-after-free Read in kill_f2fs_super representative crash: KASAN: slab-use-after-free Read in kill_f2fs_super, types: [KASAN] the chunk can be dropped minimized to 401 configs; suspects: [6LOWPAN ARCH_ENABLE_MEMORY_HOTREMOVE ASUS_WMI CMA COMMON_CLK DAX DLM DRM DRM_BRIDGE DRM_CIRRUS_QEMU DRM_DEBUG_MM DRM_DISPLAY_DP_HELPER DRM_DISPLAY_HDCP_HELPER DRM_DISPLAY_HDMI_HELPER DRM_DISPLAY_HELPER DRM_DP_AUX_BUS DRM_DP_AUX_CHARDEV DRM_FBDEV_EMULATION DRM_GEM_SHMEM_HELPER 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 DRM_PANEL_ORIENTATION_QUIRKS DRM_SIMPLEDRM DRM_TTM DRM_TTM_HELPER DRM_UDL DRM_VGEM DRM_VIRTIO_GPU DRM_VIRTIO_GPU_KMS DRM_VKMS DRM_VMWGFX DRM_VRAM_HELPER DUMMY DVB_AF9013 DVB_AF9033 DVB_AS102 DVB_AS102_FE DVB_B2C2_FLEXCOP DVB_B2C2_FLEXCOP_USB DVB_CORE DVB_DIB3000MB DVB_DIB3000MC DVB_EC100 DVB_GP8PSK_FE DVB_RTL2830 DVB_RTL2832 DVB_RTL2832_SDR DVB_TEST_DRIVERS DVB_TTUSB_BUDGET DVB_TTUSB_DEC DVB_USB DVB_USB_A800 DVB_USB_AF9005 DVB_USB_AF9005_REMOTE DVB_USB_AF9015 DVB_USB_AF9035 DVB_USB_ANYSEE DVB_USB_AU6610 DVB_USB_AZ6007 DVB_USB_AZ6027 DVB_USB_CE6230 DVB_USB_CINERGY_T2 DVB_USB_CXUSB DVB_USB_DIB0700 DVB_USB_DIB3000MC DVB_USB_DIBUSB_MB DVB_USB_DIBUSB_MC DVB_USB_DIGITV DVB_USB_DTT200U DVB_USB_DTV5100 DVB_USB_DVBSKY DVB_USB_DW2102 DVB_USB_EC168 DVB_USB_GL861 DVB_USB_GP8PSK DVB_USB_LME2510 DVB_USB_M920X DVB_USB_MXL111SF DVB_USB_NOVA_T_USB2 DVB_USB_OPERA1 DVB_USB_PCTV452E DVB_USB_RTL28XXU DVB_USB_TECHNISAT_USB2 DVB_USB_TTUSB2 DVB_USB_UMT_010 DVB_USB_V2 DVB_USB_VP702X DVB_USB_VP7045 DVB_USB_ZD1301 DVB_VIDTV DVB_ZL10353 ECRYPT_FS ECRYPT_FS_MESSAGING EDAC EEPROM_93CX6 EFS_FS ENCRYPTED_KEYS EQUALIZER EROFS_FS EROFS_FS_POSIX_ACL EROFS_FS_SECURITY EROFS_FS_XATTR EROFS_FS_ZIP EVM EVM_ADD_XATTRS EVM_ATTR_FSUUID EXFAT_FS EXPORTFS_BLOCK_OPS EXT3_FS EXT3_FS_POSIX_ACL EXT3_FS_SECURITY EXTCON EXTCON_INTEL_CHT_WC F2FS_CHECK_FS F2FS_FAULT_INJECTION F2FS_FS F2FS_FS_COMPRESSION F2FS_FS_LZ4 F2FS_FS_LZ4HC F2FS_FS_LZO F2FS_FS_LZORLE F2FS_FS_POSIX_ACL F2FS_FS_SECURITY F2FS_FS_XATTR F2FS_FS_ZSTD F2FS_STAT_FS FANOTIFY FANOTIFY_ACCESS_PERMISSIONS FB FB_CFB_COPYAREA FB_CFB_FILLRECT FB_CFB_IMAGEBLIT FB_CORE FB_DEFERRED_IO FB_IOMEM_FOPS FB_IOMEM_HELPERS FB_NOTIFY FB_SYSMEM_FOPS FB_SYSMEM_HELPERS FB_SYSMEM_HELPERS_DEFERRED FB_SYS_COPYAREA FB_SYS_FILLRECT FB_SYS_IMAGEBLIT FB_TILEBLITTING FB_VESA FB_VGA16 FB_VIRTUAL FDDI FIREWIRE FIREWIRE_NET FIREWIRE_OHCI FIREWIRE_SBP2 FONT_8x16 FONT_8x8 FONT_SUPPORT FRAMEBUFFER_CONSOLE FRAMEBUFFER_CONSOLE_DETECT_PRIMARY FRAMEBUFFER_CONSOLE_ROTATION FS_DAX FS_DAX_PMD FS_ENCRYPTION FS_ENCRYPTION_ALGS FS_STACK FS_VERITY FS_VERITY_BUILTIN_SIGNATURES FTL FUSE_DAX FUSE_FS FW_LOADER_COMPRESS FW_LOADER_PAGED_BUF FW_LOADER_SYSFS FW_LOADER_USER_HELPER FW_LOADER_USER_HELPER_FALLBACK GACT_PROB GARP GENERIC_PHY GET_FREE_REGION GFS2_FS GFS2_FS_LOCKING_DLM GOOGLE_COREBOOT_TABLE GOOGLE_FIRMWARE GOOGLE_MEMCONSOLE GOOGLE_MEMCONSOLE_COREBOOT GOOGLE_VPD GPIOLIB GPIOLIB_IRQCHIP GPIO_ACPI GPIO_DLN2 GPIO_VIPERBOARD GREENASIA_FF GREYBUS GREYBUS_BRIDGED_PHY GREYBUS_ES2 GREYBUS_HID GREYBUS_USB GTP GUEST_PERF_EVENTS GVE HAVE_ARCH_NODE_DEV_GROUP HAVE_ARCH_USERFAULTFD_MINOR HAVE_ARCH_USERFAULTFD_WP HAVE_BOOTMEM_INFO_NODE HAVE_CLK_PREPARE HAVE_KVM_CPU_RELAX_INTERCEPT HAVE_KVM_DIRTY_RING HAVE_KVM_DIRTY_RING_ACQ_REL HAVE_KVM_DIRTY_RING_TSO HAVE_KVM_EVENTFD HAVE_KVM_IRQCHIP HAVE_KVM_IRQFD HAVE_KVM_IRQ_BYPASS HAVE_KVM_IRQ_ROUTING HAVE_KVM_MSI HAVE_KVM_NO_POLL HAVE_KVM_PFNCACHE HAVE_KVM_PM_NOTIFIER HAVE_SCHED_AVG_IRQ HDLC HDLC_CISCO HDLC_FR HDLC_PPP HDLC_RAW HDLC_RAW_ETH HDLC_X25 HDMI HFSPLUS_FS HFS_FS HID_ACCUTOUCH HID_ACRUX HID_ACRUX_FF HID_ALPS HID_APPLEIR HID_ASUS HID_AUREAL HID_BATTERY_STRENGTH HID_BETOP_FF HID_CMEDIA HID_CORSAIR HID_CP2112 HID_ELECOM HID_ELO HID_EMS_FF HID_GEMBIRD HID_GFRM HID_GREENASIA HID_GT683R HID_HOLTEK HID_ICADE HID_KEYTOUCH HID_KYE HID_LCPOWER HID_LED HID_LENOVO HID_LOGITECH_DJ HID_LOGITECH_HIDPP HID_MAGICMOUSE HID_MAYFLASH HID_MULTITOUCH HID_NTI HID_ORTEK HID_PENMOUNT HID_PICOLCD HID_PICOLCD_BACKLIGHT HID_PICOLCD_CIR HID_PICOLCD_FB HID_PICOLCD_LCD HID_PICOLCD_LEDS HID_PLANTRONICS HID_PRIMAX HID_PRODIKEYS HID_RETRODE HID_RMI HID_ROCCAT HID_SAITEK HID_SENSOR_ACCEL_3D HID_SENSOR_ALS HID_SENSOR_CUSTOM_SENSOR HID_SENSOR_DEVICE_ROTATION HID_SENSOR_GYRO_3D HID_SENSOR_HUB HID_SENSOR_HUMIDITY HID_SENSOR_IIO_COMMON HID_SENSOR_IIO_TRIGGER HID_SENSOR_INCLINOMETER_3D HID_SENSOR_MAGNETOMETER_3D HID_SENSOR_PRESS HID_SENSOR_PROX HID_SENSOR_TEMP HID_SPEEDLINK HID_STEELSERIES HID_THINGM HID_TIVO HID_TWINHAN HID_UCLOGIC HID_UDRAW_PS3 HID_WACOM HID_WALTOP HID_WIIMOTE HID_XINMO HID_ZYDACRON HMM_MIRROR HOLTEK_FF HOTPLUG_PCI_PCIE HPET_MMAP HPET_MMAP_DEFAULT HPFS_FS I2C_ALGOBIT I2C_CHARDEV I2C_DESIGNWARE_CORE I2C_DESIGNWARE_PLATFORM I2C_DIOLAN_U2C I2C_DLN2 I2C_MUX I2C_MUX_REG I2C_ROBOTFUZZ_OSIF I2C_SI4713 I2C_SLAVE I2C_SLAVE_EEPROM I2C_TINY_USB I2C_VIPERBOARD IEEE802154 IEEE802154_6LOWPAN IEEE802154_ATUSB IEEE802154_DRIVERS IEEE802154_HWSIM IEEE802154_NL802154_EXPERIMENTAL IEEE802154_SOCKET IFB IIO IIO_BUFFER IIO_KFIFO_BUF IIO_TRIGGER IIO_TRIGGERED_BUFFER IKCONFIG IKCONFIG_PROC IMA IMA_APPRAISE IMA_APPRAISE_MODSIG IMA_DEFAULT_HASH_SHA256 IMA_LSM_RULES IMA_MEASURE_ASYMMETRIC_KEYS IMA_NG_TEMPLATE IMA_QUEUE_EARLY_BOOT_KEYS IMA_READ_POLICY IMA_WRITE_POLICY INET6_ESPINTCP INET6_ESP_OFFLOAD INET6_IPCOMP INET6_TUNNEL INET6_XFRM_TUNNEL INET_AH INET_DCCP_DIAG INET_DIAG INET_DIAG_DESTROY INET_ESP INET_ESPINTCP INET_ESP_OFFLOAD INET_IPCOMP INET_MPTCP_DIAG INET_RAW_DIAG INET_SCTP_DIAG INET_TCP_DIAG INET_UDP_DIAG INET_XFRM_TUNNEL INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_ADDR_TRANS_CONFIGFS INFINIBAND_IPOIB INFINIBAND_IPOIB_CM INFINIBAND_IPOIB_DEBUG INFINIBAND_ISER INFINIBAND_ON_DEMAND_PAGING INFINIBAND_RTRS INFINIBAND_SRP INFINIBAND_USER_ACCESS INFINIBAND_USER_MAD INFINIBAND_USER_MEM INPUT_ATI_REMOTE2 INPUT_CM109 INPUT_IMS_PCU INPUT_JOYDEV INPUT_KEYSPAN_REMOTE INPUT_LEDS INPUT_MOUSEDEV INPUT_MOUSEDEV_PSAUX INPUT_POWERMATE INPUT_UINPUT INPUT_YEALINK INTEGRITY INTEGRITY_ASYMMETRIC_KEYS INTEGRITY_AUDIT INTEGRITY_SIGNATURE INTEGRITY_TRUSTED_KEYRING INTEL_IDMA64 INTEL_IOATDMA INTEL_IOMMU_DEFAULT_ON INTEL_IOMMU_SVM INTEL_ISH_HID INTEL_SOC_PMIC_CHTWC INTERVAL_TREE INTERVAL_TREE_SPAN_ITER IOMMUFD IOMMUFD_DRIVER IOMMUFD_TEST IOMMU_SVA IP6_NF_MATCH_AH IP6_NF_MATCH_EUI64 IP6_NF_MATCH_FRAG IP6_NF_MATCH_HL IP6_NF_MATCH_MH IP6_NF_MATCH_OPTS IP6_NF_MATCH_RPFILTER IP6_NF_MATCH_RT IP6_NF_MATCH_SRH IP6_NF_NAT IP6_NF_RAW IP6_NF_SECURITY IP6_NF_TARGET_HL IP6_NF_TARGET_MASQUERADE IP6_NF_TARGET_NPT IP6_NF_TARGET_SYNPROXY IPV6_FOU IPV6_FOU_TUNNEL IPV6_GRE IPV6_ILA IPV6_MIP6 IPV6_MROUTE IPV6_MROUTE_MULTIPLE_TABLES IPV6_MULTIPLE_TABLES IPV6_OPTIMISTIC_DAD IPV6_PIMSM_V2 IPV6_ROUTER_PREF IPV6_ROUTE_INFO IPV6_RPL_LWTUNNEL IPV6_SEG6_BPF IPV6_SEG6_HMAC IPV6_SEG6_LWTUNNEL IPV6_SIT_6RD IPV6_SUBTREES IPV6_TUNNEL IPV6_VTI IPVLAN IPVLAN_L3S IPVTAP IP_DCCP IP_DCCP_CCID3 IP_DCCP_TFRC_LIB IP_FIB_TRIE_STATS IP_MROUTE_MULTIPLE_TABLES IP_NF_ARPFILTER IP_NF_ARPTABLES IP_NF_ARP_MANGLE IP_NF_MATCH_AH IP_NF_MATCH_ECN IP_NF_MATCH_RPFILTER IP_NF_MATCH_TTL IP_NF_RAW IP_NF_SECURITY IP_NF_TARGET_ECN IP_NF_TARGET_NETMAP IP_NF_TARGET_REDIRECT IP_NF_TARGET_SYNPROXY IP_NF_TARGET_TTL IP_ROUTE_CLASSID IP_SCTP IP_SET IP_SET_BITMAP_IP IP_SET_BITMAP_IPMAC IP_SET_BITMAP_PORT IP_SET_HASH_IP IP_SET_HASH_IPMAC IP_SET_HASH_IPMARK IP_SET_HASH_IPPORT IP_SET_HASH_IPPORTIP IP_SET_HASH_IPPORTNET IP_SET_HASH_MAC IP_SET_HASH_NET IP_SET_HASH_NETIFACE IP_SET_HASH_NETNET IP_SET_HASH_NETPORT IP_SET_HASH_NETPORTNET IP_SET_LIST_SET IP_VS IP_VS_DH IP_VS_FO IP_VS_FTP IP_VS_IPV6 IP_VS_LBLC IP_VS_LBLCR IP_VS_LC IP_VS_PROTO_TCP IRQ_TIME_ACCOUNTING LAPB LCD_CLASS_DEVICE MAC802154 MEDIA_DIGITAL_TV_SUPPORT MEDIA_RADIO_SUPPORT MEDIA_SDR_SUPPORT MEDIA_SUPPORT MEDIA_TEST_SUPPORT MEDIA_USB_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_DLN2 MFD_VIPERBOARD MPTCP MTD NETFILTER_ADVANCED NET_ACT_GACT NET_ACT_MIRRED NET_IPGRE_DEMUX NFT_FWD_NETDEV NF_TABLES NF_TABLES_NETDEV RADIO_ADAPTERS RADIO_SI4713 RAS RC_CORE RFKILL SND SOUND STAGING TRANSPARENT_HUGEPAGE VIDEO_DEV VIRTIO_FS WAN X86_HAVE_PAE ZONE_DEVICE] disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed picked [v6.7 v6.6 v6.5 v6.3 v6.1 v5.19 v5.17 v5.15 v5.12 v5.9 v5.6 v5.3 v5.0 v4.19] out of 30 release tags testing release v6.7 testing commit 0dd3ee31125508cd67f7e7172247f05b7fd1753a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9e3be4fb51f79fe0699b61f9d20e7d6e943c85af8ca8945ae29564f21a864a60 all runs: OK false negative chance: 0.000 # git bisect start 052d534373b7ed33712a63d5e17b2b6cdbce84fd 0dd3ee31125508cd67f7e7172247f05b7fd1753a Bisecting: 5298 revisions left to test after this (roughly 12 steps) [3e7aeb78ab01c2c2f0e1f784e5ddec88fcd3d106] Merge tag 'net-next-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next testing commit 3e7aeb78ab01c2c2f0e1f784e5ddec88fcd3d106 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 68854a3c57ceaaadddaf366cf4a2e424ff66a0c1d9fd3fa432f69d377306e4de all runs: crashed: KASAN: slab-use-after-free Read in kill_f2fs_super representative crash: KASAN: slab-use-after-free Read in kill_f2fs_super, types: [KASAN] # git bisect bad 3e7aeb78ab01c2c2f0e1f784e5ddec88fcd3d106 Bisecting: 2309 revisions left to test after this (roughly 11 steps) [0cb552aa97843f24549ce808883494138471c16b] Merge tag 'v6.8-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 testing commit 0cb552aa97843f24549ce808883494138471c16b gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 98d18f196294aa3e6f27e58a3ffa0dfe907d60da36583ce363862084da4fb5d4 all runs: crashed: KASAN: slab-use-after-free Read in kill_f2fs_super representative crash: KASAN: slab-use-after-free Read in kill_f2fs_super, types: [KASAN] # git bisect bad 0cb552aa97843f24549ce808883494138471c16b Bisecting: 1170 revisions left to test after this (roughly 10 steps) [9f9310bf87348e36a98ffa09c4e285908c14f592] Merge tag 'selinux-pr-20240105' of git://git.kernel.org/pub/scm/linux/kernel/git/pcmoore/selinux testing commit 9f9310bf87348e36a98ffa09c4e285908c14f592 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f17e3297e5bbe4d77e7cd03094afa918bbf971a8658ccf87b448aea3aeefdded all runs: OK false negative chance: 0.000 # git bisect good 9f9310bf87348e36a98ffa09c4e285908c14f592 Bisecting: 586 revisions left to test after this (roughly 9 steps) [32720aca900b226653c843bb4e06b8125312f214] Merge tag 'fsnotify_for_v6.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs testing commit 32720aca900b226653c843bb4e06b8125312f214 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2ba670539479523b531b07b775006dc05f0a7ebb379b50e99b3125e60ddfdfc9 all runs: OK false negative chance: 0.000 # git bisect good 32720aca900b226653c843bb4e06b8125312f214 Bisecting: 290 revisions left to test after this (roughly 8 steps) [0c59ae1290741854b6cf597ef05bfa9bc811389f] Merge tag 'afs-fix-rotation-20240105' of git://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs testing commit 0c59ae1290741854b6cf597ef05bfa9bc811389f gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 445918b87b5ab6e2c5d0d987096ab168cb3cc8a38e195ff28d861f6497272560 all runs: OK false negative chance: 0.000 # git bisect good 0c59ae1290741854b6cf597ef05bfa9bc811389f Bisecting: 145 revisions left to test after this (roughly 7 steps) [e9b21862587043e2e79ce114b15a578a09106e9e] crypto: sun8i-ce - Use helper to set reqsize testing commit e9b21862587043e2e79ce114b15a578a09106e9e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e762a7e6b33239e70c3de5b4254e552e484bd0e76b34c9862716cc04b563e9b7 all runs: OK false negative chance: 0.000 # git bisect good e9b21862587043e2e79ce114b15a578a09106e9e Bisecting: 75 revisions left to test after this (roughly 6 steps) [17b9e388c619ea4f1eae97833cdcadfbfe041650] Merge tag 'fscrypt-for-linus' of git://git.kernel.org/pub/scm/fs/fscrypt/linux testing commit 17b9e388c619ea4f1eae97833cdcadfbfe041650 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 29417e91889ba22b88c6a570598e5ead1aefc770555b453271713a317f30add9 all runs: crashed: KASAN: slab-use-after-free Read in kill_f2fs_super representative crash: KASAN: slab-use-after-free Read in kill_f2fs_super, types: [KASAN] # git bisect bad 17b9e388c619ea4f1eae97833cdcadfbfe041650 Bisecting: 34 revisions left to test after this (roughly 5 steps) [02e8fe1eca4c6ff5bf26718bb732379f3193534a] svcrdma: Update synopsis of svc_rdma_build_read_chunk() testing commit 02e8fe1eca4c6ff5bf26718bb732379f3193534a gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e765b0e75f74ccad97ee1be1acb13683f3865385e50ea403f0a5908e1dcb1797 all runs: OK false negative chance: 0.000 # git bisect good 02e8fe1eca4c6ff5bf26718bb732379f3193534a Bisecting: 17 revisions left to test after this (roughly 4 steps) [d3dba534100d4e9eb7a5204be97cd6f9ada2066e] svcrdma: Implement multi-stage Read completion again testing commit d3dba534100d4e9eb7a5204be97cd6f9ada2066e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 0949287dd1c91cce47c2a1af27d92fe8f12bf7493eef724a26d7b3432b712882 all runs: OK false negative chance: 0.000 # git bisect good d3dba534100d4e9eb7a5204be97cd6f9ada2066e Bisecting: 10 revisions left to test after this (roughly 3 steps) [d8c8e595dc31fb639bc4f8a202901afaa15bb13f] Merge tag 'dlm-6.8' of git://git.kernel.org/pub/scm/linux/kernel/git/teigland/linux-dlm testing commit d8c8e595dc31fb639bc4f8a202901afaa15bb13f gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 392aa5724a9e26bc6beb4985e120186499f72b825e3cf0b05fc08cd6dea01072 all runs: OK false negative chance: 0.000 # git bisect good d8c8e595dc31fb639bc4f8a202901afaa15bb13f Bisecting: 5 revisions left to test after this (roughly 3 steps) [2a0e85719892a1d63f8f287563e2c1778a77879e] fs: move fscrypt keyring destruction to after ->put_super testing commit 2a0e85719892a1d63f8f287563e2c1778a77879e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 85876cfc10cd1e81d502e1875aa94b7f6a714a519e12e1f9b227b6f137b85ee8 all runs: crashed: KASAN: slab-use-after-free Read in kill_f2fs_super representative crash: KASAN: slab-use-after-free Read in kill_f2fs_super, types: [KASAN] # git bisect bad 2a0e85719892a1d63f8f287563e2c1778a77879e Bisecting: 2 revisions left to test after this (roughly 1 step) [0fc24a6549f9b6efc538b67a098ab577b1f9a00e] fscrypt: update comment for do_remove_key() testing commit 0fc24a6549f9b6efc538b67a098ab577b1f9a00e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ef3254d4cbe1130e5dc40ec51a897f5aef37bca82216289201288b20870797b1 all runs: OK false negative chance: 0.000 # git bisect good 0fc24a6549f9b6efc538b67a098ab577b1f9a00e Bisecting: 0 revisions left to test after this (roughly 1 step) [275dca4630c165edea9abe27113766bc1173f878] f2fs: move release of block devices to after kill_block_super() testing commit 275dca4630c165edea9abe27113766bc1173f878 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b299a0e353a0f0157224028a15601c2e5bc715857dc65792fe7e92f784cfe42d all runs: crashed: KASAN: slab-use-after-free Read in kill_f2fs_super representative crash: KASAN: slab-use-after-free Read in kill_f2fs_super, types: [KASAN] # git bisect bad 275dca4630c165edea9abe27113766bc1173f878 Bisecting: 0 revisions left to test after this (roughly 0 steps) [c1f1f5bf413936a93fea0f920e9aafff3551ad56] fscrypt: document that CephFS supports fscrypt now testing commit c1f1f5bf413936a93fea0f920e9aafff3551ad56 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2aaf0e50e404d72a162ecc93b97428ed8f8d98e27b3591c208bf3749e98ac6f4 all runs: OK false negative chance: 0.000 # git bisect good c1f1f5bf413936a93fea0f920e9aafff3551ad56 275dca4630c165edea9abe27113766bc1173f878 is the first bad commit commit 275dca4630c165edea9abe27113766bc1173f878 Author: Eric Biggers Date: Wed Dec 27 11:14:28 2023 -0600 f2fs: move release of block devices to after kill_block_super() Call destroy_device_list() and free the f2fs_sb_info from kill_f2fs_super(), after the call to kill_block_super(). This is necessary to order it after the call to fscrypt_destroy_keyring() once generic_shutdown_super() starts calling fscrypt_destroy_keyring() just after calling ->put_super. This is because fscrypt_destroy_keyring() may call into f2fs_get_devices() via the fscrypt_operations. Reviewed-by: Chao Yu Link: https://lore.kernel.org/r/20231227171429.9223-2-ebiggers@kernel.org Signed-off-by: Eric Biggers fs/f2fs/super.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) accumulated error probability: 0.00 culprit signature: b299a0e353a0f0157224028a15601c2e5bc715857dc65792fe7e92f784cfe42d parent signature: 2aaf0e50e404d72a162ecc93b97428ed8f8d98e27b3591c208bf3749e98ac6f4 revisions tested: 22, total time: 10h7m45.20126137s (build: 6h6m34.647695906s, test: 3h29m35.615251805s) first bad commit: 275dca4630c165edea9abe27113766bc1173f878 f2fs: move release of block devices to after kill_block_super() recipients (to): ["chao@kernel.org" "chao@kernel.org" "ebiggers@google.com" "jaegeuk@kernel.org" "linux-f2fs-devel@lists.sourceforge.net"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: KASAN: slab-use-after-free Read in kill_f2fs_super F2FS-fs (loop0): Unrecognized mount option "18446744073709551615184467440737095516150177777777777777777777718446744073709551615”źû÷ǘ$H¦Qs¾G™" or missing value ================================================================== BUG: KASAN: slab-use-after-free in destroy_device_list fs/f2fs/super.c:1611 [inline] BUG: KASAN: slab-use-after-free in kill_f2fs_super+0x474/0x530 fs/f2fs/super.c:4933 Read of size 4 at addr ffff888173785774 by task syz-executor.0/2561 CPU: 0 PID: 2561 Comm: syz-executor.0 Not tainted 6.7.0-rc4-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/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 destroy_device_list fs/f2fs/super.c:1611 [inline] kill_f2fs_super+0x474/0x530 fs/f2fs/super.c:4933 deactivate_locked_super+0x9d/0x160 fs/super.c:484 mount_bdev+0x219/0x270 fs/super.c:1652 legacy_get_tree+0xfe/0x1f0 fs/fs_context.c:662 vfs_get_tree+0x82/0x220 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x878/0x1a00 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __x64_sys_mount+0x208/0x280 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b RIP: 0033:0x7fd1b4c7e4aa Code: d8 64 89 02 48 c7 c0 ff ff ff ff eb a6 e8 de 09 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 b0 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fd1b5a0cef8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5 RAX: ffffffffffffffda RBX: 00007fd1b5a0cf80 RCX: 00007fd1b4c7e4aa RDX: 00000000200000c0 RSI: 0000000020010280 RDI: 00007fd1b5a0cf40 RBP: 00000000200000c0 R08: 00007fd1b5a0cf80 R09: 0000000000000010 R10: 0000000000000010 R11: 0000000000000246 R12: 0000000020010280 R13: 00007fd1b5a0cf40 R14: 0000000000007e64 R15: 0000000020008000 Allocated by task 2561: 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:600 [inline] kzalloc include/linux/slab.h:721 [inline] f2fs_fill_super+0xeb/0x88d0 fs/f2fs/super.c:4397 mount_bdev+0x19e/0x270 fs/super.c:1650 legacy_get_tree+0xfe/0x1f0 fs/fs_context.c:662 vfs_get_tree+0x82/0x220 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x878/0x1a00 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __x64_sys_mount+0x208/0x280 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b Freed by task 2561: 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+0x15b/0x1b0 mm/kasan/common.c:200 kasan_slab_free include/linux/kasan.h:164 [inline] slab_free_hook mm/slub.c:1800 [inline] slab_free_freelist_hook+0x114/0x1e0 mm/slub.c:1826 slab_free mm/slub.c:3809 [inline] __kmem_cache_free+0xba/0x320 mm/slub.c:3822 f2fs_fill_super+0x170e/0x88d0 fs/f2fs/super.c:4883 mount_bdev+0x19e/0x270 fs/super.c:1650 legacy_get_tree+0xfe/0x1f0 fs/fs_context.c:662 vfs_get_tree+0x82/0x220 fs/super.c:1771 do_new_mount fs/namespace.c:3337 [inline] path_mount+0x878/0x1a00 fs/namespace.c:3664 do_mount fs/namespace.c:3677 [inline] __do_sys_mount fs/namespace.c:3886 [inline] __se_sys_mount fs/namespace.c:3863 [inline] __x64_sys_mount+0x208/0x280 fs/namespace.c:3863 do_syscall_x64 arch/x86/entry/common.c:51 [inline] do_syscall_64+0x40/0xe0 arch/x86/entry/common.c:82 entry_SYSCALL_64_after_hwframe+0x63/0x6b The buggy address belongs to the object at ffff888173784000 which belongs to the cache kmalloc-8k of size 8192 The buggy address is located 6004 bytes inside of freed 8192-byte region [ffff888173784000, ffff888173786000) The buggy address belongs to the physical page: page:ffffea0005cde000 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x173780 head:ffffea0005cde000 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 ffff888100042280 0000000000000000 0000000000000001 raw: 0000000000000000 0000000080020002 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 0xd2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC), pid 1613, tgid 1613 (syz-fuzzer), ts 24101337894, free_ts 24088460673 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x27f/0x2f0 mm/page_alloc.c:1537 prep_new_page mm/page_alloc.c:1544 [inline] get_page_from_freelist+0x653/0x40c0 mm/page_alloc.c:3312 __alloc_pages+0x1d0/0x470 mm/page_alloc.c:4568 alloc_pages_mpol+0x175/0x4a0 mm/mempolicy.c:2133 alloc_slab_page mm/slub.c:1870 [inline] allocate_slab+0x24b/0x360 mm/slub.c:2017 new_slab mm/slub.c:2070 [inline] ___slab_alloc+0x8ce/0x10e0 mm/slub.c:3223 __slab_alloc.constprop.0+0x4d/0x90 mm/slub.c:3322 __slab_alloc_node mm/slub.c:3375 [inline] slab_alloc_node mm/slub.c:3468 [inline] __kmem_cache_alloc_node+0x150/0x350 mm/slub.c:3517 kmalloc_trace+0x25/0xb0 mm/slab_common.c:1098 kmalloc include/linux/slab.h:600 [inline] kzalloc include/linux/slab.h:721 [inline] tomoyo_print_bprm security/tomoyo/audit.c:26 [inline] tomoyo_init_log+0xb57/0x1ee0 security/tomoyo/audit.c:264 tomoyo_supervisor+0x2a7/0xc40 security/tomoyo/common.c:2089 tomoyo_audit_env_log security/tomoyo/environ.c:36 [inline] tomoyo_env_perm+0x16c/0x1d0 security/tomoyo/environ.c:63 tomoyo_environ security/tomoyo/domain.c:672 [inline] tomoyo_find_next_domain+0xaf6/0x1db0 security/tomoyo/domain.c:878 tomoyo_bprm_check_security security/tomoyo/tomoyo.c:101 [inline] tomoyo_bprm_check_security+0x109/0x170 security/tomoyo/tomoyo.c:91 security_bprm_check+0x4f/0x80 security/security.c:1103 search_binary_handler fs/exec.c:1725 [inline] exec_binprm fs/exec.c:1779 [inline] bprm_execve fs/exec.c:1854 [inline] bprm_execve+0x5e4/0x14d0 fs/exec.c:1810 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+0x562/0xbd0 mm/page_alloc.c:2347 free_unref_page+0x33/0x350 mm/page_alloc.c:2487 __unfreeze_partials+0x1f3/0x210 mm/slub.c:2655 qlink_free mm/kasan/quarantine.c:168 [inline] qlist_free_all+0x6a/0x170 mm/kasan/quarantine.c:187 kasan_quarantine_reduce+0x180/0x1b0 mm/kasan/quarantine.c:294 __kasan_slab_alloc+0x65/0x90 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:763 [inline] slab_alloc_node mm/slub.c:3478 [inline] __kmem_cache_alloc_node+0x1bd/0x350 mm/slub.c:3517 __do_kmalloc_node mm/slab_common.c:1006 [inline] __kmalloc_node_track_caller+0x50/0x160 mm/slab_common.c:1027 __do_krealloc mm/slab_common.c:1395 [inline] krealloc+0x5d/0x100 mm/slab_common.c:1428 ima_collect_measurement+0x36c/0x930 security/integrity/ima/ima_api.c:297 process_measurement+0x952/0x1ce0 security/integrity/ima/ima_main.c:359 ima_file_check+0xb3/0x100 security/integrity/ima/ima_main.c:557 do_open fs/namei.c:3624 [inline] path_openat+0x12bf/0x2a40 fs/namei.c:3779 do_filp_open+0x1bc/0x400 fs/namei.c:3809 file_open_name+0x185/0x220 fs/open.c:1385 __do_sys_swapon+0x5fa/0x34f0 mm/swapfile.c:3018 Memory state around the buggy address: ffff888173785600: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888173785680: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb >ffff888173785700: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff888173785780: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff888173785800: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ==================================================================