ci2 starts bisection 2023-07-27 13:07:25.160164414 +0000 UTC m=+104.929863724 bisecting cause commit starting from 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 building syzkaller on 41fe1bae463b32861fb14e967372da7e318bc6e1 ensuring issue is reproducible on original commit 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 testing commit 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ba96e89b7875bbd8951ce9faf96dd167544b6634d0fcc80c1a0c7b75ae2e67c0 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, 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 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2cc2a076ff3c46bcbadc4cadb786b42135f5030260295cabd9dc6773ea2d67f4 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] the bug reproduces without the instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed kconfig minimization: base=3876 full=7645 leaves diff=1998 split chunks (needed=false): <1998> split chunk #0 of len 1998 into 5 parts testing without sub-chunk 1/5 disabling configs for [BUG LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN], they are not needed testing commit 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2614eaf205d1cffe40fde48f58f9b7f333bfa4749987dcfc451a7538d85a0710 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [ATOMIC_SLEEP HANG LEAK UBSAN BUG LOCKDEP], they are not needed testing commit 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: e45333140190cb34f26c97f557ebda5b629dee552d5083828526f8ea7def1f2e all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, 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 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 264df8c0607bd38f9ed4738946922dcc0a622fc26b5c25434f2712b84c3cb127 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] the chunk can be dropped testing without sub-chunk 4/5 disabling configs for [LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG], they are not needed testing commit 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b95182f22f8a293068e8ee37ca55e87647d37d863f8df52a54479f97c452b138 all runs: OK false negative chance: 0.000 testing without sub-chunk 5/5 disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing commit 5f0bc0b042fc77ff70e14c790abdec960cde4ec1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cf272a41c63e80c771b7f7197ab299a2943ce35167f95fb2d631bc3a85dde6f8 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] the chunk can be dropped minimized to 400 configs; suspects: [AF_RXRPC ARCH_ENABLE_MEMORY_HOTREMOVE ATM AX25 CFG80211 CMA DAX DLM DVB_CORE ENCRYPTED_KEYS EXTCON GENEVE GPIOLIB HAMRADIO HAVE_CLK HID_SENSOR_HUB HID_SMARTJOYPLUS HID_THRUSTMASTER IIO INFINIBAND INFINIBAND_ADDR_TRANS INFINIBAND_IPOIB INFINIBAND_USER_ACCESS INFINIBAND_VIRT_DMA INPUT_TABLET INPUT_TOUCHSCREEN IP_SCTP L2TP LIBNVDIMM MEDIA_COMMON_OPTIONS MEDIA_DIGITAL_TV_SUPPORT MEDIA_RADIO_SUPPORT MEDIA_SDR_SUPPORT MEDIA_SUPPORT MEDIA_USB_SUPPORT MEMORY_HOTPLUG MEMORY_HOTREMOVE MFD_DLN2 MFD_RETU MMC MTD MTD_UBI NETFILTER_CONNCOUNT NET_IPGRE NET_IPGRE_DEMUX NFS_V4_1 NF_TABLES NF_TABLES_ARP NF_TPROXY_IPV4 NF_TPROXY_IPV6 NILFS2_FS NLMON NLS_CODEPAGE_1250 NLS_CODEPAGE_1251 NLS_CODEPAGE_737 NLS_CODEPAGE_775 NLS_CODEPAGE_850 NLS_CODEPAGE_852 NLS_CODEPAGE_855 NLS_CODEPAGE_857 NLS_CODEPAGE_860 NLS_CODEPAGE_861 NLS_CODEPAGE_862 NLS_CODEPAGE_863 NLS_CODEPAGE_864 NLS_CODEPAGE_865 NLS_CODEPAGE_866 NLS_CODEPAGE_869 NLS_CODEPAGE_874 NLS_CODEPAGE_932 NLS_CODEPAGE_936 NLS_CODEPAGE_949 NLS_CODEPAGE_950 NLS_ISO8859_13 NLS_ISO8859_14 NLS_ISO8859_15 NLS_ISO8859_2 NLS_ISO8859_3 NLS_ISO8859_4 NLS_ISO8859_5 NLS_ISO8859_6 NLS_ISO8859_7 NLS_ISO8859_8 NLS_ISO8859_9 NLS_KOI8_R NLS_KOI8_U NLS_MAC_CELTIC NLS_MAC_CENTEURO NLS_MAC_CROATIAN NLS_MAC_CYRILLIC NLS_MAC_GAELIC NLS_MAC_GREEK NLS_MAC_ICELAND NLS_MAC_INUIT NLS_MAC_ROMAN NLS_MAC_ROMANIAN NLS_MAC_TURKISH NOP_USB_XCEIV NOZOMI NTFS3_FS NTFS3_FS_POSIX_ACL NTFS3_LZX_XPRESS NTFS_FS NTFS_RW NULL_TTY NUMA_BALANCING NUMA_BALANCING_DEFAULT_ENABLED NUMA_EMU NUMA_KEEP_MEMINFO NVDIMM_DAX NVDIMM_KEYS NVDIMM_PFN NVME_CORE NVME_FABRICS NVME_FC NVME_MULTIPATH NVME_RDMA NVME_TARGET NVME_TARGET_FC NVME_TARGET_FCLOOP NVME_TARGET_LOOP NVME_TARGET_RDMA NVME_TARGET_TCP NVME_TCP N_GSM N_HDLC OCFS2_DEBUG_FS OCFS2_FS OCFS2_FS_O2CB OCFS2_FS_STATS OCFS2_FS_USERSPACE_CLUSTER OF_GPIO OF_PMEM OMFS_FS OPENVSWITCH OPENVSWITCH_GENEVE OPENVSWITCH_GRE OPENVSWITCH_VXLAN ORANGEFS_FS OSF_PARTITION OVERLAY_FS OVERLAY_FS_INDEX OVERLAY_FS_REDIRECT_ALWAYS_FOLLOW OVERLAY_FS_REDIRECT_DIR PACKET_DIAG PADATA PAGE_IDLE_FLAG PAGE_POOL PAGE_REPORTING PAHOLE_HAS_BTF_TAG PAHOLE_HAS_LANG_EXCLUDE PAHOLE_HAS_SPLIT_BTF PARPORT PARPORT_NOT_PC PARTITION_ADVANCED PCCARD PCCARD_NONSTATIC PCIEAER PCI_ENDPOINT PCI_IOV PCMCIA PCMCIA_LOAD_CIS PERCPU_STATS PERSISTENT_KEYRINGS PHONET PHYLINK PHY_CPCAP_USB PHY_QCOM_USB_HS PHY_QCOM_USB_HSIC PHY_SAMSUNG_USB2 PHY_TUSB1210 PKCS7_TEST_KEY PKCS8_PRIVATE_KEY_PARSER PM_CLK PNFS_BLOCK PNFS_FILE_LAYOUT PNFS_FLEXFILE_LAYOUT PPP PPPOATM PPPOE PPPOE_HASH_BITS_4 PPPOL2TP PPP_ASYNC PPP_BSDCOMP PPP_DEFLATE PPP_FILTER PPP_MPPE PPP_MULTILINK PPP_SYNC_TTY PPTP PREEMPT PREEMPT_NOTIFIERS PRISM2_USB PROC_CHILDREN PSI PSTORE PSTORE_842_COMPRESS PSTORE_COMPRESS PSTORE_DEFLATE_COMPRESS PSTORE_DEFLATE_COMPRESS_DEFAULT PSTORE_LZ4HC_COMPRESS PSTORE_LZ4_COMPRESS PSTORE_LZO_COMPRESS PSTORE_ZSTD_COMPRESS QCOM_QMI_HELPERS QNX4FS_FS QNX6FS_FS QRTR QRTR_TUN R8712U RADIO_ADAPTERS RADIO_SHARK RADIO_SHARK2 RADIO_TEA575X RAID6_PQ RAID_ATTRS RC_ATI_REMOTE RC_CORE RC_DEVICES RDMA_RXE RDMA_SIW RDS RDS_RDMA RDS_TCP READ_ONLY_THP_FOR_FS REALTEK_AUTOPM REED_SOLOMON REED_SOLOMON_DEC8 REGMAP REGMAP_I2C REGMAP_IRQ REGMAP_MMIO REGULATOR REGULATOR_TWL4030 REISERFS_FS REISERFS_FS_POSIX_ACL REISERFS_FS_SECURITY REISERFS_FS_XATTR REISERFS_PROC_INFO RESET_CONTROLLER RFKILL RFKILL_INPUT RFKILL_LEDS RMI4_2D_SENSOR RMI4_CORE RMI4_F03 RMI4_F03_SERIO RMI4_F11 RMI4_F12 RMI4_F30 ROMFS_BACKED_BY_BOTH ROMFS_FS ROMFS_ON_BLOCK ROMFS_ON_MTD ROSE RTC_DRV_HID_SENSOR_TIME RXKAD SCHED_CORE SCSI_FC_ATTRS SCSI_HPSA SCSI_ISCSI_ATTRS SCSI_LOGGING SCSI_NETLINK SCSI_SAS_ATA SCSI_SAS_ATTRS SCSI_SAS_LIBSAS SCSI_SCAN_ASYNC SCSI_SRP_ATTRS SCTP_COOKIE_HMAC_MD5 SCTP_COOKIE_HMAC_SHA1 SCTP_DEFAULT_COOKIE_HMAC_MD5 SECONDARY_TRUSTED_KEYRING SECURITY_INFINIBAND SECURITY_NETWORK_XFRM SECURITY_SMACK_NETFILTER SERIAL_DEV_BUS SERIAL_DEV_CTRL_TTYPORT SERIAL_MCTRL_GPIO SGI_PARTITION SIGNATURE SIGNED_PE_FILE_VERIFICATION SLHC SLIP SLIP_COMPRESSED SLIP_MODE_SLIP6 SLIP_SMART SMARTJOYPLUS_FF SMBFS SMC SMC_DIAG SMSC_PHY SMS_SIANO_MDTV SMS_SIANO_RC SMS_USB_DRV SND SND_ALOOP SND_BCD2000 SND_CTL_FAST_LOOKUP SND_CTL_LED SND_DEBUG SND_DMA_SGBUF SND_DRIVERS SND_DUMMY SND_DYNAMIC_MINORS SND_HDA SND_HDA_CODEC_ANALOG SND_HDA_CODEC_CA0110 SND_HDA_CODEC_CA0132 SND_HDA_CODEC_CIRRUS SND_HDA_CODEC_CMEDIA SND_HDA_CODEC_CONEXANT SND_HDA_CODEC_HDMI SND_HDA_CODEC_REALTEK SND_HDA_CODEC_SI3054 SND_HDA_CODEC_SIGMATEL SND_HDA_CODEC_VIA SND_HDA_COMPONENT SND_HDA_CORE SND_HDA_GENERIC SND_HDA_GENERIC_LEDS SND_HDA_HWDEP SND_HDA_I915 SND_HDA_INPUT_BEEP SND_HDA_INTEL SND_HDA_PATCH_LOADER SND_HDA_RECONFIG SND_HRTIMER SND_HWDEP SND_INTEL_DSP_CONFIG SND_INTEL_NHLT SND_INTEL_SOUNDWIRE_ACPI SND_JACK SND_JACK_INPUT_DEV SND_MIXER_OSS SND_OSSEMUL SND_PCI SND_PCM SND_PCMCIA SND_PCM_OSS SND_PCM_OSS_PLUGINS SND_PCM_TIMER SND_PCM_XRUN_DEBUG SND_PROC_FS SND_RAWMIDI SND_SEQUENCER SND_SEQUENCER_OSS SND_SEQ_DEVICE SND_SEQ_DUMMY SND_SEQ_HRTIMER_DEFAULT SND_SEQ_MIDI SND_SEQ_MIDI_EVENT SND_SEQ_VIRMIDI SND_SUPPORT_OLD_API SND_TIMER SND_USB SND_USB_6FIRE SND_USB_AUDIO SND_USB_AUDIO_USE_MEDIA_CONTROLLER SND_USB_CAIAQ SND_USB_CAIAQ_INPUT SND_USB_HIFACE SND_USB_LINE6 SND_USB_POD SND_USB_PODHD SND_USB_TONEPORT SND_USB_UA101 SND_USB_US122L SND_USB_USX2Y SND_USB_VARIAX SND_VERBOSE_PROCFS SND_VIRMIDI SND_VIRTIO SND_VMASTER SND_X86 SOCK_VALIDATE_XMIT SOLARIS_X86_PARTITION SONY_FF SOUND SOUND_OSS_CORE SOUND_OSS_CORE_PRECLAIM SPI SPI_DLN2 SPI_DYNAMIC SPI_MASTER SQUASHFS SQUASHFS_4K_DEVBLK_SIZE SQUASHFS_COMPILE_DECOMP_SINGLE SQUASHFS_DECOMP_SINGLE SQUASHFS_FILE_DIRECT SQUASHFS_LZ4 SQUASHFS_LZO SQUASHFS_XATTR SQUASHFS_XZ SQUASHFS_ZLIB SQUASHFS_ZSTD SSB SSB_PCIHOST_POSSIBLE SSB_PCMCIAHOST_POSSIBLE SSB_SDIOHOST_POSSIBLE STAGING STP STREAM_PARSER SUNRPC_BACKCHANNEL SUN_PARTITION SW_SYNC SYSFB SYSV68_PARTITION SYSV_FS TABLET_USB_ACECAD TABLET_USB_AIPTEK TABLET_USB_HANWANG TABLET_USB_KBTAB TABLET_USB_PEGASUS TAHVO_USB TAHVO_USB_HOST_BY_DEFAULT TASKS_TRACE_RCU TCG_CRB TCG_TIS TCG_TIS_CORE TCG_TPM TCP_CONG_BBR TCP_CONG_BIC TCP_CONG_CDG TCP_CONG_DCTCP TCP_CONG_HSTCP TCP_CONG_HTCP TCP_CONG_HYBLA TCP_CONG_ILLINOIS TCP_CONG_LP TCP_CONG_NV TCP_CONG_SCALABLE TCP_CONG_VEGAS TCP_CONG_VENO TCP_CONG_WESTWOOD TCP_CONG_YEAH TEXTSEARCH TEXTSEARCH_BM TEXTSEARCH_FSM TEXTSEARCH_KMP THERMAL_NETLINK THP_SWAP THRUSTMASTER_FF TIPC TIPC_CRYPTO TIPC_DIAG TIPC_MEDIA_IB TIPC_MEDIA_UDP TLS TLS_TOE TOUCHSCREEN_SUR40 TOUCHSCREEN_USB_3M TOUCHSCREEN_USB_COMPOSITE TOUCHSCREEN_USB_DMC_TSC10 TOUCHSCREEN_USB_E2I TOUCHSCREEN_USB_EASYTOUCH TOUCHSCREEN_USB_EGALAX TOUCHSCREEN_USB_ELO TOUCHSCREEN_USB_ETT_TC45USB TOUCHSCREEN_USB_ETURBO TOUCHSCREEN_USB_GENERAL_TOUCH TOUCHSCREEN_USB_GOTOP TOUCHSCREEN_USB_GUNZE TOUCHSCREEN_USB_IDEALTEK TOUCHSCREEN_USB_IRTOUCH TOUCHSCREEN_USB_ITM TOUCHSCREEN_USB_JASTEC TOUCHSCREEN_USB_NEXIO TOUCHSCREEN_USB_PANJIT TOUCHSCREEN_USB_ZYTRONIC TRANSPARENT_HUGEPAGE TRANSPARENT_HUGEPAGE_MADVISE TTPCI_EEPROM TTY_PRINTK TUN_VNET_CROSS_LE TWL4030_CORE TYPEC TYPEC_FUSB302 TYPEC_TCPCI TYPEC_TCPM TYPEC_TPS6598X TYPEC_UCSI UBIFS_ATIME_SUPPORT UBIFS_FS UBIFS_FS_ADVANCED_COMPR UBIFS_FS_LZO UBIFS_FS_SECURITY UBIFS_FS_XATTR UBIFS_FS_ZLIB UBIFS_FS_ZSTD UCSI_ACPI UDF_FS UDMABUF UFS_FS UFS_FS_WRITE UHID ULTRIX_PARTITION UNICODE UNIXWARE_DISKLABEL UNIX_DIAG USB4 USB4_NET USBIP_CORE USBIP_HOST USBIP_VHCI_HCD USBIP_VUDC USBPCWATCHDOG USB_ACM USB_ADUTUX USB_AIRSPY USB_ALI_M5632 USB_AN2720 USB_APPLEDISPLAY USB_ARMLINUX USB_BDC_UDC USB_BELKIN USB_C67X00_HCD USB_CATC USB_CDC_PHONET USB_CHAOSKEY USB_CHIPIDEA USB_CHIPIDEA_HOST USB_CHIPIDEA_PCI USB_CHIPIDEA_UDC USB_CONFIGFS USB_CONFIGFS_ACM USB_CONFIGFS_ECM USB_CONFIGFS_ECM_SUBSET USB_CONFIGFS_EEM USB_CONFIGFS_F_FS USB_CONFIGFS_F_HID USB_DWC2 USB_GADGET USB_MUSB_HDRC USB_NET_CDC_SUBSET USB_ROLE_SWITCH USB_STORAGE_REALTEK USB_ULPI_BUS USB_USBNET VIDEO_DEV VXLAN WIRELESS WLAN ZONE_DEVICE] disabling configs for [HANG LEAK UBSAN BUG LOCKDEP ATOMIC_SLEEP], they are not needed testing release v6.4 testing commit 6995e2de6891c724bfeb2db33d7b87775f913ad1 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c1c7ed5377833a9ae1977ffd4a54211405f2902c33c8fe9e2c85f161cbf5bf24 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] testing release v6.3 testing commit 457391b0380335d5e9a5babdec90ac53928b23b4 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a3e54eb72c3260983947592d65e38b7e0179948efbad25b05f0d40ac6d919e13 run #0: basic kernel testing failed: lost connection to test machine run #1: OK run #2: OK run #3: OK run #4: OK run #5: OK run #6: OK run #7: OK run #8: OK run #9: OK false negative chance: 0.000 # git bisect start 6995e2de6891c724bfeb2db33d7b87775f913ad1 457391b0380335d5e9a5babdec90ac53928b23b4 Bisecting: 8012 revisions left to test after this (roughly 13 steps) [d42b1c47570eb2ed818dc3fe94b2678124af109d] Merge tag 'devicetree-for-6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux testing commit d42b1c47570eb2ed818dc3fe94b2678124af109d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7f446cfff27b11843858c2acec0ed1bdbb3817c3473fad9224060dd81125fc0d all runs: OK false negative chance: 0.000 # git bisect good d42b1c47570eb2ed818dc3fe94b2678124af109d Bisecting: 3963 revisions left to test after this (roughly 12 steps) [58390c8ce1bddb6c623f62e7ed36383e7fa5c02f] Merge tag 'iommu-updates-v6.4' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu testing commit 58390c8ce1bddb6c623f62e7ed36383e7fa5c02f gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 04e5ff1ef7c1d61eb5a63d5b55385bb3c5f148209558cfb3ed57f99be1931dca all runs: OK false negative chance: 0.000 # git bisect good 58390c8ce1bddb6c623f62e7ed36383e7fa5c02f Bisecting: 1979 revisions left to test after this (roughly 11 steps) [adfbf653a3ba6bb8bbb84ed90bf4f1533db545d3] Merge tag 'fbdev-for-6.4-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/linux-fbdev testing commit adfbf653a3ba6bb8bbb84ed90bf4f1533db545d3 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bd634b714a1da94a4b72915dec08f0e6ac9375341d4cf689bde6558c8bb659a4 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] # git bisect bad adfbf653a3ba6bb8bbb84ed90bf4f1533db545d3 Bisecting: 992 revisions left to test after this (roughly 10 steps) [d4fba4dfdcce1e23bc769591bc2e993118391b53] Merge tag 'kvm-riscv-6.4-1' of https://github.com/kvm-riscv/linux into HEAD testing commit d4fba4dfdcce1e23bc769591bc2e993118391b53 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 6a9fc0ca3147f005ebc354ebf424ff38ba23c47d3780c05b33b34bb108bea4f9 all runs: OK false negative chance: 0.000 # git bisect good d4fba4dfdcce1e23bc769591bc2e993118391b53 Bisecting: 527 revisions left to test after this (roughly 9 steps) [17784de648be93b4eef0ef8fe28a16ff04feecc7] Merge tag 'core-debugobjects-2023-05-06' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit 17784de648be93b4eef0ef8fe28a16ff04feecc7 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 1c1e8f48051c43105928d1a2a1a798a6704400212c4dd0d38a36dc0961600b83 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] # git bisect bad 17784de648be93b4eef0ef8fe28a16ff04feecc7 Bisecting: 231 revisions left to test after this (roughly 8 steps) [b115d85a9584c98f9a7dec209d835462aa1adc09] Merge tag 'locking-core-2023-05-05' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip testing commit b115d85a9584c98f9a7dec209d835462aa1adc09 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 8a79b698b5db3dd370d0acfbd5c8a16fac187fa59eadcba20dbfef591904494d all runs: OK false negative chance: 0.000 # git bisect good b115d85a9584c98f9a7dec209d835462aa1adc09 Bisecting: 114 revisions left to test after this (roughly 7 steps) [2e1e1337881b0e9844d687982aa54b31b1269b11] Merge tag '6.4-rc-ksmbd-server-fixes-part2' of git://git.samba.org/ksmbd testing commit 2e1e1337881b0e9844d687982aa54b31b1269b11 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 7dd99461c3519ccfb73eca3f4968242f8aa001139946a676e6eeec1bd179b4e9 all runs: OK false negative chance: 0.000 # git bisect good 2e1e1337881b0e9844d687982aa54b31b1269b11 Bisecting: 57 revisions left to test after this (roughly 6 steps) [dd9e11d6477a52ede9ebe575c83285e79e823889] Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi testing commit dd9e11d6477a52ede9ebe575c83285e79e823889 gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: b6e13123f57edc8b03e2d1cd3ac47c10e5069f43e1041275d2da83f2fe9492f8 all runs: OK false negative chance: 0.000 # git bisect good dd9e11d6477a52ede9ebe575c83285e79e823889 Bisecting: 33 revisions left to test after this (roughly 5 steps) [03e5cb7b50feb687508946a702febaba24c77f0b] Merge tag 'for-6.4/io_uring-2023-05-07' of git://git.kernel.dk/linux testing commit 03e5cb7b50feb687508946a702febaba24c77f0b gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 80005fc2615be96839d76dbc3362a7a53d4a61c0e16a68354d5d69c586372c42 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] # git bisect bad 03e5cb7b50feb687508946a702febaba24c77f0b Bisecting: 13 revisions left to test after this (roughly 4 steps) [da9619a30e73b59605ed998bf7bc4359f5c0029a] dmapool: link blocks across pages testing commit da9619a30e73b59605ed998bf7bc4359f5c0029a gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9d09659e730d6c18636eccf438f3fc88aa93ba63e9e2fcf6e58bc19c20c7a244 all runs: OK false negative chance: 0.000 # git bisect good da9619a30e73b59605ed998bf7bc4359f5c0029a Bisecting: 5 revisions left to test after this (roughly 3 steps) [706ce3caea1cc1dab8c7fd6e7d1389b46ad1570e] Merge tag 'mm-hotfixes-stable-2023-05-06-10-45' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm testing commit 706ce3caea1cc1dab8c7fd6e7d1389b46ad1570e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c7143c7a9fb7a0164a2114fe8e43ee4fa4a4729957ed2526c958d7acc978b503 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] # git bisect bad 706ce3caea1cc1dab8c7fd6e7d1389b46ad1570e Bisecting: 3 revisions left to test after this (roughly 2 steps) [28a65b49eb53e172d23567005465019658bfdb4d] nilfs2: do not write dirty data after degenerating to read-only testing commit 28a65b49eb53e172d23567005465019658bfdb4d gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cb305770290a22681ceefbb80888d633f245121fa4c7a6b8b0f87b0536570021 all runs: crashed: KASAN: slab-use-after-free Read in nilfs_load_inode_block representative crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block, types: [KASAN] # git bisect bad 28a65b49eb53e172d23567005465019658bfdb4d Bisecting: 1 revision left to test after this (roughly 1 step) [a6a491c048882e7e424d407d32cba0b52d9ef2bf] nilfs2: fix infinite loop in nilfs_mdt_get_block() testing commit a6a491c048882e7e424d407d32cba0b52d9ef2bf gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d03f8c6ce56ec8acf5c2822cb5e3c78f30715c2351568e8fa6370200d8edad46 all runs: OK false negative chance: 0.000 # git bisect good a6a491c048882e7e424d407d32cba0b52d9ef2bf Bisecting: 0 revisions left to test after this (roughly 0 steps) [d824ec2a154677f63c56cc71ffe4578274f6e32e] mm: do not reclaim private data from pinned page testing commit d824ec2a154677f63c56cc71ffe4578274f6e32e gcc compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 32ecd57e9a41169f1c96da3e1b78aecfb6edf62552dc2f3ca3d4d6b90aeaaa4a all runs: OK false negative chance: 0.000 # git bisect good d824ec2a154677f63c56cc71ffe4578274f6e32e 28a65b49eb53e172d23567005465019658bfdb4d is the first bad commit commit 28a65b49eb53e172d23567005465019658bfdb4d Author: Ryusuke Konishi Date: Thu Apr 27 10:15:26 2023 +0900 nilfs2: do not write dirty data after degenerating to read-only According to syzbot's report, mark_buffer_dirty() called from nilfs_segctor_do_construct() outputs a warning with some patterns after nilfs2 detects metadata corruption and degrades to read-only mode. After such read-only degeneration, page cache data may be cleared through nilfs_clear_dirty_page() which may also clear the uptodate flag for their buffer heads. However, even after the degeneration, log writes are still performed by unmount processing etc., which causes mark_buffer_dirty() to be called for buffer heads without the "uptodate" flag and causes the warning. Since any writes should not be done to a read-only file system in the first place, this fixes the warning in mark_buffer_dirty() by letting nilfs_segctor_do_construct() abort early if in read-only mode. This also changes the retry check of nilfs_segctor_write_out() to avoid unnecessary log write retries if it detects -EROFS that nilfs_segctor_do_construct() returned. Link: https://lkml.kernel.org/r/20230427011526.13457-1-konishi.ryusuke@gmail.com Signed-off-by: Ryusuke Konishi Tested-by: Ryusuke Konishi Reported-by: syzbot+2af3bc9585be7f23f290@syzkaller.appspotmail.com Link: https://syzkaller.appspot.com/bug?extid=2af3bc9585be7f23f290 Cc: Signed-off-by: Andrew Morton fs/nilfs2/segment.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) accumulated error probability: 0.00 culprit signature: cb305770290a22681ceefbb80888d633f245121fa4c7a6b8b0f87b0536570021 parent signature: 32ecd57e9a41169f1c96da3e1b78aecfb6edf62552dc2f3ca3d4d6b90aeaaa4a revisions tested: 23, total time: 8h48m3.102788248s (build: 4h33m53.333769342s, test: 3h5m19.530441293s) first bad commit: 28a65b49eb53e172d23567005465019658bfdb4d nilfs2: do not write dirty data after degenerating to read-only recipients (to): ["akpm@linux-foundation.org" "konishi.ryusuke@gmail.com"] recipients (cc): [] crash: KASAN: slab-use-after-free Read in nilfs_load_inode_block ================================================================== BUG: KASAN: slab-use-after-free in nilfs_load_inode_block+0x114/0x250 fs/nilfs2/inode.c:1012 Read of size 8 at addr ffff8880728d0c30 by task syz-executor.2/2218 CPU: 0 PID: 2218 Comm: syz-executor.2 Not tainted 6.3.0-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023 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:351 [inline] print_report+0x163/0x540 mm/kasan/report.c:462 kasan_report+0x176/0x1b0 mm/kasan/report.c:572 nilfs_load_inode_block+0x114/0x250 fs/nilfs2/inode.c:1012 __nilfs_mark_inode_dirty+0xa0/0x220 fs/nilfs2/inode.c:1089 nilfs_dirty_inode+0x140/0x1d0 fs/nilfs2/inode.c:1130 __mark_inode_dirty+0x1b0/0x740 fs/fs-writeback.c:2424 mark_inode_dirty_sync include/linux/fs.h:2149 [inline] iput+0xb6/0x5e0 fs/inode.c:1770 nilfs_dispose_list+0x494/0x510 fs/nilfs2/segment.c:816 nilfs_detach_log_writer+0x8f3/0x990 fs/nilfs2/segment.c:2852 nilfs_put_super+0x49/0x130 fs/nilfs2/super.c:477 generic_shutdown_super+0x10b/0x2d0 fs/super.c:500 kill_block_super+0x7f/0xc0 fs/super.c:1407 deactivate_locked_super+0x75/0xd0 fs/super.c:331 cleanup_mnt+0x2a6/0x320 fs/namespace.c:1177 task_work_run+0x20a/0x280 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xa4/0xb0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x64/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x2b/0x1d0 kernel/entry/common.c:297 do_syscall_64+0x4d/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fa7d6a7de57 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:00007ffe1bbe8b58 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007fa7d6a7de57 RDX: 0000000000000000 RSI: 000000000000000a RDI: 00007ffe1bbe8c10 RBP: 00007ffe1bbe8c10 R08: 0000000000000000 R09: 0000000000000000 R10: 00000000ffffffff R11: 0000000000000246 R12: 00007ffe1bbe9cd0 R13: 00007fa7d6ac73b9 R14: 0000000000012054 R15: 0000000000000007 Allocated by task 4644: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:374 [inline] __kasan_kmalloc+0x98/0xb0 mm/kasan/common.c:383 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] nilfs_find_or_create_root+0xea/0x3b0 fs/nilfs2/the_nilfs.c:810 nilfs_attach_checkpoint+0x11c/0x4b0 fs/nilfs2/super.c:529 nilfs_fill_super+0x2f3/0x590 fs/nilfs2/super.c:1074 nilfs_mount+0x5ce/0x840 fs/nilfs2/super.c:1326 legacy_get_tree+0xe9/0x170 fs/fs_context.c:610 vfs_get_tree+0x7e/0x180 fs/super.c:1510 do_new_mount+0x1e5/0x8f0 fs/namespace.c:3039 do_mount fs/namespace.c:3382 [inline] __do_sys_mount fs/namespace.c:3591 [inline] __se_sys_mount+0x242/0x2d0 fs/namespace.c:3568 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Freed by task 2218: kasan_save_stack mm/kasan/common.c:45 [inline] kasan_set_track+0x4f/0x70 mm/kasan/common.c:52 kasan_save_free_info+0x2b/0x40 mm/kasan/generic.c:521 ____kasan_slab_free+0x122/0x1e0 mm/kasan/common.c:236 kasan_slab_free include/linux/kasan.h:162 [inline] slab_free_hook mm/slub.c:1781 [inline] slab_free_freelist_hook mm/slub.c:1807 [inline] slab_free mm/slub.c:3786 [inline] __kmem_cache_free+0x28b/0x450 mm/slub.c:3799 nilfs_segctor_destroy fs/nilfs2/segment.c:2775 [inline] nilfs_detach_log_writer+0x709/0x990 fs/nilfs2/segment.c:2838 nilfs_put_super+0x49/0x130 fs/nilfs2/super.c:477 generic_shutdown_super+0x10b/0x2d0 fs/super.c:500 kill_block_super+0x7f/0xc0 fs/super.c:1407 deactivate_locked_super+0x75/0xd0 fs/super.c:331 cleanup_mnt+0x2a6/0x320 fs/namespace.c:1177 task_work_run+0x20a/0x280 kernel/task_work.c:179 resume_user_mode_work include/linux/resume_user_mode.h:49 [inline] exit_to_user_mode_loop+0xa4/0xb0 kernel/entry/common.c:171 exit_to_user_mode_prepare+0x64/0xb0 kernel/entry/common.c:204 __syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline] syscall_exit_to_user_mode+0x2b/0x1d0 kernel/entry/common.c:297 do_syscall_64+0x4d/0x90 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff8880728d0c00 which belongs to the cache kmalloc-256 of size 256 The buggy address is located 48 bytes inside of freed 256-byte region [ffff8880728d0c00, ffff8880728d0d00) The buggy address belongs to the physical page: page:ffffea0001ca3400 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x728d0 head:ffffea0001ca3400 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 flags: 0xfff00000010200(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000010200 ffff888008c41b40 dead000000000122 0000000000000000 raw: 0000000000000000 0000000000100010 00000001ffffffff 0000000000000000 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Unmovable, gfp_mask 0x1d2040(__GFP_IO|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_HARDWALL), pid 1549, tgid 1549 (udevd), ts 73877713067, free_ts 73606886323 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x26e/0x290 mm/page_alloc.c:1731 prep_new_page mm/page_alloc.c:1738 [inline] get_page_from_freelist+0x3197/0x3320 mm/page_alloc.c:3502 __alloc_pages+0x255/0x650 mm/page_alloc.c:4768 alloc_slab_page+0x6a/0x160 mm/slub.c:1851 allocate_slab mm/slub.c:1998 [inline] new_slab+0x70/0x260 mm/slub.c:2051 ___slab_alloc+0x8df/0xd60 mm/slub.c:3192 __slab_alloc mm/slub.c:3291 [inline] __slab_alloc_node mm/slub.c:3344 [inline] slab_alloc_node mm/slub.c:3441 [inline] __kmem_cache_alloc_node+0x1ae/0x270 mm/slub.c:3490 kmalloc_trace+0x2a/0xc0 mm/slab_common.c:1057 kmalloc include/linux/slab.h:559 [inline] kzalloc include/linux/slab.h:680 [inline] smk_fetch+0x79/0xf0 security/smack/smack_lsm.c:291 smack_d_instantiate+0x461/0x850 security/smack/smack_lsm.c:3475 security_d_instantiate+0x6b/0xb0 security/security.c:3760 d_instantiate+0x4b/0x80 fs/dcache.c:2034 shmem_mknod+0x147/0x170 mm/shmem.c:2957 lookup_open fs/namei.c:3492 [inline] open_last_lookups fs/namei.c:3560 [inline] path_openat+0xe9c/0x2810 fs/namei.c:3788 do_filp_open+0x22a/0x440 fs/namei.c:3818 do_sys_openat2+0x10f/0x430 fs/open.c:1356 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1302 [inline] free_unref_page_prepare+0x817/0x940 mm/page_alloc.c:2564 free_unref_page+0x37/0x3c0 mm/page_alloc.c:2659 qlist_free_all+0x22/0x60 mm/kasan/quarantine.c:185 kasan_quarantine_reduce+0x157/0x180 mm/kasan/quarantine.c:292 __kasan_slab_alloc+0x23/0x70 mm/kasan/common.c:305 kasan_slab_alloc include/linux/kasan.h:186 [inline] slab_post_alloc_hook+0x66/0x3c0 mm/slab.h:711 slab_alloc_node mm/slub.c:3451 [inline] __kmem_cache_alloc_node+0x14c/0x270 mm/slub.c:3490 __do_kmalloc_node mm/slab_common.c:965 [inline] __kmalloc+0x99/0x1d0 mm/slab_common.c:979 kmalloc include/linux/slab.h:563 [inline] tomoyo_realpath_from_path+0xe0/0x4e0 security/tomoyo/realpath.c:251 tomoyo_get_realpath security/tomoyo/file.c:151 [inline] tomoyo_path_perm+0x248/0x830 security/tomoyo/file.c:822 security_inode_getattr+0x7f/0xf0 security/security.c:2114 vfs_getattr fs/stat.c:167 [inline] vfs_statx+0x134/0x3f0 fs/stat.c:242 vfs_fstatat fs/stat.c:276 [inline] __do_sys_newfstatat fs/stat.c:446 [inline] __se_sys_newfstatat+0xfa/0x780 fs/stat.c:440 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x41/0x90 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Memory state around the buggy address: ffff8880728d0b00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ffff8880728d0b80: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc >ffff8880728d0c00: fa fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ^ ffff8880728d0c80: fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb fb ffff8880728d0d00: fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc fc ==================================================================