ci starts bisection 2023-09-22 12:12:19.342282699 +0000 UTC m=+781683.361406718 bisecting cause commit starting from 940fcc189c51032dd0282cbee4497542c982ac59 building syzkaller on 0b6a67ac4b0dc26f43030c5edd01c9175f13b784 ensuring issue is reproducible on original commit 940fcc189c51032dd0282cbee4497542c982ac59 testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fad23890ff5e7e67b290352720285586ce00f4f636c2373c41bbe01c5cd8bd54 all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, types: [KASAN] check whether we can drop unnecessary instrumentation disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 53be051edb732b98e2e35bd4b181b2f5049318f552ba0e1ee53af74d23f9fc72 all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, 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=7704 leaves diff=2021 split chunks (needed=false): <2021> split chunk #0 of len 2021 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 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 77eafbc60c841faea4c86ab1197bef4de22c63a00e241f08d38863da9062fb7b all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, types: [KASAN] the chunk can be dropped testing without sub-chunk 2/5 disabling configs for [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: bd652d2ccd9a717c7b52d340bcc8dbd59eb452ae9badb355959997f9d6865c81 all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, 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 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: cd4e2f1810e0fd75371e1a671825785ab484ac44898803c7f35cb6d902133276 all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, 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 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: dad6208b5bb2339d348b169456a65ff599050c2013ab8e3c3008053690e36ff8 all runs: OK false negative chance: 0.000 testing without sub-chunk 5/5 disabling configs for [UBSAN BUG LOCKDEP ATOMIC_SLEEP HANG LEAK], they are not needed testing commit 940fcc189c51032dd0282cbee4497542c982ac59 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: a80028283d6db3566d23c78bfd58ae8ef493742b36c097644f523ece0d7a7197 all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, types: [KASAN] the chunk can be dropped minimized to 405 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_ADVANCED NETFILTER_CONNCOUNT NET_IPGRE NET_IPGRE_DEMUX NFS_V4_1 NF_CONNTRACK_SNMP NF_NAT_SNMP_BASIC NF_NAT_TFTP NF_SOCKET_IPV4 NF_SOCKET_IPV6 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 NLS_UCS2_UTILS 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_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_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 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_CONFIGFS_F_LB_SS USB_CONFIGFS_F_MIDI 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 [LOCKDEP ATOMIC_SLEEP HANG LEAK UBSAN BUG], they are not needed picked [v6.5 v6.4 v6.3 v6.1 v5.19 v5.17 v5.15 v5.13 v5.10 v5.7 v5.4 v5.1 v4.19] out of 28 release tags testing release v6.5 testing commit 2dde18cd1d8fac735875f2e4987f11817cc0bc2c gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 04a01dc9c65d5d81b0a1c203e0417c027caae8f81bfe07d3cb0ec3b95d17a46f all runs: OK false negative chance: 0.000 # git bisect start 940fcc189c51032dd0282cbee4497542c982ac59 2dde18cd1d8fac735875f2e4987f11817cc0bc2c Bisecting: 10207 revisions left to test after this (roughly 13 steps) [1c9f8dff62d85ce00b0e99f774a84bd783af7cac] Merge tag 'char-misc-6.6-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc testing commit 1c9f8dff62d85ce00b0e99f774a84bd783af7cac gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 35781785ba4bd84d1debdf3f0ec0061eaa31306b3c5319d983c9cc3ae6d1a25f all runs: OK false negative chance: 0.000 # git bisect good 1c9f8dff62d85ce00b0e99f774a84bd783af7cac Bisecting: 5107 revisions left to test after this (roughly 12 steps) [db471fd4c7c96c0b63cb2098824560d6299ec9c3] bcachefs: Don't set accessed bit on btree node fill testing commit db471fd4c7c96c0b63cb2098824560d6299ec9c3 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: d369cdfd17aeb06a1412379750ce54f9c18699e8007a86cb03ea4d3fb6afeec7 all runs: OK false negative chance: 0.000 # git bisect good db471fd4c7c96c0b63cb2098824560d6299ec9c3 Bisecting: 2560 revisions left to test after this (roughly 11 steps) [320d0b183f2e35eb47b15936627534c19654ca5d] Merge branch 'i2c/for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git testing commit 320d0b183f2e35eb47b15936627534c19654ca5d gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 14403109c92d4d5b38665c7d29b14469537f701ccac7ef95810ac75d6229bd0e all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, types: [KASAN] # git bisect bad 320d0b183f2e35eb47b15936627534c19654ca5d Bisecting: 1270 revisions left to test after this (roughly 10 steps) [f97e165a6f36758581eae5393cd92b10deeffe8c] Merge branch 'for-linux-next' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux.git testing commit f97e165a6f36758581eae5393cd92b10deeffe8c gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 2078732e14622054d19a3df8b861cac5c82ef8439a3de2787940d046cf36752f all runs: OK false negative chance: 0.000 # git bisect good f97e165a6f36758581eae5393cd92b10deeffe8c Bisecting: 682 revisions left to test after this (roughly 9 steps) [60126357704b17efde9518da6fbfd14d0b6cc0fe] powerpc: Export kvm_guest static key, for bcachefs six locks testing commit 60126357704b17efde9518da6fbfd14d0b6cc0fe gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 751ec23f7e2d6c71fa8118c236aca29c296e3ae7a3214454de1f1ae4544d7cf5 all runs: OK false negative chance: 0.000 # git bisect good 60126357704b17efde9518da6fbfd14d0b6cc0fe Bisecting: 335 revisions left to test after this (roughly 9 steps) [f6c6a390fd4312aa4562c4cb317232843f93f98e] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux.git testing commit f6c6a390fd4312aa4562c4cb317232843f93f98e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: f02cff37728ab93253d459d45f8c584aaa6fa304214473ae99528dc9aa2a7cea all runs: OK false negative chance: 0.000 # git bisect good f6c6a390fd4312aa4562c4cb317232843f93f98e Bisecting: 189 revisions left to test after this (roughly 7 steps) [8956fbcf78a176349cb43f42f4b5daed24e3788e] Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs.git testing commit 8956fbcf78a176349cb43f42f4b5daed24e3788e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fdf74b5ac93d2cdf7862cdb1aee9fa1af67eef75e10e1a40d3a7b745a7026885 all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, types: [KASAN] # git bisect bad 8956fbcf78a176349cb43f42f4b5daed24e3788e Bisecting: 76 revisions left to test after this (roughly 6 steps) [0a9e1ea8f200623050df7afa4a979d8744aff305] Merge branch 'nfsd-next' of git://git.kernel.org/pub/scm/linux/kernel/git/cel/linux testing commit 0a9e1ea8f200623050df7afa4a979d8744aff305 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: c4af00cc3015852c44f7f3e01bb4fdfced0fc460aebc2cd055c18d26c368e2c9 all runs: OK false negative chance: 0.000 # git bisect good 0a9e1ea8f200623050df7afa4a979d8744aff305 Bisecting: 32 revisions left to test after this (roughly 5 steps) [fef942a77645bda7a6745d9f7f7c07a9827b3f49] Merge branch 'for-next' of git://git.kernel.org/pub/scm/fs/xfs/xfs-linux.git testing commit fef942a77645bda7a6745d9f7f7c07a9827b3f49 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 27a5c04920d5ed44ca600f2f56336e4b6ff0adbbbc8d7ac1a35d8108dd955a46 all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, types: [KASAN] # git bisect bad fef942a77645bda7a6745d9f7f7c07a9827b3f49 Bisecting: 22 revisions left to test after this (roughly 5 steps) [6ebb6500e54631b7013f4efe7d78ff562e437c5e] Merge tag 'fix-larp-requirements-6.6_2023-09-12' of https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux into xfs-6.6-fixesA testing commit 6ebb6500e54631b7013f4efe7d78ff562e437c5e gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: fee8f3f2528d7443f3a0e84fc2ca10c965a0fb4ca7c8d88c4cf78d4a732e92a0 all runs: OK false negative chance: 0.000 # git bisect good 6ebb6500e54631b7013f4efe7d78ff562e437c5e Bisecting: 11 revisions left to test after this (roughly 4 steps) [44ef23e481b02df2f17599a24f81cf0045dc5256] ovl: do not encode lower fh with upper sb_writers held testing commit 44ef23e481b02df2f17599a24f81cf0045dc5256 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 9a3352cf2b69047eb11d644e46bb9df451d6e86484e39bd6bdfbb073f6386e8f all runs: crashed: KASAN: invalid-free in ovl_copy_up_one representative crash: KASAN: invalid-free in ovl_copy_up_one, types: [KASAN] # git bisect bad 44ef23e481b02df2f17599a24f81cf0045dc5256 Bisecting: 5 revisions left to test after this (roughly 3 steps) [e57757c5d874dea210b20115f8833e20f5c0cf7d] ovl: use simpler function to convert iocb to rw flags testing commit e57757c5d874dea210b20115f8833e20f5c0cf7d gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 4eabd227bc0ec6d99327464d4c7e8e4a620afbb70362177702be05273d0ff693 all runs: OK false negative chance: 0.000 # git bisect good e57757c5d874dea210b20115f8833e20f5c0cf7d Bisecting: 2 revisions left to test after this (roughly 2 steps) [437b81fb169507309873f455ed9c00c41444c53d] ovl: split ovl_want_write() into two helpers testing commit 437b81fb169507309873f455ed9c00c41444c53d gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: 97f29c42b8b8a96c6920f7ade8e5d27779c36858c10f8c5c2d002b19ae537d6a all runs: OK false negative chance: 0.000 # git bisect good 437b81fb169507309873f455ed9c00c41444c53d Bisecting: 0 revisions left to test after this (roughly 1 step) [cd5d397b0672576ff109df19da8a964494ecc661] ovl: do not open/llseek lower file with upper sb_writers held testing commit cd5d397b0672576ff109df19da8a964494ecc661 gcc compiler: gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40 kernel signature: ac750b90af288ac2a113cf397e332bccb708e0633a2d1b813dbfb6bf2ae02830 all runs: OK false negative chance: 0.000 # git bisect good cd5d397b0672576ff109df19da8a964494ecc661 44ef23e481b02df2f17599a24f81cf0045dc5256 is the first bad commit commit 44ef23e481b02df2f17599a24f81cf0045dc5256 Author: Amir Goldstein Date: Wed Aug 16 16:47:59 2023 +0300 ovl: do not encode lower fh with upper sb_writers held When lower fs is a nested overlayfs, calling encode_fh() on a lower directory dentry may trigger copy up and take sb_writers on the upper fs of the lower nested overlayfs. The lower nested overlayfs may have the same upper fs as this overlayfs, so nested sb_writers lock is illegal. Move all the callers that encode lower fh to before ovl_want_write(). Signed-off-by: Amir Goldstein fs/overlayfs/copy_up.c | 52 +++++++++++++++++++++++++++++------------------- fs/overlayfs/namei.c | 37 +++++++++++++++++++++++++--------- fs/overlayfs/overlayfs.h | 26 +++++++++++++++++------- fs/overlayfs/super.c | 20 +++++++++++++------ fs/overlayfs/util.c | 11 +++++++++- 5 files changed, 103 insertions(+), 43 deletions(-) accumulated error probability: 0.00 culprit signature: 9a3352cf2b69047eb11d644e46bb9df451d6e86484e39bd6bdfbb073f6386e8f parent signature: ac750b90af288ac2a113cf397e332bccb708e0633a2d1b813dbfb6bf2ae02830 revisions tested: 22, total time: 7h10m40.976246301s (build: 3h58m54.397093386s, test: 2h56m2.712017252s) first bad commit: 44ef23e481b02df2f17599a24f81cf0045dc5256 ovl: do not encode lower fh with upper sb_writers held recipients (to): ["amir73il@gmail.com" "amir73il@gmail.com" "linux-unionfs@vger.kernel.org" "miklos@szeredi.hu"] recipients (cc): ["linux-kernel@vger.kernel.org"] crash: KASAN: invalid-free in ovl_copy_up_one RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000200 RBP: 00007f29e5df3120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000006 R14: 00007f29e519bf80 R15: 00007ffe12726cc8 ================================================================== BUG: KASAN: invalid-free in slab_free mm/slub.c:3809 [inline] BUG: KASAN: invalid-free in __kmem_cache_free+0xba/0x330 mm/slub.c:3822 Free of addr ffff88807f555210 by task syz-executor.0/2664 CPU: 0 PID: 2664 Comm: syz-executor.0 Not tainted 6.6.0-rc1-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/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_invalid_free+0xab/0xd0 mm/kasan/report.c:550 ____kasan_slab_free+0x1a0/0x1b0 mm/kasan/common.c:216 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/0x330 mm/slub.c:3822 ovl_do_copy_up fs/overlayfs/copy_up.c:973 [inline] ovl_copy_up_one+0x11a4/0x2960 fs/overlayfs/copy_up.c:1137 ovl_copy_up_flags+0x114/0x160 fs/overlayfs/copy_up.c:1192 ovl_nlink_start+0x303/0x3e0 fs/overlayfs/util.c:1104 ovl_do_remove+0x122/0xb70 fs/overlayfs/dir.c:893 vfs_unlink+0x294/0x800 fs/namei.c:4332 do_unlinkat+0x30e/0x590 fs/namei.c:4398 __do_sys_unlink fs/namei.c:4446 [inline] __se_sys_unlink fs/namei.c:4444 [inline] __x64_sys_unlink+0xa4/0xf0 fs/namei.c:4444 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7f29e507cae9 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:00007f29e5df30c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000057 RAX: ffffffffffffffda RBX: 00007f29e519bf80 RCX: 00007f29e507cae9 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000020000200 RBP: 00007f29e5df3120 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000002 R13: 0000000000000006 R14: 00007f29e519bf80 R15: 00007ffe12726cc8 Allocated by task 2664: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 kasan_set_track+0x25/0x30 mm/kasan/common.c:52 __kasan_slab_alloc+0x81/0x90 mm/kasan/common.c:328 kasan_slab_alloc include/linux/kasan.h:188 [inline] slab_post_alloc_hook mm/slab.h:762 [inline] slab_alloc_node mm/slub.c:3478 [inline] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc_lru+0x21d/0x580 mm/slub.c:3509 __d_alloc+0x2c/0x8f0 fs/dcache.c:1768 d_alloc+0x43/0x200 fs/dcache.c:1848 lookup_one_qstr_excl+0x99/0x140 fs/namei.c:1604 do_unlinkat+0x21c/0x590 fs/namei.c:4384 __do_sys_unlink fs/namei.c:4446 [inline] __se_sys_unlink fs/namei.c:4444 [inline] __x64_sys_unlink+0xa4/0xf0 fs/namei.c:4444 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd Last potentially related work creation: kasan_save_stack+0x33/0x50 mm/kasan/common.c:45 __kasan_record_aux_stack+0xbc/0xd0 mm/kasan/generic.c:492 __call_rcu_common.constprop.0+0x8e/0x6b0 kernel/rcu/tree.c:2653 __dentry_kill+0x3cd/0x5e0 fs/dcache.c:621 dentry_kill fs/dcache.c:733 [inline] dput+0x386/0x950 fs/dcache.c:913 handle_mounts fs/namei.c:1554 [inline] step_into+0xdf6/0x1dc0 fs/namei.c:1839 link_path_walk.part.0.constprop.0+0x53e/0xae0 fs/namei.c:2328 link_path_walk fs/namei.c:2253 [inline] path_openat+0x1d6/0x27c0 fs/namei.c:3792 do_filp_open+0x1bc/0x400 fs/namei.c:3823 do_sys_openat2+0x12c/0x170 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x134/0x1d0 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd The buggy address belongs to the object at ffff88807f5551a0 which belongs to the cache dentry of size 312 The buggy address is located 112 bytes inside of 312-byte region [ffff88807f5551a0, ffff88807f5552d8) The buggy address belongs to the physical page: page:ffffea0001fd5500 refcount:1 mapcount:0 mapping:0000000000000000 index:0x0 pfn:0x7f554 head:ffffea0001fd5500 order:1 entire_mapcount:0 nr_pages_mapped:0 pincount:0 memcg:ffff88801391de01 anon flags: 0xfff00000000840(slab|head|node=0|zone=1|lastcpupid=0x7ff) page_type: 0xffffffff() raw: 00fff00000000840 ffff88814000a780 0000000000000000 dead000000000001 raw: 0000000000000000 0000000080150015 00000001ffffffff ffff88801391de01 page dumped because: kasan: bad access detected page_owner tracks the page as allocated page last allocated via order 1, migratetype Reclaimable, gfp_mask 0xd20d0(__GFP_IO|__GFP_FS|__GFP_NOWARN|__GFP_NORETRY|__GFP_COMP|__GFP_NOMEMALLOC|__GFP_RECLAIMABLE), pid 1586, tgid 1586 (udevadm), ts 6788394589, free_ts 5956617690 set_page_owner include/linux/page_owner.h:31 [inline] post_alloc_hook+0x27e/0x2f0 mm/page_alloc.c:1536 prep_new_page mm/page_alloc.c:1543 [inline] get_page_from_freelist+0xe91/0x3080 mm/page_alloc.c:3170 __alloc_pages+0x1d0/0x470 mm/page_alloc.c:4426 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+0x7a9/0x1000 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] slab_alloc mm/slub.c:3486 [inline] __kmem_cache_alloc_lru mm/slub.c:3493 [inline] kmem_cache_alloc_lru+0x483/0x580 mm/slub.c:3509 __d_alloc+0x2c/0x8f0 fs/dcache.c:1768 d_alloc+0x43/0x200 fs/dcache.c:1848 d_alloc_parallel+0xcb/0xc00 fs/dcache.c:2637 lookup_open.isra.0+0x8c0/0x1240 fs/namei.c:3420 open_last_lookups fs/namei.c:3563 [inline] path_openat+0x868/0x27c0 fs/namei.c:3793 do_filp_open+0x1bc/0x400 fs/namei.c:3823 do_sys_openat2+0x12c/0x170 fs/open.c:1422 do_sys_open fs/open.c:1437 [inline] __do_sys_openat fs/open.c:1453 [inline] __se_sys_openat fs/open.c:1448 [inline] __x64_sys_openat+0x134/0x1d0 fs/open.c:1448 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x38/0x80 arch/x86/entry/common.c:80 page last free stack trace: reset_page_owner include/linux/page_owner.h:24 [inline] free_pages_prepare mm/page_alloc.c:1136 [inline] free_unref_page_prepare+0x506/0xb90 mm/page_alloc.c:2312 free_unref_page+0x33/0x350 mm/page_alloc.c:2405 free_contig_range+0xa1/0x150 mm/page_alloc.c:6342 destroy_args+0x5c0/0x7a0 mm/debug_vm_pgtable.c:1028 debug_vm_pgtable+0x19e2/0x2ab0 mm/debug_vm_pgtable.c:1408 do_one_initcall+0xcd/0x3c0 init/main.c:1232 do_initcall_level init/main.c:1294 [inline] do_initcalls init/main.c:1310 [inline] do_basic_setup init/main.c:1329 [inline] kernel_init_freeable+0x504/0x840 init/main.c:1547 kernel_init+0x1a/0x1c0 init/main.c:1437 ret_from_fork+0x2c/0x70 arch/x86/kernel/process.c:147 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:304 Memory state around the buggy address: ffff88807f555100: 00 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc ffff88807f555180: fc fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 >ffff88807f555200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ^ ffff88807f555280: 00 00 00 00 00 00 00 00 00 00 00 fc fc fc fc fc ffff88807f555300: fc fc fc 00 00 00 00 00 00 00 00 00 00 00 00 00 ==================================================================